diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-03-15 09:11:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-03-15 09:11:03 +0000 |
commit | 7ecac8fbd047f9bfaefd05287e1e6916c3d85bd9 (patch) | |
tree | cf8e3945012163e0e15fde35c4e967ef6ebd56c6 /wiretap/wtap.h | |
parent | 56d199c7ff62eab6b942177adf69ff0a2392707b (diff) |
Add a new Wiretap encapsulation type for Cisco HDLC. Map the NetBSD
DLT_HDLC to it.
Make a separate dissector for Cisco HDLC, and add a dissector for Cisco
SLARP. Have the PPP dissector call the Cisco HDLC dissector if the
address field is the Cisco HDLC unicast or multicast address. Use the
Cisco HDLC dissector for the Cisco HDLC Wiretap encapsulation type.
Add a new dissector table "chdlctype", for Cisco HDLC packet types
(they're *almost* the same as Ethernet types, but 0x8035 is SLARP, not
Reverse ARP, and 0x2000 is the Cisco Discovery protocol, for example),
replacing "fr.chdlc".
Have a "chdlctype()" routine, similar to "ethertype()", used both by the
Cisco HDLC and Frame Relay dissectors. Have a "chdlc_vals[]"
"value_string" table for Cisco HDLC types and protocol names. Split the
packet type field in the Frame Relay dissector into separate SNAP and
Cisco HDLC fields, and give them the Ethernet type and Cisco HDLC type
"value_string" tables, respectively.
svn path=/trunk/; revision=3133
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r-- | wiretap/wtap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h index 16d39eeb25..fe4f302e77 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -1,6 +1,6 @@ /* wtap.h * - * $Id: wtap.h,v 1.85 2001/02/22 22:03:31 guy Exp $ + * $Id: wtap.h,v 1.86 2001/03/15 09:11:03 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org> @@ -97,9 +97,10 @@ #define WTAP_ENCAP_IEEE_802_11 18 #define WTAP_ENCAP_SLL 19 #define WTAP_ENCAP_FRELAY 20 +#define WTAP_ENCAP_CHDLC 21 /* last WTAP_ENCAP_ value + 1 */ -#define WTAP_NUM_ENCAP_TYPES 21 +#define WTAP_NUM_ENCAP_TYPES 22 /* File types that can be read by wiretap. We support writing some many of these file types, too, so we |