Assign a value for OpenBSD DLT_OPENFLOW.
diff --git a/pcap-common.c b/pcap-common.c
index d686549..2e06cca 100644
--- a/pcap-common.c
+++ b/pcap-common.c
@@ -1033,7 +1033,12 @@
*/
#define LINKTYPE_USB_DARWIN 266
-#define LINKTYPE_MATCHING_MAX 266 /* highest value in the "matching" range */
+/*
+ * OpenBSD DLT_OPENFLOW.
+ */
+#define LINKTYPE_OPENFLOW 267
+
+#define LINKTYPE_MATCHING_MAX 267 /* highest value in the "matching" range */
static struct linktype_map {
int dlt;
diff --git a/pcap.c b/pcap.c
index 07812dc..f67dc01 100644
--- a/pcap.c
+++ b/pcap.c
@@ -2005,6 +2005,7 @@
DLT_CHOICE(ISO_14443, "ISO 14443 messages"),
DLT_CHOICE(RDS, "IEC 62106 Radio Data System groups"),
DLT_CHOICE(USB_DARWIN, "USB with Darwin header"),
+ DLT_CHOICE(OPENFLOW, "OpenBSD DLT_OPENFLOW"),
DLT_CHOICE_SENTINEL
};
diff --git a/pcap/dlt.h b/pcap/dlt.h
index 3d470ae..9366d8d 100644
--- a/pcap/dlt.h
+++ b/pcap/dlt.h
@@ -1308,6 +1308,11 @@
#define DLT_USB_DARWIN 266
/*
+ * OpenBSD DLT_OPENFLOW.
+ */
+#define DLT_OPENFLOW 267
+
+/*
* In case the code that includes this file (directly or indirectly)
* has also included OS files that happen to define DLT_MATCHING_MAX,
* with a different value (perhaps because that OS hasn't picked up
@@ -1317,7 +1322,7 @@
#ifdef DLT_MATCHING_MAX
#undef DLT_MATCHING_MAX
#endif
-#define DLT_MATCHING_MAX 266 /* highest value in the "matching" range */
+#define DLT_MATCHING_MAX 267 /* highest value in the "matching" range */
/*
* DLT and savefile link type values are split into a class and