summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
AgeCommit message (Expand)Author
2011-03-07Declare the inline function pf_addr_compare() non-static in pfvar.hAlexander Bluhm
2011-03-05The function pf_tag_packet() never fails. Remove a redundant checkAlexander Bluhm
2011-02-23fixup source address rewriting for the icmp errors with the rdr-to setup.Mike Belopuhov
2011-02-14Add missing byte-order swap to pf_match_addr_range. Without this, rulesStuart Henderson
2011-02-06pf_translate() may be called from pflog_packet(). Make sure thatAlexander Bluhm
2011-02-06pf_test() and pf_test6() drop IPv4-ICMP6 and IPv6-ICMP packets. DoAlexander Bluhm
2011-02-05When a packet with an unusual protocol number got rewritten, theAlexander Bluhm
2011-01-22Pf must not scrub packets which will be dropped anyway.Alexander Bluhm
2011-01-19Give pf_normalize_ip() the same 3 way semantics as pf_test().Alexander Bluhm
2011-01-11Perform IP options check in pf_test_rule(), before creating state.Ryan Thomas McBride
2011-01-10If pf_test() was called recursively, the global variable pf_hdrsAlexander Bluhm
2011-01-10DPFPRINTF already adds the "pf: ", no need to put it in the errorRyan Thomas McBride
2011-01-05Remove mbuf ptr save dance in pf_test6(). It was a leftover withAlexander Bluhm
2010-12-31Address comparisson is implemented twice in pf.c. Put this into aAlexander Bluhm
2010-12-24in pf_src_connlimit, the indices to sk->addr were swapped.Henning Brauer
2010-12-07remove a bunch of unused argumentsJonathan Gray
2010-09-24itojun picked exactly the right reason in that REASON_SET call. really noHenning Brauer
2010-09-24use pd->rdomain for the PF_MISMATCHAW checks in pf_test_fragment instead ofHenning Brauer
2010-09-24no need to pf_tag_packet in the stateless case in pf_test sinceHenning Brauer
2010-09-24hello, this is captain obvious speaking:Henning Brauer
2010-09-24remove misleading XXX comment. it is pretty clear by now thatHenning Brauer
2010-09-24nicer linewraps, purely cosmeticHenning Brauer
2010-09-24kill some unused arguments to pf_create_stateJonathan Gray
2010-09-23Break out rule counter update code into a separate function, makes theRyan Thomas McBride
2010-09-22add a new log opt PF_LOG_MATCHESHenning Brauer
2010-09-22various whitespace fixes that my hands did while i was looking for sthHenning Brauer
2010-09-21assert copyrights / bump yearsHenning Brauer
2010-09-21after ruleset eval is done, we must apply actions from the last matchingHenning Brauer
2010-09-21do not increment states_tot on match rules. it is purely cosmetic, thisHenning Brauer
2010-09-21make "match log" rules log on the fly. thus you can log and see the packetHenning Brauer
2010-09-21remove now obsolete XXX commentHenning Brauer
2010-09-21make pf_translate (void so far) return 1 if it actually changed somethingHenning Brauer
2010-09-21factor our the code to set up pf_pdesc, a central structure in pf carryingHenning Brauer
2010-08-05In pf_icmp_mapping() the ICMP and ICMPv6 types shared the sameAlexander Bluhm
2010-07-02m_copyback can fail to allocate memory, but is a void fucntion so gymnasticsBret Lambert
2010-07-01g/c unused param to pf_translateHenning Brauer
2010-06-27fix a comment and add a new one to make clear what the mbuf ptr save danceHenning Brauer
2010-06-27stuff nsaddr/ndaddr/nsport/ndport (addrs/ports after NAT, used a lot whileHenning Brauer
2010-05-07Start cleaning up the mess called rtalloc*. Kill rtalloc2, make rtalloc1Claudio Jeker
2010-02-04pf_get_sport() picks a random port from the port range specified in aStuart Henderson
2010-01-18Convert pf debug logging to using log()/addlog(), a single standardisedRyan Thomas McBride
2010-01-14henning and I are both dumbasses, testing &foo against NULL is pointless.Ryan Thomas McBride
2010-01-14When printing states in debug output, print the rule number that createdRyan Thomas McBride
2010-01-14i forgot to remove a now obsolete comment in pf_create_state aboutHenning Brauer
2010-01-14in pf_create_state, when we fixed the leaks, we were a bit too triggerHenning Brauer
2010-01-13in pf_state_key_detach, ensure that the state key pointer on the stateHenning Brauer
2010-01-12First pass at removing the 'pf_pool' mechanism for translation and routingRyan Thomas McBride
2010-01-11"final" leak in state creation: in pf_state_key_setup, if we actuallyHenning Brauer
2010-01-11fix a bug in pf_create_state that was a major source of amusement for meHenning Brauer
2009-12-24add support to pf for filtering a packet by the interface it was receivedDavid Gwynne