add support for Juniper PIC Peer DLT_
This commit is contained in:
parent
6e18a333d2
commit
f718fd1835
|
@ -37,7 +37,7 @@
|
||||||
*
|
*
|
||||||
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
|
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
|
||||||
*
|
*
|
||||||
* @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.29 2005-01-11 11:02:08 guy Exp $ (LBL)
|
* @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.30 2005-01-12 09:15:05 hannes Exp $ (LBL)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -542,6 +542,13 @@ struct bpf_version {
|
||||||
#define DLT_GCOM_T1E1 172
|
#define DLT_GCOM_T1E1 172
|
||||||
#define DLT_GCOM_SERIAL 173
|
#define DLT_GCOM_SERIAL 173
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Juniper-private data link type, as per request from
|
||||||
|
* Hannes Gredler <hannes@juniper.net>. The DLT_ is used
|
||||||
|
* for internal communication to Physical Interface Cards (PIC)
|
||||||
|
*/
|
||||||
|
#define DLT_JUNIPER_PIC_PEER 174
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The instruction encodings.
|
* The instruction encodings.
|
||||||
*/
|
*/
|
||||||
|
|
3
pcap.c
3
pcap.c
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] _U_ =
|
static const char rcsid[] _U_ =
|
||||||
"@(#) $Header: /tcpdump/master/libpcap/pcap.c,v 1.82 2005-01-12 09:02:55 hannes Exp $ (LBL)";
|
"@(#) $Header: /tcpdump/master/libpcap/pcap.c,v 1.83 2005-01-12 09:15:05 hannes Exp $ (LBL)";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -365,6 +365,7 @@ static struct dlt_choice dlt_choices[] = {
|
||||||
DLT_CHOICE(DLT_GPRS_LLC, "GPRS LLC"),
|
DLT_CHOICE(DLT_GPRS_LLC, "GPRS LLC"),
|
||||||
DLT_CHOICE(DLT_GPF_T, "GPF-T"),
|
DLT_CHOICE(DLT_GPF_T, "GPF-T"),
|
||||||
DLT_CHOICE(DLT_GPF_F, "GPF-F"),
|
DLT_CHOICE(DLT_GPF_F, "GPF-F"),
|
||||||
|
DLT_CHOICE(DLT_JUNIPER_PIC_PEER, "Juniper PIC Peer"),
|
||||||
DLT_CHOICE_SENTINEL
|
DLT_CHOICE_SENTINEL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
12
savefile.c
12
savefile.c
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] _U_ =
|
static const char rcsid[] _U_ =
|
||||||
"@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.122 2005-01-11 11:02:08 guy Exp $ (LBL)";
|
"@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.123 2005-01-12 09:15:05 hannes Exp $ (LBL)";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -379,6 +379,13 @@ static const char rcsid[] _U_ =
|
||||||
#define LINKTYPE_GCOM_T1E1 172
|
#define LINKTYPE_GCOM_T1E1 172
|
||||||
#define LINKTYPE_GCOM_SERIAL 173
|
#define LINKTYPE_GCOM_SERIAL 173
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Juniper-private data link type, as per request from
|
||||||
|
* Hannes Gredler <hannes@juniper.net>. The DLT_ is used
|
||||||
|
* for internal communication to Physical Interface Cards (PIC)
|
||||||
|
*/
|
||||||
|
#define LINKTYPE_JUNIPER_PIC_PEER 174
|
||||||
|
|
||||||
static struct linktype_map {
|
static struct linktype_map {
|
||||||
int dlt;
|
int dlt;
|
||||||
int linktype;
|
int linktype;
|
||||||
|
@ -562,6 +569,9 @@ static struct linktype_map {
|
||||||
{ DLT_GCOM_T1E1, LINKTYPE_GCOM_T1E1 },
|
{ DLT_GCOM_T1E1, LINKTYPE_GCOM_T1E1 },
|
||||||
{ DLT_GCOM_SERIAL, LINKTYPE_GCOM_SERIAL },
|
{ DLT_GCOM_SERIAL, LINKTYPE_GCOM_SERIAL },
|
||||||
|
|
||||||
|
/* Juniper-internal chassis encapsulation */
|
||||||
|
{ DLT_JUNIPER_PIC_PEER, LINKTYPE_JUNIPER_PIC_PEER },
|
||||||
|
|
||||||
{ -1, -1 }
|
{ -1, -1 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in New Issue