summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-pfsync.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Another ip_ipsp.h missing, found by krw@claudio2017-01-201-1/+2
|
* Don't assume clr->ifname is a NUL-terminated printable string.millert2016-10-271-3/+11
| | | | | Use vis(3) to safely print ifname and stop at IFNAMSIZ bytes. Found with afl by jsg@. OK jsg@
* Remove remaining instances of the register keyword.mmcc2015-11-161-2/+2
| | | | ok deraadt@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+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
|
* replay counter was bumped a while ago, update byte order conversion;mikeb2012-09-191-5/+6
| | | | | while here, improve the way information is printed out a bit. with input and ok camield, mpf
* the new protocol moved insert and update.dlg2009-11-091-4/+6
|
* 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
* do not include space in the end of the from for a hmac. after discussiondlg2009-03-311-12/+5
| | | | | | | | with deraadt@, mcbride@, and mpf@ it is obvious that a hmac doesnt make sense for pfsync. this also firms up some of the input parsing so it handles short frames a bit better.
* better detect short frames. always print the version and length of thedlg2009-02-231-5/+9
| | | | | frame according to the pfsync header. dont try to parse an unsupported version of the protocol.
* pfsync v5, mostly written at n2k9, but based on work done at n2k8.dlg2009-02-161-92/+205
| | | | | | | | | | | | | | | | | WARNING: THIS BREAKS COMPATIBILITY WITH THE PREVIOUS VERSION OF PFSYNC this is a new variant of the protocol and a large reworking of the pfsync code to address some performance issues. the single largest benefit comes from having multiple pfsync messages of different types handled in a single packet. pfsyncs handling of pf states is highly optimised now, along with packet parsing and construction. huggz for beck@ for testing. huge thanks to mcbride@ for his help during development and for finding all the bugs during the initial tests. thanks to peter sutton for letting me get credit for this work. ok beck@ mcbride@ "good." deraadt@
* trash $Header goo which is just annoying; 5595deraadt2007-10-071-2/+2
|
* typo: print hexdump of packet, instead of pcap header; ok canacar, henningmarkus2007-09-211-3/+3
|
* pf_state is no longer the same; modify pf_print_state.c to acceptmcbride2007-05-311-31/+3
| | | | | | pfsync_state (as in pfctl, but in network byte order). ok henning@ toby@ pyr@
* crank pf_state and pf_src_node byte and packet counters to u_in64_t, sincemcbride2005-11-041-6/+6
| | | | | | we're breaking pfsync compatibility this cycle anyways. Requested by djm@, ok henning@, 'wheee!' deraadt@
* Add SA replay counter synchronization to pfsync(4). Required for IPsecho2005-05-281-2/+11
| | | | failover gateways. ok mcbride@, "looks good" hshoexer@
* Include protocol name in printout.mcbride2004-07-071-3/+3
|
* Add support for PFSYNC_ACT_BUS. (Bulk Update Status)mcbride2004-03-221-3/+26
| | | | ok deraadt@
* Print ifname in PFSYNC_ACT_CLR message if present.mcbride2004-02-201-2/+4
|
* Make pfsync printing consistent with rest of tcpdump regarding newlines,mcbride2004-02-101-12/+17
| | | | pass -vv in to pf_print_state(), and print update count where appropriate.
* Make pfsync work correctly with IP options on 64-bit alignmentmcbride2004-02-101-6/+10
| | | | sensitive CPUs. Pointed out by deraadt@.
* Increment the right pointers, so we don't print the same entries repeatedly.mcbride2004-01-211-4/+4
|
* Clean up pfsync output: print source address by default, pass -vv correctlymcbride2004-01-211-5/+15
| | | | to pf_print_state(), and other minor cleanup.
* zap unused variable; ok mcbridepvalchev2004-01-041-3/+2
|
* Many improvements to the handling of interfaces in PF.cedric2003-12-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) PF should do the right thing when unplugging/replugging or cloning/ destroying NICs. 2) Rules can be loaded in the kernel for not-yet-existing devices (USB, PCMCIA, Cardbus). For example, it is valid to write: "pass in on kue0" before kue USB is plugged in. 3) It is possible to write rules that apply to group of interfaces (drivers), like "pass in on ppp all" 4) There is a new ":peer" modifier that completes the ":broadcast" and ":network" modifiers. 5) There is a new ":0" modifier that will filter out interface aliases. Can also be applied to DNS names to restore original PF behaviour. 6) The dynamic interface syntax (foo) has been vastly improved, and now support multiple addresses, v4 and v6 addresses, and all userland modifiers, like "pass in from (fxp0:network)" 7) Scrub rules now support the !if syntax. 8) States can be bound to the specific interface that created them or to a group of interfaces for example: - pass all keep state (if-bound) - pass all keep state (group-bound) - pass all keep state (floating) 9) The default value when only keep state is given can be selected by using the "set state-policy" statement. 10) "pfctl -ss" will now print the interface scope of the state. This diff change the pf_state structure slighltly, so you should recompile your userland tools (pfctl, authpf, pflogd, tcpdump...) Tested on i386, sparc, sparc64 by Ryan Tested on macppc, sparc64 by Daniel ok deraadt@ mcbride@
* Unbreak tree by using correct PFSYNC_ACT_UREQ #define.mcbride2003-12-281-4/+3
| | | | Also remove unused hlen variable.
* Add a new PFSYNC_ACT_UREQ message type.mcbride2003-12-281-2/+16
| | | | | | | A pfsync system which recieves a partial update for a state it cannot find can now request a full version of the update, and insert it. pfsync'd firewalls now converge more gracefully if one is missing some states (due to reset, lost insert packets, etc).
* Zero out the pf_state struct before filling it with data from themcbride2003-12-271-2/+3
| | | | pfsync_state struct.
* Argh. Calculate the length really, really correctly.mcbride2003-12-191-3/+3
|
* Calculate the length of the captured pfsync payload correctly when printingmcbride2003-12-191-3/+3
| | | | | | pfsync packets recieved on the wire. Prevents printing of giberish states with snaplen smaller than the mtu of syncif on the sender, and probably other ungoodness.
* Add initial support for pf state synchronization over the network.mcbride2003-12-151-39/+84
| | | | | | | | | | | | | | | | | | | | | | | | | Implemented as an in-kernel multicast IP protocol. Turn it on like this: # ifconfig pfsync0 up syncif fxp0 There is not yet any authentication on this protocol, so the syncif must be on a trusted network. ie, a crossover cable between the two firewalls. NOTABLE CHANGES: - A new index based on a unique (creatorid, stateid) tuple has been added to the state tree. - Updates now appear on the pfsync(4) interface; multiple updates may be compressed into a single update. - Applications which use bpf on pfsync(4) will need modification; packets on pfsync no longer contains regular pf_state structs, but pfsync_state structs which contain no pointers. Much more to come. ok deraadt@
* Return proper anchor rule number in correct byte order.dhartmei2003-11-081-2/+3
| | | | From Pyun YongHyeon. ok henning@, canacar@
* Print "|pfsync" if the packet is truncated, not "|pflog".mcbride2003-11-081-3/+3
|
* Make tcpdump -x work with pfsync.mcbride2003-11-051-2/+4
| | | | ok dhartmei@
* - newline before printing first state (so they all line up and the firstmcbride2003-11-021-6/+4
| | | | | | | state doesn't wrap) - No need to print the rule number, that's included in the -v output. ok dhartmei@ canacar@
* count packets and bidirectionally on state entries, allowing for fine-graineddjm2003-06-211-4/+6
| | | | | | | traffic reporting w/ pfsync; ok dhartmei@ Note: ABI change (new fields in struct pf_state), requires a rebuild of pfctl and tcpdump.
* Remove pfr_unwrap_table workaround, it's no longer needed.dhartmei2003-01-071-9/+2
|
* workaround until pf fixes thisderaadt2003-01-041-3/+10
|
* no need to ntohs the portsmickey2002-12-231-5/+5
|
* use bcopy instead of struct assignmentmickey2002-12-201-6/+7
|
* pfsync support; deraadt@ okmickey2002-11-301-0/+130
|
* stop breaking the damn tree mickeyderaadt2002-11-301-130/+0
|
* tcpdump support for pfsync; henning@ okmickey2002-11-291-0/+130