Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal in_cksum.c in_cksum.h Makefile.am Makefile.n
guy 2000/12/12 20:24:23 CST
Modified files:
. Makefile.am Makefile.nmake packet-tcp.c
packet-udp.c packet-ip.c
Added files:
. in_cksum.c in_cksum.h
Log:
Add code to check the checksums of TCP segments and UDP datagrams;
replace the existing checksummer with a modified version of the BSD
checksumming code. Add a flag to the "packet_info" structure to
indicate that a packet is the first fragment of a fragmented datagram,
so that the checksummers won't try to checksum those.
(It doesn't seem to add a lot of CPU overhead, so we don't introduce a
flag to disable it, yet. Further checks may be necessary to see whether
the overhead is just swamped by other overheads when scanning through a
capture dissecting all frames, or if it truly is negligible.)
Make the Boolean preference option controlling whether to make the
top-level protocol tree item for TCP display a packet summary static to
the TCP dissector (it doesn't need to be accessible outside the TCP
dissector).
Revision Changes Path
1.258 +3 -1 ethereal/Makefile.am
1.67 +2 -1 ethereal/Makefile.nmake
1.92 +61 -7 ethereal/packet-tcp.c
1.80 +59 -3 ethereal/packet-udp.c
1.110 +17 -45 ethereal/packet-ip.c