Skip to content

Commit

Permalink
Allocate DLT_ for 802.15.4 without any header munging, for Mikko
Browse files Browse the repository at this point in the history
Saarnivala.

Fix a comment.

Also, propagate

  revision 1.156
  date: 2007-05-24 23:57:36 +0000;  author: hannes;  state: Exp;  lines: +13 -1
  add support for DLT_JUNIPER_ISM

to the x.9 branch.
  • Loading branch information
yuguy committed Jun 5, 2007
1 parent 7e4cec8 commit 07da703
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
17 changes: 16 additions & 1 deletion pcap-bpf.h
Expand Up @@ -37,7 +37,7 @@
*
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
*
* @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.34.2.18 2007-05-04 09:47:45 guy Exp $ (LBL)
* @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.34.2.19 2007-06-05 18:07:03 guy Exp $ (LBL)
*/

/*
Expand Down Expand Up @@ -687,6 +687,21 @@ struct bpf_version {
*/
#define DLT_IEEE802_16_MAC_CPS_RADIO 193

/*
* Juniper-private data link type, as per request from
* Hannes Gredler <hannes@juniper.net>.
* The DLT_ is used for internal communication with a
* integrated service module (ISM).
*/
#define DLT_JUNIPER_ISM 194

/*
* IEEE 802.15.4, exactly as it appears in the spec (no padding, no
* nothing); requested by Mikko Saarnivala <mikko.saarnivala@sensinode.com>.
*/
#define DLT_IEEE802_15_4 195


/*
* The instruction encodings.
*/
Expand Down
26 changes: 23 additions & 3 deletions savefile.c
Expand Up @@ -30,7 +30,7 @@

#ifndef lint
static const char rcsid[] _U_ =
"@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.126.2.24 2007-05-04 09:47:45 guy Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.126.2.25 2007-06-05 18:07:03 guy Exp $ (LBL)";
#endif

#ifdef HAVE_CONFIG_H
Expand Down Expand Up @@ -498,7 +498,6 @@ static const char rcsid[] _U_ =
*/
#define LINKTYPE_IEEE802_15_4_LINUX 191


/*
* Per Packet Information encapsulated packets.
* LINKTYPE_ requested by Gianluca Varenni <gianluca.varenni@cacetech.com>.
Expand All @@ -511,6 +510,21 @@ static const char rcsid[] _U_ =
*/
#define LINKTYPE_IEEE802_16_MAC_CPS_RADIO 193

/*
* Juniper-private data link type, as per request from
* Hannes Gredler <hannes@juniper.net>.
* The DLT_ is used for internal communication with a
* integrated service module (ISM).
*/
#define LINKTYPE_JUNIPER_ISM 194

/*
* IEEE 802.15.4, exactly as it appears in the spec (no padding, no
* nothing); requested by Mikko Saarnivala <mikko.saarnivala@sensinode.com>.
*/
#define LINKTYPE_IEEE802_15_4 195


static struct linktype_map {
int dlt;
int linktype;
Expand Down Expand Up @@ -749,9 +763,15 @@ static struct linktype_map {
/* Per Packet Information encapsulated packets */
{ DLT_PPI, LINKTYPE_PPI },

/* IEEE 802.15 MAC Common Part Sublayer plus radiotap header */
/* IEEE 802.16 MAC Common Part Sublayer plus radiotap header */
{ DLT_IEEE802_16_MAC_CPS_RADIO, LINKTYPE_IEEE802_16_MAC_CPS_RADIO },

/* Juniper Voice ISM */
{ DLT_JUNIPER_ISM, LINKTYPE_JUNIPER_ISM },

/* IEEE 802.15.4 exactly as it appears in the spec */
{ DLT_IEEE802_15_4, LINKTYPE_IEEE802_15_4 },

{ -1, -1 }
};

Expand Down

0 comments on commit 07da703

Please sign in to comment.