Skip to content

Commit 9054397

Browse files
committed
Add DLT_ELEE and LINKTYPE_ELEE.
1 parent d00d99d commit 9054397

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

pcap-common.c

+8-2
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,6 @@
558558
*/
559559
#define LINKTYPE_LAPD 203
560560

561-
562561
/*
563562
* PPP, with a one-byte direction pseudo-header prepended - zero means
564563
* "received by this host", non-zero (any non-zero value) means "sent by
@@ -1170,7 +1169,14 @@
11701169
#define LINKTYPE_DSA_TAG_DSA 284
11711170
#define LINKTYPE_DSA_TAG_EDSA 285
11721171

1173-
#define LINKTYPE_MATCHING_MAX 285 /* highest value in the "matching" range */
1172+
/*
1173+
* Payload of lawful intercept packets using the ELEE protocol;
1174+
* http://socket.hr/draft-dfranusic-opsawg-elee-00.xml
1175+
* http://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi?url=http://socket.hr/draft-dfranusic-opsawg-elee-00.xml&modeAsFormat=html/ascii
1176+
*/
1177+
#define LINKTYPE_ELEE 286
1178+
1179+
#define LINKTYPE_MATCHING_MAX 286 /* highest value in the "matching" range */
11741180

11751181
/*
11761182
* The DLT_ and LINKTYPE_ values in the "matching" range should be the

pcap.c

+1
Original file line numberDiff line numberDiff line change
@@ -3132,6 +3132,7 @@ static struct dlt_choice dlt_choices[] = {
31323132
DLT_CHOICE(DSA_TAG_BRCM_PREPEND, "Broadcom tag (prepended)"),
31333133
DLT_CHOICE(DSA_TAG_DSA, "Marvell DSA"),
31343134
DLT_CHOICE(DSA_TAG_EDSA, "Marvell EDSA"),
3135+
DLT_CHOICE(ELEE, "ELEE lawful intercept packets"),
31353136
DLT_CHOICE_SENTINEL
31363137
};
31373138

pcap/dlt.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,13 @@
14551455
#define DLT_DSA_TAG_DSA 284
14561456
#define DLT_DSA_TAG_EDSA 285
14571457

1458+
/*
1459+
* Payload of lawful intercept packets using the ELEE protocol;
1460+
* http://socket.hr/draft-dfranusic-opsawg-elee-00.xml
1461+
* http://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi?url=http://socket.hr/draft-dfranusic-opsawg-elee-00.xml&modeAsFormat=html/ascii
1462+
*/
1463+
#define DLT_ELEE 286
1464+
14581465
/*
14591466
* In case the code that includes this file (directly or indirectly)
14601467
* has also included OS files that happen to define DLT_MATCHING_MAX,
@@ -1465,7 +1472,7 @@
14651472
#ifdef DLT_MATCHING_MAX
14661473
#undef DLT_MATCHING_MAX
14671474
#endif
1468-
#define DLT_MATCHING_MAX 285 /* highest value in the "matching" range */
1475+
#define DLT_MATCHING_MAX 286 /* highest value in the "matching" range */
14691476

14701477
/*
14711478
* DLT and savefile link type values are split into a class and

0 commit comments

Comments
 (0)