aboutsummaryrefslogtreecommitdiffstats
path: root/in_cksum.c
AgeCommit message (Collapse)AuthorFilesLines
2001-06-09"long" does not necessarily mean "32-bit integral data type"; the unionGuy Harris1-6/+6
used to treat a 32-bit quantity either as 2 16-bit quantities or a 32-bit quantity should use "guint32", not "long", for the latter. We should also use "guint8" for the two 8-bit quantities in "s_util", although that shouldn't make a difference in practice (we store into them, but fetch only the 16-bit overlapping quantity, which is already unsigned). svn path=/trunk/; revision=3533
2001-01-10When testing the low-order bit of a pointer, cast it to "unsigned long",Guy Harris1-2/+2
not to "int", to squelch complaints from GCC on LP64 platforms such as most UNIXes on Alpha. svn path=/trunk/; revision=2865
2000-12-14Include winsock.h on windows so that htons will be defined.Gilbert Ramirez1-1/+5
svn path=/trunk/; revision=2756
2000-12-13Add code to check the checksums of TCP segments and UDP datagrams;Guy Harris1-0/+214
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). svn path=/trunk/; revision=2751