Skip to content

Commit

Permalink
Assign a value for OpenBSD DLT_OPENFLOW.
Browse files Browse the repository at this point in the history
  • Loading branch information
guyharris committed Feb 21, 2017
1 parent 2c895cb commit 1bd5003
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pcap-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,7 @@ static struct dlt_choice dlt_choices[] = {
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
};

Expand Down
7 changes: 6 additions & 1 deletion pcap/dlt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,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,
Expand All @@ -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
Expand Down

0 comments on commit 1bd5003

Please sign in to comment.