summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
AgeCommit message (Expand)Author
2008-02-20make return-rst work correctly in the IPv6 case again.Henning Brauer
2008-02-16switch to RFC 1948 style ISN, too; ok mcbride, dhartmei, henningMarkus Friedl
2007-11-22pf_src_tree_remove_state() is called upon pf_insert_state() failures.Henning Brauer
2007-11-18backout 1.562 since it triggers the problem described in pr 5648Theo de Raadt
2007-11-16in pf_test_fragment(), ignore protocol-specific criteria for packets ofDaniel Hartmeier
2007-11-11Don't leak pfstatekey upon insert conflict (most often caused via pfsync).Christopher Pascoe
2007-10-31'block return' must not send anything on blocked icmp packets.Marco Pfatschbacher
2007-10-25Fix probability rules w/ numbers (e.g probability 0.4).Marco Pfatschbacher
2007-09-18allow state reuse for tcp if both sides are in FIN_WAIT_2 and a new SYNMarkus Friedl
2007-09-07Do not recalculate TCP payload length in pf_test_rule() as it hasAlexander Bluhm
2007-08-30mechanic change:Henning Brauer
2007-08-30handle address ranges in skip step calculationDaniel Hartmeier
2007-08-30add support for address ranges ("from 10.1.2.50 - 10.1.3.75") in from/toDaniel Hartmeier
2007-08-28showing this diff is shameful...Henning Brauer
2007-08-23allow RSTs with th_seq == seqlo +- 1, reduces the amount of 'loose state'Daniel Hartmeier
2007-08-21don't access th_flags when it isn't available (only 8 bytes of theDaniel Hartmeier
2007-07-18Don't drop outgoing packets in case of a congested input queue.Marco Pfatschbacher
2007-07-10adjust pf_find_state_all() so that it works correctly for the new globalKurt Miller
2007-07-04No m_copyback for ICMP and "other" protocols on rdr/binat.Marco Pfatschbacher
2007-06-25pretty mechanical change: now that the state tables use seperate stateHenning Brauer
2007-06-24Save some bytes and make code more readable by removing junk union andRyan Thomas McBride
2007-06-21reimplement interface bound states in a non-retarded way.Henning Brauer
2007-06-20Allow "log" for nat rules without "pass".Marco Pfatschbacher
2007-06-15in pf_test_rule, before handling IPPROTO_ICMP / IPPROTO_ICMPV6, check thatHenning Brauer
2007-06-09fix wrong argument passing to m_copyback for the log caseHenning Brauer
2007-06-09sizeof(ptr) is no good if you want sizeof(*ptr). icmp/icmpv6.Henning Brauer
2007-06-02pf_set_rt_ifp accesses state key data, so must be called laterHenning Brauer
2007-06-01factor out duplicated code to allocate state key and cross-reference itHenning Brauer
2007-06-01fold pf_test_tcp(), pf_test_udp(), pf_test_icmp(), pf_test_other() intoHenning Brauer
2007-06-01apply the "skip ipsec if there are no flows" speedup diff to IPv6 too.Henning Brauer
2007-05-31Move the state id and creatorid (used mainly by pfsync) into struct pf_state.Ryan Thomas McBride
2007-05-31Unbreak pf.c compilation on gcc 2.95 architectures. Found by todd@Ryan Thomas McBride
2007-05-31First step of rearranging pf's state table internals...Ryan Thomas McBride
2007-05-29gain us another 10+% of performance.Henning Brauer
2007-05-28double pf performance.Henning Brauer
2007-05-27get rid of static.David Gwynne
2007-05-27clarify things by passing kif->pfik_ifp around in pf_test{,6} insteadPierre-Yves Ritschard
2007-05-26add comments indicating why we do m = *m0; again after pf_normalize, ryan okHenning Brauer
2007-05-08block ALL packets with rthdr0 in pf_test6(). We already do thisRyan Thomas McBride
2007-05-08Routing headers are dangerous. Deal with them the same way as IPv4 options:Ryan Thomas McBride
2007-02-22make urpf-failed work with multipath routes.Pierre-Yves Ritschard
2007-02-19add handling of skip steps for urpf-failed addresses.Pierre-Yves Ritschard
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
2007-02-08compute pseudo-header checksum based on flnal destination asJun-ichiro itojun Hagino
2006-12-22add special handling for "urpf-failed" with carp interfaces. theReyk Floeter
2006-12-21in pf_route(), initialize ro to NULL at the beginning. if left un-Daniel Hartmeier
2006-12-14in "BAD/loose state" messages, also print the packet's original sequenceDaniel Hartmeier
2006-12-13use IN6_IS_SCOPE_EMBED to check kernel-internal form addressesJun-ichiro itojun Hagino
2006-11-16conditional for appending the pf mbuf tag in pf_test/pf_test6 was wrong,Henning Brauer
2006-10-31make pfsync a clonable too, but prevent more than one instance fromHenning Brauer