aboutsummaryrefslogtreecommitdiffstats
path: root/packet-srvloc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-08-04 22:43:45 +0000
committerGuy Harris <guy@alum.mit.edu>2000-08-04 22:43:45 +0000
commit1239d0e5d25adea04b5478c49f7155a4946bf070 (patch)
tree52cad234c2f9a3fc95716f9bf4e7ec1f14a54938 /packet-srvloc.c
parentb20fbb9d9fa822d801325d29f1f33675e7272d67 (diff)
downloadwireshark-1239d0e5d25adea04b5478c49f7155a4946bf070.tar.gz
wireshark-1239d0e5d25adea04b5478c49f7155a4946bf070.tar.bz2
wireshark-1239d0e5d25adea04b5478c49f7155a4946bf070.zip
Clean up the checksumming stuff a bit:
have "ip_checksum()" compute the checksum of the IP header; have "ip_checksum_state()" call "ip_checksum()" and then return TRUE if the result is 0 and FALSE otherwise; have "ip_checksum_shouldbe()" save the current value of the checksum field in the header, set that field to 0, call "ip_checksum()" to get the checksum, restore the value of the checksum field in the header to the saved value, and then return what "ip_checksum()" returned; rather than having duplicated code to compute checksums. svn path=/trunk/; revision=2206
Diffstat (limited to 'packet-srvloc.c')
0 files changed, 0 insertions, 0 deletions