Skip to content

Commit dcd09c5

Browse files
committed
Add a link-layer type for DVB-CI.
1 parent 6840a15 commit dcd09c5

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

pcap-common.c

+15
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,18 @@ static const char rcsid[] _U_ =
761761
#define LINKTYPE_JUNIPER_SRX_E2E 233
762762
#define LINKTYPE_JUNIPER_FIBRECHANNEL 234
763763

764+
/*
765+
* DVB-CI (DVB Common Interface for communication between a PC Card
766+
* module and a DVB receiver). See
767+
*
768+
* http://www.kaiser.cx/pcap-dvbci.html
769+
*
770+
* for the specification.
771+
*
772+
* Requested by Martin Kaiser <martin@kaiser.cx>.
773+
*/
774+
#define LINKTYPE_DVB_CI 235
775+
764776
static struct linktype_map {
765777
int dlt;
766778
int linktype;
@@ -1121,6 +1133,9 @@ static struct linktype_map {
11211133
/* Juniper Fibrechannel */
11221134
{ DLT_JUNIPER_FIBRECHANNEL, LINKTYPE_JUNIPER_FIBRECHANNEL },
11231135

1136+
/* DVB-CI */
1137+
{ DLT_DVB_CI, LINKTYPE_DVB_CI },
1138+
11241139
{ -1, -1 }
11251140
};
11261141

pcap.c

+1
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ static struct dlt_choice dlt_choices[] = {
850850
DLT_CHOICE(DLT_JUNIPER_VS, "Juniper Virtual Server"),
851851
DLT_CHOICE(DLT_JUNIPER_SRX_E2E, "Juniper SRX E2E"),
852852
DLT_CHOICE(DLT_JUNIPER_FIBRECHANNEL, "Juniper Fibrechannel"),
853+
DLT_CHOICE(DLT_DVB_CI, "DVB-CI"),
853854
DLT_CHOICE_SENTINEL
854855
};
855856

pcap/bpf.h

+12
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,18 @@ struct bpf_program {
995995
#define DLT_JUNIPER_SRX_E2E 233
996996
#define DLT_JUNIPER_FIBRECHANNEL 234
997997

998+
/*
999+
* DVB-CI (DVB Common Interface for communication between a PC Card
1000+
* module and a DVB receiver). See
1001+
*
1002+
* http://www.kaiser.cx/pcap-dvbci.html
1003+
*
1004+
* for the specification.
1005+
*
1006+
* Requested by Martin Kaiser <martin@kaiser.cx>.
1007+
*/
1008+
#define DLT_DVB_CI 235
1009+
9981010
/*
9991011
* DLT and savefile link type values are split into a class and
10001012
* a member of that class. A class value of 0 indicates a regular

0 commit comments

Comments
 (0)