changes include:
- do not chase header if ip/ip6 datagram is framgented, and it is not the
first fragment
- u_short -> u_int16_t
- buffer boundary checks, including sprintf -> snprintf
- cleanup truncated packet cases
- pull tcpdump.org enhancements/corrections for RIP, IPv6 options, ICMPv6,
OSPFv3, IPv4 options, BGP
there are a lot of local/conflicting changes. we'd gradually decrease
# of diffs by synchronizing both ends, and then move to src/dist/tcpdump
and reachover makefile.
- print-telnet.c: do not print control character
- print-icmp6.c: improve icmp6 node information printing
(we need to at least meet our kernel code!)
- update dhcp6 printing to 15 draft (14 and 15 are totally incompatible)
- add safeputc() and safeputs() into util.c
- more length overflow check for ip6 related parsing
- protocol decode fixes
- add dhcp6 parser
XXX how should we maintain usr.sbin/tcpdump for years to come?
relationship with www.tcpdump.org codebase?