]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add a linktype for IBM SDLC frames containing SNA PDUs.
authorGuy Harris <[email protected]>
Tue, 21 Mar 2017 02:41:09 +0000 (19:41 -0700)
committerGuy Harris <[email protected]>
Tue, 21 Mar 2017 02:41:09 +0000 (19:41 -0700)
pcap-common.c
pcap.c
pcap/dlt.h

index 2e06cca568cc90d1c81934841139f0ed56dc76b2..4df9ef2b59476c37800228751816960ffcd02e36 100644 (file)
  */
 #define LINKTYPE_OPENFLOW      267
 
-#define LINKTYPE_MATCHING_MAX  267             /* highest value in the "matching" range */
+/*
+ * SDLC frames containing SNA PDUs.
+ */
+#define LINKTYPE_SDLC          268
+
+#define LINKTYPE_MATCHING_MAX  268             /* highest value in the "matching" range */
 
 static struct linktype_map {
        int     dlt;
diff --git a/pcap.c b/pcap.c
index 0f2f84388f9f2dd3cf1a30b470c706ad9e69042b..87641c4c28bb7b03cbc72be44250aee01d7133a3 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -2091,6 +2091,7 @@ static struct dlt_choice dlt_choices[] = {
        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(SDLC, "IBM SDLC frames"),
        DLT_CHOICE_SENTINEL
 };
 
index 9366d8d9dac6a1403f75abc2fd7504a3af61d5ff..28c129a28de7840f4a5573aa4b79df222e059371 100644 (file)
  */
 #define DLT_OPENFLOW   267
 
+/*
+ * SDLC frames containing SNA PDUs.
+ */
+#define DLT_SDLC       268
+
 /*
  * In case the code that includes this file (directly or indirectly)
  * has also included OS files that happen to define DLT_MATCHING_MAX,
 #ifdef DLT_MATCHING_MAX
 #undef DLT_MATCHING_MAX
 #endif
-#define DLT_MATCHING_MAX       267     /* highest value in the "matching" range */
+#define DLT_MATCHING_MAX       268     /* highest value in the "matching" range */
 
 /*
  * DLT and savefile link type values are split into a class and