]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add DLT_ELEE and LINKTYPE_ELEE.
authorGuy Harris <[email protected]>
Fri, 17 May 2019 21:02:26 +0000 (14:02 -0700)
committerGuy Harris <[email protected]>
Fri, 17 May 2019 21:02:26 +0000 (14:02 -0700)
pcap-common.c
pcap.c
pcap/dlt.h

index 2ea152094dd699386bedc35bd6ac2b8cc0d53c8b..b6095e0030bd50f886cb206d3aa2c489f9e74662 100644 (file)
  */
 #define LINKTYPE_LAPD          203
 
-
 /*
  * PPP, with a one-byte direction pseudo-header prepended - zero means
  * "received by this host", non-zero (any non-zero value) means "sent by
 #define LINKTYPE_DSA_TAG_DSA   284
 #define LINKTYPE_DSA_TAG_EDSA  285
 
-#define LINKTYPE_MATCHING_MAX  285             /* highest value in the "matching" range */
+/*
+ * Payload of lawful intercept packets using the ELEE protocol;
+ * http://socket.hr/draft-dfranusic-opsawg-elee-00.xml
+ * http://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi?url=http://socket.hr/draft-dfranusic-opsawg-elee-00.xml&modeAsFormat=html/ascii
+ */
+#define LINKTYPE_ELEE          286
+
+#define LINKTYPE_MATCHING_MAX  286             /* highest value in the "matching" range */
 
 /*
  * The DLT_ and LINKTYPE_ values in the "matching" range should be the
diff --git a/pcap.c b/pcap.c
index a9ca2aaf6f0d2a251d337f2bb118bcc834aa44e8..d9917a210086f0c50e20a9aecec0bc415a4b946f 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -3132,6 +3132,7 @@ static struct dlt_choice dlt_choices[] = {
        DLT_CHOICE(DSA_TAG_BRCM_PREPEND, "Broadcom tag (prepended)"),
        DLT_CHOICE(DSA_TAG_DSA, "Marvell DSA"),
        DLT_CHOICE(DSA_TAG_EDSA, "Marvell EDSA"),
+       DLT_CHOICE(ELEE, "ELEE lawful intercept packets"),
        DLT_CHOICE_SENTINEL
 };
 
index 2e323eed483e4f2bc3eceaa669f48cf0a48a410f..3783b79bf5e84189da9cd2b6dc498c168db16bf6 100644 (file)
 #define DLT_DSA_TAG_DSA                284
 #define DLT_DSA_TAG_EDSA       285
 
+/*
+ * Payload of lawful intercept packets using the ELEE protocol;
+ * http://socket.hr/draft-dfranusic-opsawg-elee-00.xml
+ * http://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi?url=http://socket.hr/draft-dfranusic-opsawg-elee-00.xml&modeAsFormat=html/ascii
+ */
+#define DLT_ELEE               286
+
 /*
  * 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       285     /* highest value in the "matching" range */
+#define DLT_MATCHING_MAX       286     /* highest value in the "matching" range */
 
 /*
  * DLT and savefile link type values are split into a class and