summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-null.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Avoid integer underflow due to tiny snaplenkn2020-07-211-1/+6
| | | | | | | | | | | | For DLT_NULL and DLT_LOOP interfaces, print-null.c passes `caplen - NULL_HDRLEN' as length to default_print() which takes an unsigned integer, hence if caplen is smaller than the header itself (four octets), this difference wraps around. Exit early in such cases and print the expected truncation marker "[|null]" instead. Feedback OK dlg
* Remove #ifdef INET6kn2018-10-221-9/+2
| | | | | | | | | | | | There's not reason to build without IPv6 support, `-U INET6' builds were broken anyway. Fix an empty redefine for IPPROTO_IPV6 in print-ip.c while here. No object change on amd64 and sparc64 with clang, gcc compiles differently but behaviour stays the same. OK denis deraadt
* Account for the header size when dealing with null link layer ifaces.jca2015-11-051-3/+3
| | | | From Kevin Reay, ok sthen@
* 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
|
* 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
* Recognize MPLS packets over loopback interfaces.michele2008-12-291-2/+9
| | | | OK canacar@
* trash $Header goo which is just annoying; 5595deraadt2007-10-071-2/+2
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-4/+2
|
* proper handling for DLT_NULL and DLT_LOOP (header byte swapping); pointed out and tested by Alexander Yurchenko <grange@rt.mipt.ru>mickey2002-01-231-8/+12
|
* add missing ntohlprovos2001-06-251-2/+4
|
* Correctly handle gif(4) interface passing down AF_LINK family framesangelos2001-05-241-16/+74
| | | | (which we treat as ethernet frames). itojun@ ok
* Add $OpenBSD$. (jakob@ ok)ho2000-10-031-1/+3
|
* INET6jakob2000-04-261-17/+28
| | | | | | DHCP/BOOTP tcp & udp checksum detection numerous bugfixes
* bring more inline with tcpdump 3.4brad1999-09-161-6/+6
|
* - Merge some changes from tcpdump 3.4jakob1999-07-281-3/+6
| | | | | | | | | | | | | | | -a flag; attempt to convert network and broadcast addresses to names Improved signal handling Miscellaneous fixes and typos OSPF MD5 authentication support - -X flag; emacs-hexl print (including ascii) - Add ECN bits to TCP and IP headers - IKE & IPsec (ESP & AH) support OK deraadt@
* convert DLT_LOOP header to network-order u_int32_tderaadt1998-06-261-2/+2
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-2/+2
|
* Better handling for AppleTalk, and netatalk in particular.denny1997-07-231-10/+16
| | | | Handle native Ethertalk phase 1 & 2 as well as the localtalk encapsulation a la Kinetics FastPath previously handled.
* *** empty log message ***bitblt1996-12-121-9/+11
|
* it is 3.2 now.mickey1996-07-131-6/+9
|
* sync to latestderaadt1996-06-101-1/+1
|
* Updating to the latest LBL release.mickey1996-03-041-0/+1
| | | | Sun's SKIP support added.
* initial import of NetBSD treederaadt1995-10-181-0/+113