"icmp6_rrenum_print()" doesn't use its "icmp6len" argument (and, as that
just reflects the payload length, the snapshot length has been trimmed
to correspond to it, so it doesn't need to check it merely to avoid
running past the end of the IPv6 payload); get rid of it.

Pass "icmp6_print()" the IPv6 payload length (i.e., the length of the
ICMPv6 packet), rather than having it compre the length itself.

Make the length argument to "icmp6_cksum()" unsigned, to match the value
passed to it.

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