summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-ip6.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove remaining instances of the register keyword.mmcc2015-11-161-6/+6
| | | | ok deraadt@
* since stdlib.h is in scope, don't cast.... you know the drill.deraadt2015-08-211-2/+2
| | | | no sneakiness detected by krw
* 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)
* Catch up with the BPF_ALIGNMENT switch to the uint32_t.mikeb2014-12-091-2/+2
| | | | | | | | | | | | | bpf aligns data following the datalink header (e.g. ethernet) on the BPF_ALIGNMENT boundary. Since rev1.41 of bpf.h it's uint32_t instead of a long. And also since then almost all packets become "unaligned" from the tcpdump perspective and require costly copies into the internal buffer. Neither IP header (struct ip) nor IPv6 (struct ip6_hdr) have fields larger than 32 bits and therefore alignment requirements for them are at most 32 bit. ok millert, jsg, deraadt
* Restore packetp and snapend pointers once we're done with an incorrectlymikeb2014-12-031-4/+10
| | | | | | | | aligned IP/IPv6 packet so that tcpdump can print hexdump of the whole packet including the Ethernet header (if requested) and not only the IP/IPv6 part of it. ok jsg
* Fixup a crash found by jsg using the AFL fuzzer. IP and IPv6 printingmikeb2014-12-031-6/+6
| | | | | | | routines should check that there's at least a complete IP/IPv6 header available in the buffer before trying to do anything else. ok jsg
* Make ip6_print() take an unsigned length matchingjsg2014-11-201-2/+2
| | | | | | | | | | | ip_print() and others. Allows code deciding on a minimum length to memmove() to work as intended, preventing various crashes found with the afl fuzzer. Callers of ip6_print() should of course be fixed to provide sane lengths as well. ok deraadt@ djm@
* No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.mpi2014-08-141-2/+1
|
* update pointer variable after copying misaligned packet; ok claudio@naddy2011-09-171-2/+2
|
* fix an off by one which resulted in 'no next header' packets not beingdhill2011-06-271-3/+3
| | | | | | | displayed. help from bluhm@ OK claudio@
* Add support for decoding MLDv2 initially from tcpdump.org via FreeBSD,jsg2010-04-061-2/+3
| | | | | | cleaned up to be less gross after some suggestions from stsp. ok stsp@
* Print outer ipv6 addresses for encapsulated packets only if tcpdumpbluhm2009-11-271-5/+10
| | | | | is run with -v. This behavior is analog to ipv4. ok mpf@ todd@
* 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
* Handle CARP for IPv6. Reported and tested by todd@canacar2007-10-041-1/+11
| | | | ok todd@, henning@
* When aligning buffers correctly handle the case where thecanacar2007-06-271-3/+6
| | | | | | buffers overlap, which happens on 64 bit archs, when handling encapsulated packets. Reported and tested by Jurjen Oskam additional testing by Stuart Henderson and todd@, ok henning@
* Fix the out of bounds check when parsing IPv6 headers. Fixes a SIGSEGVclaudio2007-05-061-2/+2
| | | | | when parsing IPv6 headers with unknown or corrupted header options. OK henning@ mcbride@
* enable ESP and AH dissectors over IPv6; ok mpf@ (at k2k6)naddy2006-09-191-3/+12
|
* Check IP version when decoding v4 and v6 packets.canacar2005-10-081-1/+5
| | | | From Jason Wright via PR-4531.
* Some more non-alignment problems resolved.otto2004-02-041-9/+19
| | | | ok deraadt@
* bugfix from Can Erkin Acar <canacar@eee.metu.edu.tr>:henning2003-01-271-1/+3
| | | | | | hbhopt_print() and dstopt_print() can return 0 if the option is located just one byte short of snapend this would cause an infinite loop in ip6_print().
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-3/+1
|
* typosderaadt2001-11-071-4/+4
|
* INET6jakob2000-04-261-0/+201
DHCP/BOOTP tcp & udp checksum detection numerous bugfixes