diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-18 10:38:33 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-18 10:38:33 +0000 |
commit | c8196a1d1ca5a5021388cfc1bcbb64cdda5e9dc3 (patch) | |
tree | 5e117f446c6e233d14b642596d67c985e685f328 /packet-osi-options.h | |
parent | 56a0c40c18271046d22bffcc5db10cfb16a2bf6c (diff) | |
download | wireshark-c8196a1d1ca5a5021388cfc1bcbb64cdda5e9dc3.tar.gz wireshark-c8196a1d1ca5a5021388cfc1bcbb64cdda5e9dc3.tar.bz2 wireshark-c8196a1d1ca5a5021388cfc1bcbb64cdda5e9dc3.zip |
Tvbuffify the IP, ICMP, TCP, UDP, OSI CLNP, OSI COTP, OSI CLTP, and OSI
ESIS dissectors.
Register the IP dissector and have dissectors that call it directly
(rather than through a port table) call it through a handle.
Add a routine "tvb_set_reported_length()" which a dissector can use if
it was handed a tvbuff that contains more data than is actually in its
part of the packet - for example, handing a padded Ethernet frame to IP;
the routine sets the reported length of the tvbuff (and also adjusts the
actual length, as appropriate). Then use it in IP.
Given that, "ethertype()" can determine how much of the Ethernet frame
was actually part of an IP datagram (and can do the same for other
protocols under Ethernet that use "tvb_set_reported_length()"; have it
return the actual length, and have "dissect_eth()" and "dissect_vlan()"
use that to mark trailer data in Ethernet II frames as well as in 802.3
frames.
svn path=/trunk/; revision=2658
Diffstat (limited to 'packet-osi-options.h')
-rw-r--r-- | packet-osi-options.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-osi-options.h b/packet-osi-options.h index fdd54d8368..d3b760d800 100644 --- a/packet-osi-options.h +++ b/packet-osi-options.h @@ -1,7 +1,7 @@ /* packet-osi-options.h * Defines for OSI options part decode * - * $Id: packet-osi-options.h,v 1.1 2000/04/15 22:11:12 guy Exp $ + * $Id: packet-osi-options.h,v 1.2 2000/11/18 10:38:24 guy Exp $ * Ralf Schneider <Ralf.Schneider@t-online.de> * * Ethereal - Network traffic analyzer @@ -32,8 +32,8 @@ /* * published API functions */ -extern void dissect_osi_options( u_char, u_char, const u_char *, int, - frame_data *, proto_tree *); +extern void dissect_osi_options( u_char, u_char, tvbuff_t *, int, + packet_info *, proto_tree *); extern void proto_register_osi_options(void); #endif /* _PACKET_OSI_OPTIONS_H */ |