Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a link-layer type for DVB-CI.
  • Loading branch information
guyharris committed Mar 2, 2011
1 parent 6840a15 commit dcd09c5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pcap-common.c
Expand Up @@ -761,6 +761,18 @@ static const char rcsid[] _U_ =
#define LINKTYPE_JUNIPER_SRX_E2E 233
#define LINKTYPE_JUNIPER_FIBRECHANNEL 234

/*
* DVB-CI (DVB Common Interface for communication between a PC Card
* module and a DVB receiver). See
*
* http://www.kaiser.cx/pcap-dvbci.html
*
* for the specification.
*
* Requested by Martin Kaiser <martin@kaiser.cx>.
*/
#define LINKTYPE_DVB_CI 235

static struct linktype_map {
int dlt;
int linktype;
Expand Down Expand Up @@ -1121,6 +1133,9 @@ static struct linktype_map {
/* Juniper Fibrechannel */
{ DLT_JUNIPER_FIBRECHANNEL, LINKTYPE_JUNIPER_FIBRECHANNEL },

/* DVB-CI */
{ DLT_DVB_CI, LINKTYPE_DVB_CI },

{ -1, -1 }
};

Expand Down
1 change: 1 addition & 0 deletions pcap.c
Expand Up @@ -850,6 +850,7 @@ static struct dlt_choice dlt_choices[] = {
DLT_CHOICE(DLT_JUNIPER_VS, "Juniper Virtual Server"),
DLT_CHOICE(DLT_JUNIPER_SRX_E2E, "Juniper SRX E2E"),
DLT_CHOICE(DLT_JUNIPER_FIBRECHANNEL, "Juniper Fibrechannel"),
DLT_CHOICE(DLT_DVB_CI, "DVB-CI"),
DLT_CHOICE_SENTINEL
};

Expand Down
12 changes: 12 additions & 0 deletions pcap/bpf.h
Expand Up @@ -995,6 +995,18 @@ struct bpf_program {
#define DLT_JUNIPER_SRX_E2E 233
#define DLT_JUNIPER_FIBRECHANNEL 234

/*
* DVB-CI (DVB Common Interface for communication between a PC Card
* module and a DVB receiver). See
*
* http://www.kaiser.cx/pcap-dvbci.html
*
* for the specification.
*
* Requested by Martin Kaiser <martin@kaiser.cx>.
*/
#define DLT_DVB_CI 235

/*
* DLT and savefile link type values are split into a class and
* a member of that class. A class value of 0 indicates a regular
Expand Down

0 comments on commit dcd09c5

Please sign in to comment.