Make icmp_print() accept the length variable, which is the length of the
authorlteo <lteo@openbsd.org>
Sat, 11 Jan 2014 04:35:52 +0000 (04:35 +0000)
committerlteo <lteo@openbsd.org>
Sat, 11 Jan 2014 04:35:52 +0000 (04:35 +0000)
commitb2b5e59be16c5901db999da017e311c22743216c
treeaa2e9152a27560a32f44f64110d18873aadf02d5
parent7dcdad2d62ef0050b63603e3eeb514c61292a9ea
Make icmp_print() accept the length variable, which is the length of the
packet without the IP header.  This is needed by the next commit that
will allow tcpdump to detect bad ICMP checksums.

Related functions like {tcp,udp,icmp6}_print() already accept this
length variable, so this change makes icmp_print() consistent with
them as well.

This commit makes no functional change to tcpdump itself.

OK florian@
usr.sbin/tcpdump/interface.h
usr.sbin/tcpdump/print-icmp.c
usr.sbin/tcpdump/print-ip.c
usr.sbin/tcpdump/print-ipsec.c