summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-icmp6.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use long labs(3) for pointer arithmetic.bluhm2016-07-281-2/+2
| | | | Found by David Hill with clang.
* Print RA Route Information prefix, preference and lifetime.jca2016-05-071-2/+41
| | | | ok mpi@
* In verbose mode, print the router preference contained in RAs.jca2016-05-061-3/+19
| | | | | | "pref" keyword taken from tcpdump.org. ok mpi@ sthen@ deraadt@
* o remove legacy code that defines abs(3) if it isn't availablemmcc2016-03-151-4/+2
| | | | | | | | | | | | | | | | o inline an ugly and potentially risky macro of the form: #define x if (a) b; else o fix a >21 y.o. bug resulting from someone writing: puts("[nothing to parse], stdout"); when they meant: fputs("[nothing to parse]", stdout); ok canacar@
* Remove remaining instances of the register keyword.mmcc2015-11-161-24/+24
| | | | ok deraadt@
* Print RDNSS nameserver addresses, and print option names for some othersthen2015-11-021-2/+31
| | | | | known options that we don't otherwise decode yet (DNSSL, route information). ok mpi@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.mpi2014-08-141-2/+1
|
* Instead of showing the difference between a bad checksum and a goodlteo2014-06-201-5/+8
| | | | | | | | | | | | | | checksum, make tcpdump (with the -v flag) show the actual bad checksum within the IP/protocol header itself and what the good checksum should be, e.g. "[bad tcp cksum abcd! -> d1e6]" This change applies to IP, TCP (over IPv4 and IPv6), UDP (over IPv4 and IPv6), ICMP, and ICMPv6. This commit also fixes several inconsistencies in the way bad checksums were displayed for these protocols. Tested on amd64, i386, and macppc. ok henning@
* Let tcpdump detect bad ICMPv6 checksums with the -v flag.lteo2014-01-111-1/+42
| | | | | | Tested on amd64, i386, loongson, and macppc. OK florian@
* These two programs got fooled by the KAME/NRL split and need type repair.deraadt2013-10-241-4/+4
| | | | | | They do not indicate a problem with the reduction of namespace export, but got suckered into the 1999 plan. ok benno
* Make tcpdump -v print the id and seq of icmp6 echo packets.bluhm2011-09-171-4/+8
| | | | ok claudio naddy
* access a 32-bit field as u_int32_t, not as u_long; ok bluhm@naddy2011-09-171-5/+5
|
* Add support for decoding MLDv2 initially from tcpdump.org via FreeBSD,jsg2010-04-061-3/+193
| | | | | | cleaned up to be less gross after some suggestions from stsp. ok stsp@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-6/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* add a missing check for truncated dport in the returned UDP header forsthen2009-05-251-1/+2
| | | | ICMP_UNREACH_PORT. from Peter J. Philipp, ok jsing@. Closes system/6149.
* In tcpdump some printf() had an additional \n at the end. Removingbluhm2009-01-291-5/+5
| | | | | | that new line restores the one-line -> one-packet semantics. ok hshoexer@, henning@, markus@
* Check for invalid ICMP6 option length, ok itojun@dhartmei2002-11-281-1/+5
|
* typoderaadt2002-05-301-2/+2
|
* Spelling: preffered -> preferredpvalchev2001-06-041-2/+2
|
* INET6jakob2000-04-261-0/+572
DHCP/BOOTP tcp & udp checksum detection numerous bugfixes