summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-pflog.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove #ifdef INET6kn2018-10-221-5/+1
| | | | | | | | | | | | 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
* Sync NO_PID value from kernel header to tcpdump source. It isbluhm2017-05-241-2/+2
| | | | | | #ifdef _KERNEL, so it does not work automatically. This prevents some bogus uid and pid print when dumping from pflog interface. from Matthias Pitzl; OK deraadt@
* do not need sys/proc.hderaadt2017-01-241-2/+1
|
* Add sys/queue.h where it's needed. Unbreak userland following recentsthen2016-04-041-1/+2
| | | | removal from mbuf.h. ok mpi@
* Remove remaining instances of the register keyword.mmcc2015-11-161-2/+2
| | | | ok deraadt@
* Adjust <sys/param.h> comments regarding use of use of MSIZE, orderaadt2015-01-201-5/+4
| | | | | delete <sys/param.h> if now possible ok guenther
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+2
| | | | | | | | | 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
|
* Teach some userland tools about NAT64. I think this is mostly from mikeb@claudio2011-10-131-2/+2
| | | | OK mcbride@
* Do not use BPF_WORDALIGN when computing pflog header length as it alignscanacar2010-10-091-2/+2
| | | | | to 8-byte boundary on 64-bit architectures. Instead explicitly round up to a 4-byte boundary. Reported and tested by sthen@
* when a packet has had addresses and/or ports rewritten, show the originalhenning2010-09-211-1/+20
| | | | addresses/ports too. ok ryan dlg
* remove support for the old pflog format, replaced in 2003henning2010-06-261-93/+1
| | | | ok ryan theo & herr reyksminister
* 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
* teach tcpdump about match ruleshenning2009-04-061-2/+8
|
* trash $Header goo which is just annoying; 5595deraadt2007-10-071-2/+2
|
* Replace a C++ comment with a C comment. No code changes.cloder2005-11-231-3/+3
|
* log two pairs of uid/pid through pflog: the uid/pid of the process thatdhartmei2005-05-271-2/+13
| | | | | | | | | inserted the rule which causes the logging. secondly, the uid/pid of the process in case the logged packet is delivered to/from a local socket. a lookup of the local socket can be forced for logged packets with a new option, 'log (user)'. make tcpdump print the additional information when -e and -v is used. note: this changes the pflog header struct, rebuild all dependancies. ok bob@, henning@.
* clean up printing of rule numbers. omit ruleset name and sub-rule numberdhartmei2005-03-111-14/+18
| | | | | when irrelevant. print 'def' for default rule. omit numerical reason if description is printed. ok henning@, deraadt@
* #ifdef INET6dhartmei2003-06-211-2/+10
|
* libpcap and tcpdump now understand the new pflog datalink type.canacar2003-05-141-9/+114
| | | | | | old datalink type is still recognized. ok henning@ dhartmei@ frantzen@
* a lost ntohs() caused tcpdump not to print the action.henning2003-01-281-3/+3
| | | | debugging session with and ok'd by dhartmei@
* Support all possible rule types ("scrub" rules can log packets beingmcbride2003-01-011-5/+28
| | | | | | dropped, others may as well in the future). ok dhartmei@ henning@
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-4/+2
|
* handle ipv6; mcbride@countersiege.comjakob2001-09-181-8/+19
|
* only print pf rules when using -e flag; <canacar@eee.metu.edu.tr>jakob2001-09-031-12/+13
|
* make it compileprovos2001-07-171-3/+4
|
* fix PFRES_MAX handlingderaadt2001-06-261-3/+3
|
* array of counters indexed by reason codesderaadt2001-06-261-23/+5
|
* print reason sub codes.provos2001-06-261-3/+15
|
* print reason nr and text.provos2001-06-261-7/+11
|
* print out reason code, unless it is just a matchprovos2001-06-261-4/+15
|
* interpret DLT_PFLOGprovos2001-06-251-0/+96