summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2006-06-21add media types for 10Gb Ethernet, though only using a baudrateBrad Smith
of 1Gbps, until the size of the baudrate field has been increased.
2006-06-19Unbreak the tree. The code to set and unset the RTF_MPATH bit on all multipathClaudio Jeker
routes did not carefully check if the route lookup succeded or not and so rn_mpath_next(rn) blowed up because rn was NULL. Check if rnh_lookup succeded before touching rn in anyway. OK norby@ initial diff by hshoexer@
2006-06-18Whitespace, oops.Christopher Pascoe
2006-06-18Add support for equal-cost multipath IP.Christopher Pascoe
To minimise path disruptions, this implements recommendations made in RFC2992 - the hash-threshold mechanism to select paths based on source/destination IP address pairs, and inserts multipath routes in the middle of the route table. To enable multipath distribution, use: sysctl net.inet.ip.multipath=1 and/or: sysctl net.inet6.ip6.multipath=1 testing norby@ ok claudio@ henning@ hshoexer@
2006-06-17When multipath routes are inserted, ensure that RTF_MPATH is set for anyChristopher Pascoe
previous route that may not have been inserted with the -mpath flag. Similarly, when removing a multipath route and leaving only one route, clear the RTF_MPATH flag so this is clear. ok claudio@
2006-06-17adopt to extended rtrequest / rtalloc1 apiHenning Brauer
2006-06-17unbreak; from theoHenning Brauer
2006-06-16support passing the desired routing table ID via the sysctl interfaceHenning Brauer
(NET_RT_DUMP & friends) too. keep supporting the old form (and imply id 0) of course. claudio ok
2006-06-16pass the routing table ID over the routing socket, so we can start toHenning Brauer
manipulate alternate tables from userland. new tables are created implicitely when an RTM_ADD for that table is seen. ok norby claudio hshoexer
2006-06-16adjust functions dealing with the routing table to take a table ID asHenning Brauer
parameter so they can work on alternate tables. table 0 hardcoded for many callers yet, that will be adapted step by step. input + ok claudio norby hshoexer
2006-06-16Cleanup radix.c, remove unused stuff, use nicer prototype definitions andClaudio Jeker
remove the ugly routed hacks. OK henning@, hshoexer@
2006-06-15put the multiple routing tables support back in, fixed.Henning Brauer
problem before: with this, we are no longer using the address family as array index directly, since only 3 of 31 address fanilies actually attach a table, but we're using an address family to array index translation (just another array). there, 0 meant "does not attach a table", thus rt_gettable has to return a null pointer. unfortunately we were using array index 0 for whatever af attaches first, and since the list is backwards,, that used to be ipsec - execpt on ipsec-less ramdisks, where it was inet6, and since route show blindly iterates over all address families, and all those without a table pointed to index 0, we got 28 or 29 copies of the v6 table. i had that right initally, and then i borked it later... re-spotted by claudio. ok norby hshoexer claudio
2006-06-06back out multiple routing table diffs (3 of 'em) because this makesTheo de Raadt
'route show' dump out repeated copies of the v6 routing table on ramdisks. on some architectures it spins forever doing this, on others it just goes for a long time printing the v6 routes over and over before terminating. spotted by jmc and krw, backout diff tested by beck.
2006-06-02Introduce attributes to interface groups.Marco Pfatschbacher
As a first user, move the global carp(4) demotion counter into the interface group. Thus we have the possibility to define which carp interfaces are demoted together. Put the demotion counter into the reserved field of the carp header. With this, we can have carp act smarter if multiple errors occur. It now always takes over other carp peers, that are advertising with a higher demote count. As a side effect, we can also have group failovers without the need of running in preempt mode. The protocol change does not break compability with older implementations. Collaborative work with mcbride@ OK mcbride@, henning@
2006-06-01observed by Naddy, found by claudio, strange constructs require strange definesTodd T. Fries
.. fixes proto display for the non zero case ok claudio@
2006-06-01use the table ID as array index directly, faster in the forwarding pathHenning Brauer
we trade higher memory consumption if the user doesn't use continous table IDs, but in the worst case (table IDs 0 and 255, 64bit machine) that is 2KB ok claudio ryan
2006-05-31add comment indictation that rtable_add must be called at splsoftnetHenning Brauer
2006-05-31move us to multiple routing table heads.Henning Brauer
-instead of staticaly declaring the heads, allocate memory for them -add second dimension to the routing table head array, table ID -space saver: do not use the AF as array index directly, but have an AF->index translation array and only account for AFs actually attaching a routing table note that whil ethat allows for multiple routing table heads, nothing uses taht yet. tested by many, ok claudio reyk norby mcbride
2006-05-30Export the route labels via sysctl interface not only via RTM_GET.Claudio Jeker
OK henning@ norby@
2006-05-30with Naddy prodding, claudio's peril sensitive glasses turning black, andTodd T. Fries
msf@'s assistance with hexdumping, this bug was found. do NOT access the wrong union member (sockaddr_in) when using v6 addresses this fixes output errors when displaying v6 encap routes for ipsecctl, route, and recently netstat ok hshoexer@ markus@ claudio@ naddy@
2006-05-28Fix multicast and broadcast over gre(4) tunnels. Clear the M_MCAST and M_BCASTClaudio Jeker
mbuf flags so that the packet is sent out with a normal link local address instead of a multicast or broadcast address. OK brad@
2006-05-28Enable adaptive timeouts by default, with adaptive.start of 60% of theRyan Thomas McBride
state limit and adaptive.end of 120% of the state limit. Explicitly setting the adaptive timeouts will override the default, and it can be disabled by setting both adaptive.start and adaptive.end to 0. ok henning@
2006-05-28Only preemptively increase the replay counter for outbound TDBs.Ryan Thomas McBride
Another ipsec failover fix from nathanael at polymorpheus dot com. ok hshoexer@
2006-05-28check if the interface is active and UP. some, but not all, networkReyk Floeter
drivers report an active link state even if the interface is DOWN. this should fix trunk with various ethernet devices. ok brad@
2006-05-28fix a whitespace error causing confusionHenning Brauer
2006-05-27remove IFCAP_JUMBO_MTU interface capabilities flag and set if_hardmtu in a fewBrad Smith
more drivers. ok reyk@
2006-05-26rename jumbo mtu to if_hardmtu; ok brad reykTheo de Raadt
2006-05-23knf and remove an unneeded debug messageReyk Floeter
2006-05-23addReyk Floeter
2006-05-22Check for NULL cookies before calling hook_disestablish(). Just in caseKenneth R Westerback
the establish calls were bypassed or failed. ok mpf@
2006-05-20bump copyrightReyk Floeter
2006-05-20drop packets received on inactive failover ports without increasing theReyk Floeter
error counter. just silently drop them... figured out by todd@, ok brad@
2006-05-20don't panic if the address familiy is not found in the rt_tablesReyk Floeter
ok henning@
2006-05-19add a if_jumbo_mtu field to the interface structure for driversReyk Floeter
supporting ethernet jumbo frames. there's no standard for the size of jumbo MTUs, so either let the driver set it's own value or use 9000 byte jumbo frames by default. ok brad@
2006-05-17missing rtlabel support in pf_addr_wrap_neq()Henning Brauer
PR5122 Jann Fischer <jfi@openbsd.de>, thanks!
2006-05-16the ifp->if_linkstatehooks may be NULL, add an extra check to avoidReyk Floeter
possible kernel panic. this happened to me by using tun(4) in layer 2 mode (link0 flag) as a trunk port for testing.
2006-05-13Avoid potential hash collisions and increase efficiency by doing an exactRyan Thomas McBride
comparison of the TDB before collapsing multiple updates. Another ipsec failover fix from Nathanael <list-openbsd-tech@polymorpheus.com>
2006-05-09Remove unnecessary check for the parent interface when settingMarco Pfatschbacher
the vlan priority. Relaxes the order of the vlanprio parameter in ifconfig. OK claudio, brad, norby
2006-05-06The SPI in a TDB is actually stored in network order. Make sa synchronisationRyan Thomas McBride
work between little-endian and big-endian machines, and compare the spi against SPI_RESERVED_MAX correctly. Fix from Nathanael <list-openbsd-tech at polymorpheus dot com>
2006-05-06Fix bracketing messed up in KNF commit 1.86, allows sasyncd to reliablyRyan Thomas McBride
set up pfkey promiscuous mode. Diff from Nathanael <list-openbsd-tech at polymorpheus dot com>
2006-05-02fix creation of sub-anchors, e.g. if you create an anchor /foo/bar, createDaniel Hartmeier
only bar under foo, not /bar as well. secondly, when using "load anchor from" from a sub-anchor, the loading point should be relative to the sub-anchor doing the load (unless absolute paths are used, of course). from Boris Polevoy. probably a -stable candidate.
2006-04-26Missed the goto in the error path. This resulted in an access to a NULLClaudio Jeker
pointer and a panic later on. Be more careful Claudio! OK henning@
2006-04-22Routes announced via rt_missmsg() do not have rtm_index set. While in mostClaudio Jeker
cases harmless it is used by the IPv6 code. The result is that bgpd is unable to assigning link local addresses to the correct interface. OK henning@ Fix for PR 5063.
2006-04-16After fragment reassembly/trimming, pf must revalidate the mbuf tag of theChristopher Pascoe
altered chain. The cached tag may have already been freed via m_cat.
2006-04-11on link state changes, copy baudrate (negotiated link speed) from parentHenning Brauer
device. previously this was only done at config time, so vlan if's baudrate could easily get out of sync with parent's. ok camield brad
2006-03-31Add sysctl to retrieve the routing table statisitcs. Will be used by netstatClaudio Jeker
instead of kvm access. OK henning@
2006-03-30In sysctl_dumpentry() pass the rt_refcnt by overloading rmx_rttvar.Claudio Jeker
This new rmx_refcnt can be used by route(8) to produce the same output as netstat(1). OK henning@
2006-03-30Spelling in comment.Claudio Jeker
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-25fixup IP checksum when modifying IP header fields, based on a patch inDaniel Hartmeier
fbsd PR 93849 from Max Laier, ok claudio@