Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-clip.c packet-clnp.c packet-clnp.h pa
guy 2000/11/18 04:38:31 CST
Modified files:
. packet-clip.c packet-clnp.c packet-clnp.h
packet-esis.c packet-esis.h packet-eth.c
packet-ethertype.c packet-gre.c
packet-ip.c packet-ip.h packet-mpls.c
packet-msproxy.c packet-osi-options.c
packet-osi-options.h packet-osi.c
packet-osi.h packet-pim.c packet-ppp.c
packet-raw.c packet-socks.c packet-tcp.c
packet-tcp.h packet-udp.c packet-udp.h
packet-vlan.c packet-x25.c
Log:
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.
Revision Changes Path
1.11 +13 -5 ethereal/packet-clip.c
1.14 +451 -418 ethereal/packet-clnp.c
1.4 +2 -2 ethereal/packet-clnp.h
1.8 +108 -118 ethereal/packet-esis.c
1.3 +1 -7 ethereal/packet-esis.h
1.47 +48 -33 ethereal/packet-eth.c
1.9 +8 -2 ethereal/packet-ethertype.c
1.27 +10 -3 ethereal/packet-gre.c
1.106 +229 -228 ethereal/packet-ip.c
1.15 +4 -4 ethereal/packet-ip.h
1.10 +9 -3 ethereal/packet-mpls.c
1.13 +5 -3 ethereal/packet-msproxy.c
1.3 +62 -52 ethereal/packet-osi-options.c
1.2 +3 -3 ethereal/packet-osi-options.h
1.36 +34 -25 ethereal/packet-osi.c
1.5 +3 -3 ethereal/packet-osi.h
1.19 +10 -4 ethereal/packet-pim.c
1.41 +96 -99 ethereal/packet-ppp.c
1.20 +16 -7 ethereal/packet-raw.c
1.14 +7 -3 ethereal/packet-socks.c
1.88 +116 -92 ethereal/packet-tcp.c
1.6 +2 -2 ethereal/packet-tcp.h
1.78 +42 -35 ethereal/packet-udp.c
1.5 +2 -2 ethereal/packet-udp.h
1.24 +35 -15 ethereal/packet-vlan.c
1.37 +14 -17 ethereal/packet-x25.c