summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2004-04-28gcc3 shut up (from naddy@)Philipp Buehler
2004-04-28do not return herePhilipp Buehler
2004-04-28make return-rst work on pure bridges. ok dhartmei@ henning@ mcbride@Cedric Berger
2004-04-28Dont step into INET6 code, just because af != AF_INETPhilipp Buehler
Also comment #endif properly while being here ok mcbride@
2004-04-28spacingTheo de Raadt
2004-04-28pfsync stats fixups:Ryan Thomas McBride
- convert counters to 64 bits - add dedicated counters for sanity checks added right before release - clean up netstat output
2004-04-28Make carp(4) aware of its physical interface:Ryan Thomas McBride
- If the physical interface goes down or the link goes down, the carp interface goes down as well. - We treat this like the preemption holdoff with pfsync. So if one of the carp interfaces is known to be bad (because the physical interface it's associated with is bad), all the other carp interfaces back off: they won't preempt, and their advskew goes to 240. ok cedric@
2004-04-28point out that pfsync_send_bus and pfsync_sendout must be called in splnet()Philipp Buehler
ok mcbride@
2004-04-27validate the sequence numbers on TCP resets are an exact match. check is onlyMike Frantzen
enabled when we're doing full frag reassembly and thus have full seq info ok markus@
2004-04-27make separate functions to enable/disable altq, and call them when weKenjiro Cho
reload rules. this fixes an altq problem that, if you reload pf rules not containing queues while running altq, the interface shaper is not properly removed. make pf_altq_running local to pf_ioctl.c since it is no longer used in altq_subr.c. ok henning@
2004-04-26- make the k field in struct bpf_insn unsigned, as promised in theOtto Moerbeek
manual page. - more strict bpf code validation, preventing arbitrary kernel memory read and writes. Some help from frantzen@ and canacar@; testing jmc@ markus@; ok canacar@ henning@ franzen@
2004-04-26Before enqueueing the packet, copy the contents of incoming clustersRyan Thomas McBride
to the mbuf and free the cluster when it contains a small packet. ok deraadt@
2004-04-26Prevent biases in arc4random() from disclosing the byte order of the firewall.Ryan Thomas McBride
ok deraadt@
2004-04-26The rule_number parameter for pf_get_pool() needs to be 32 bits, not 8 -Ryan Thomas McBride
this fixes corruption of the address pools with large rulesets. This is a candidate for -stable. Reported by Zbigniew Kossowski <zk@openbsd.com.pl>, hours of braintwisting debugging by pb@
2004-04-26anchor refcounting. ok dhartmei@ mcbride@Cedric Berger
2004-04-25permit multiple default route. from kameJun-ichiro itojun Hagino
2004-04-25check for input queue congestion on those as well and call if_congestion whenHenning Brauer
needed; these are slightly different so that we cannot use the new IF_INPUT_ENQUEUE macro deraadt ok
2004-04-25prevent an endless loop with route-to lo0, fixes PR 3736,Daniel Hartmeier
ok pb@, henning@, markus@
2004-04-25get rid of a complete state tree walk at state expire while in splnet()Philipp Buehler
ok mcbride@ henning@
2004-04-25dont splx across functionsPhilipp Buehler
pointed at by Joris Vink who was baffeled how this should work anyway ok mcbride@ henning@
2004-04-25radix tree with multipath support. from kame. deraadt okJun-ichiro itojun Hagino
user visible changes: - you can add multiple routes with same key (route add A B then route add A C) - you have to specify gateway address if there are multiple entries on the table (route delete A B, instead of route delete A) kernel change: - radix_node_head has an extra entry - rnh_deladdr takes extra argument TODO: - actually take advantage of multipath (rtalloc -> rtalloc_mpath)
2004-04-25sync 'other' in test6, too.Philipp Buehler
ok dhartmei@ mcbride@
2004-04-25sync with NetBSD, mostly a Lite2 merge.Brad Smith
ok itojun@
2004-04-25don't add PF_GENERATED tag to synproxy generated packets for the secondDaniel Hartmeier
handshake, so they can match rules (and create state) on another interface. ok cedric@
2004-04-25undo "oops" commit on 1.14 (radix_mpath).Jun-ichiro itojun Hagino
2004-04-25indentation fixJun-ichiro itojun Hagino
2004-04-24Add "probability xxx" rule modifier. ok deraadt@Cedric Berger
2004-04-24be careful about option lengths. ok henning@ mcbride@Mike Frantzen
2004-04-17unbreakHenning Brauer
2004-04-17when the input queue congestion flag is set stop evaluating the rulesetHenning Brauer
and block unconditionally. when the inout queue is full, newly arriving packets are dropped anyway, and while the input queue is full we obviously have a CPU laod problem. with this change, we allow the machine to recover gracefully, dropping a few packets fast instead of a lot slowly over a long time while processing rather old stuff in the input queue, giving somebody a chance to log in on the console and fix stuff instead of going completely unresponsive, and as a nice side effect, let established connections alone. ok kjc@ markus@ beck@
2004-04-17add a congestion indicator to if_queue. It is set when the input queueHenning Brauer
is full, along with a timer that unsets it again after 10ms. The input queue beeing full is a reliable indicator for CPU overload, and this flag allows other subsystems to cope with the situation. hacked with beck ok kjc@ markus@ beck@
2004-04-09move some of the non-interrupt pools from the small kmem_map to the muchMike Frantzen
larger kernel map
2004-04-05make pftag ** (pass pointer by reference), otherwise it's never updated.Daniel Hartmeier
the parameter serves only as optimization to cache m_tag_get() results. ok henning@
2004-04-05Prevent stale states (states older than the local version) from overwritingRyan Thomas McBride
the local state. Tricky state comparisons from frantzen@ ok cedric@ dhartmei@ Post-ok addition of code to broadcast an update with the better local version when this happens. Torture tested by beck@
2004-03-31in the tcp md5sig case allow empty (wildcard) src or dstHenning Brauer
ok markus@
2004-03-28Check variables in incoming packets which can cause problems if they're setRyan Thomas McBride
to arbitrary values. Invalid state->timeout can hit a KASSERT in pf, the other ones should be ok but we check them just to make sure. ok dhartmei@ deraadt@
2004-03-27wrap if_down() in splimp; tholo ran into splassert, miod tholo okTheo de Raadt
2004-03-26Properly m_copyback() modified TCP sequence number after demodulationDaniel Hartmeier
ok mcbride@, henning@, cedric@, deraadt@
2004-03-25Fix icmp checksum when sequence number modlation is being used.Ryan Thomas McBride
Also fix a daddr vs saddr cut-n-paste error in ICMP error handling. From dhartmei@ ok deraadt@
2004-03-23Hold off for 1 second before beginning bulk transfer. Avoids loopingRyan Thomas McBride
until mono_time.tv_sec advances past the time the bulk transfer request was recieved. ok cedric@ deraadt@
2004-03-22Support for best effort bulk transfers of states when pfsync syncif isRyan Thomas McBride
configured. This this allows pfsync+carp clusters to come up gracefully without killing active connections. pfsync now prevents carp from preempting to become master until the state table has sync'd. ABI change, any application which use struct pf_state must be recompiled. Reminded about this by Christian Gut. Thanks to beck@ cedric@ and dhartmei@ for testing and comments. ok deraadt@
2004-03-19remove trailing ';' in PFLOG_REAL_HDRLEN definition. ok dhartmei@ mcbride@Mike Frantzen
2004-03-18state->rule.ptr shall not be NULL. from Jon Coller. ok dhartmei@ mcbride@Cedric Berger
2004-03-15Kill redundant(IPv4) and bogus(IPv6) tests. found+ok dhartmei@Cedric Berger
2004-03-15plug memory leak in error pathHenning Brauer
missing break; in error case from patrick latifi, cedric ok
2004-03-11Don't call pf_src_tree_remove_state() on error in pf_insert_state(),Ryan Thomas McBride
it's also called in the function which calls pf_insert_state(). Pointed out by Patrick Latifi, ok cedric@ dhartmei@
2004-03-09KNF, ok cedric@ deraadt@Ryan Thomas McBride
2004-03-02don't leak mbuf if uiomove fails; from netbsd;Markus Friedl
ok henning, cedric, claudio, deraadt
2004-02-28- Don't permit 0-padded unit numbers on cloned interfaces. Bug repoprtRyan Thomas McBride
from otto@ - Fix signedness issue with unit numbers. Bug report from Thorsten Glaser ok millert@ otto@
2004-02-24sysctl knob for bpf tunables. some tips from canacar@Ted Unangst
ok canacar@ deraadt@ mcbride@