Add a "in_cksum_shouldbe()" to compute, given an Internet checksum field
in a packet header and the computed checksum for the data that the
checksum covers, what the checksum field's value should have been.

Use that routine in the IP printer.
2 files changed
tree: 6b15da37e4368e3cd92da2162c2741c3dda29858
  1. lbl/
  2. missing/
  3. .cvsignore
  4. acconfig.h
  5. aclocal.m4
  6. addrtoname.c
  7. addrtoname.h
  8. ah.h
  9. appletalk.h
  10. arcnet.h
  11. atime.awk
  12. atm.h
  13. atmuni31.h
  14. bootp.h
  15. bpf_dump.c
  16. CHANGES
  17. chdlc.h
  18. config.guess
  19. config.h.in
  20. config.sub
  21. configure
  22. configure.in
  23. CREDITS
  24. decnet.h
  25. esp.h
  26. ether.h
  27. ethertype.h
  28. extract.h
  29. fddi.h
  30. FILES
  31. gmt2local.c
  32. gmt2local.h
  33. icmp6.h
  34. ieee802_11.h
  35. igrp.h
  36. INSTALL
  37. install-sh
  38. interface.h
  39. ip.h
  40. ip6.h
  41. ipsec_doi.h
  42. ipx.h
  43. isakmp.h
  44. l2tp.h
  45. lane.h
  46. LICENSE
  47. llc.h
  48. machdep.c
  49. machdep.h
  50. Makefile-devel-adds
  51. Makefile.in
  52. makemib
  53. mib.h
  54. mkdep
  55. nameser.h
  56. netbios.h
  57. nfs.h
  58. nfsfh.h
  59. ntp.h
  60. oakley.h
  61. ospf.h
  62. ospf6.h
  63. packetdat.awk
  64. parsenfsfh.c
  65. PLATFORMS
  66. ppp.h
  67. print-802_11.c
  68. print-ah.c
  69. print-arcnet.c
  70. print-arp.c
  71. print-ascii.c
  72. print-atalk.c
  73. print-atm.c
  74. print-beep.c
  75. print-bgp.c
  76. print-bootp.c
  77. print-cdp.c
  78. print-chdlc.c
  79. print-cip.c
  80. print-cnfp.c
  81. print-decnet.c
  82. print-dhcp6.c
  83. print-domain.c
  84. print-dvmrp.c
  85. print-egp.c
  86. print-esp.c
  87. print-ether.c
  88. print-fddi.c
  89. print-fr.c
  90. print-frag6.c
  91. print-gre.c
  92. print-hsrp.c
  93. print-icmp.c
  94. print-icmp6.c
  95. print-igmp.c
  96. print-igrp.c
  97. print-ip.c
  98. print-ip6.c
  99. print-ip6opts.c
  100. print-ipcomp.c
  101. print-ipx.c
  102. print-isakmp.c
  103. print-isoclns.c
  104. print-krb.c
  105. print-l2tp.c
  106. print-lane.c
  107. print-lcp.c
  108. print-llc.c
  109. print-lwres.c
  110. print-mobile.c
  111. print-mobility.c
  112. print-mpls.c
  113. print-msdp.c
  114. print-netbios.c
  115. print-nfs.c
  116. print-ntp.c
  117. print-null.c
  118. print-ospf.c
  119. print-ospf6.c
  120. print-pflog.c
  121. print-pim.c
  122. print-ppp.c
  123. print-pppoe.c
  124. print-pptp.c
  125. print-radius.c
  126. print-raw.c
  127. print-rip.c
  128. print-ripng.c
  129. print-rt6.c
  130. print-rx.c
  131. print-sctp.c
  132. print-sl.c
  133. print-sll.c
  134. print-smb.c
  135. print-snmp.c
  136. print-stp.c
  137. print-sunatm.c
  138. print-sunrpc.c
  139. print-tcp.c
  140. print-telnet.c
  141. print-tftp.c
  142. print-timed.c
  143. print-token.c
  144. print-udp.c
  145. print-vjc.c
  146. print-vrrp.c
  147. print-wb.c
  148. print-zephyr.c
  149. README
  150. route6d.h
  151. rx.h
  152. sctpConstants.h
  153. sctpHeader.h
  154. send-ack.awk
  155. setsignal.c
  156. setsignal.h
  157. slcompress.h
  158. slip.h
  159. sll.h
  160. smb.h
  161. smbutil.c
  162. stime.awk
  163. strcasecmp.c
  164. tcp.h
  165. tcpdump.1
  166. tcpdump.c
  167. telnet.h
  168. timed.h
  169. TODO
  170. token.h
  171. udp.h
  172. util.c
  173. VERSION
  174. vfprintf.c