summaryrefslogtreecommitdiff
path: root/sys/netinet
AgeCommit message (Collapse)Author
2007-09-24Fix carp(4) after the switch to dynamic imo_membership allocation.Claudio Jeker
The multicast code is still a mess but will no longer crash the box. With input from pascoe@ who hit the same bug. OK markus@, henning@, mpf@ (on a previous version)
2007-09-18arc4random_bytes() is the preferred interface for generating nonces;Damien Miller
"looks ok" markus@
2007-09-18allow 4095 instead of 20 multicast group memberships per socket (you needMarkus Friedl
one entry for each multicast group and interface combination). this allows you to run OSPF with more than 10 interfaces. adapted from freebsd; ok claudio, henning, mpf
2007-09-18ARP balancing has been changed to use the source MAC addressMarco Pfatschbacher
quite a while ago. Manpage and comment update by Matthew Dempsky. OK jmc@
2007-09-17remove backpointer from ifa to ifp if an address gets delete; fixesMarkus Friedl
panics in ip_freemoptions(); ok claudio, henning, mpf
2007-09-10Remove the ipq locking, it isn't strictly needed right nowThordur I. Bjornsson
and is actually wrong in some cases, since we can enter functions without taking the lock because the return value of ipq_lock() isn't checked properly. However, this needs to be revisited when we start calling ip_drain() from the pool code when we are running out of memory, but this isn't done currently. OK art@, henning@
2007-09-03Make use of the carp preempt counter to signal number of transitions ofJoel Knight
any carp group to master status. ok dhartmei@
2007-09-01since theHenning Brauer
MGET* macros were changed to function calls, there wasn't any need for the pool declarations and the inclusion of pool.h From: tbert <bret.lambert@gmail.com>
2007-07-20Remove inm_ifp from struct in_multi -- caching struct ifnet is dangerousClaudio Jeker
because interfaces may disappear without notice causing use after free bugs. Instead use the inm_ia->ia_ifp as a hint, struct in_ifaddr correctly tracks removals of interfaces and invalidates ia_ifp in such cases. looks good henning@ markus@
2007-07-04Fix a use after free crash in in_delmulti(). If a interface is detachedClaudio Jeker
before it is removed from the multicast group in_delmulti() will try to access the no longer available ifp. We invalidate the ifa_ifp back pointer in the ifa in if_detach() now and use the ifa_ifp in in_delmulti() instead of the internal inm_ifp. By doing it this way we know if the interface was removed. This fixes a kernel panic triggered by ospfd and gif(4) tunnels. looks good henning@ reyk@
2007-06-25merge tcp_set_iss() and tcp_set_tsm(); ok mcbride, djm (on earlier version)Markus Friedl
2007-06-23use a masked destination network instead of the interface ip for theReyk Floeter
destination of the route belonging to the carp interface. ok mpf@ claudio@
2007-06-15Drop the current random timestamps and the current ISN generationMarkus Friedl
code and replace both with a RFC1948 based method, so TCP clients now have monotonic ISN/timestamps. The server side uses completely random ISN/timestamps and does time-wait recycling (on port reuse). ok djm@, mcbride@; thanks to lots of testers
2007-06-14preserve the possible route label if the route belongs to the carpReyk Floeter
interface (ip-less parent). tested by claudio and me ok claudio@
2007-06-13There is no need to set RTAX_NETMASK on RTF_HOST routes. RTAX_NETMASK willClaudio Jeker
be set to NULL as first in rtrequest1() for all host routes. With and OK reyk@
2007-06-11there was code inside #if NPF > 0, but pf.h was not included, so it didHenning Brauer
not get build. the code looks at flags that used to be in mbuf tags, now they are in the mbuf header, so we can check them unconditionally. problem spotted by Daniel Roethlisberger <daniel@roe.ch>, ok ryan markus
2007-06-06remove ifdef'd out ipx-in-ip registrationHenning Brauer
2007-06-01sc_carplladdr does not need to be dereferenced.Marco Pfatschbacher
OK mcbride@
2007-06-01apply the "skip ipsec if there are no flows" speedup diff to IPv6 too.Henning Brauer
we need a pointer to the inpcb to decide, which was not previously passed to ip6_output, so this diff is a little bigger. from itojun, ok ryan
2007-06-01Remove code to create a carp(4) Token Ring lladdr.Marco Pfatschbacher
OK mcbride@
2007-05-30no need to declare extern ipsec_in_use, we get it via ip_ipsp.hHenning Brauer
found by itojun
2007-05-29Move tokenring support to the attic where it can join the cards that whereClaudio Jeker
decomissioned aeon ago. We will not miss it at all. OK dlg@ henning@ and a lot of cheers by other in the room
2007-05-29gain another 5+% in ip forwarding performance.Henning Brauer
boring details: skip looking for ipsec tags and descending into ip_spd_lookup if there are no ipsec flows, except in one case in ip_output (spotted by markus) where we have to if we have a pcb. ip_spd_lookup has the shortcut already, but there is enough work done before so that skipping that gains us about 5%. ok theo, markus
2007-05-28double pf performance.Henning Brauer
boring details: pf used to use an mbuf tag to keep track of route-to etc, altq, tags, routing table IDs, packets redirected to localhost etc. so each and every packet going through pf got an mbuf tag. mbuf tags use malloc'd memory, and that is knda slow. instead, stuff the information into the mbuf header directly. bridging soekris with just "pass" as ruleset went from 29 MBit/s to 58 MBit/s with that (before ryan's randomness fix, now it is even betterer) thanks to chris for the test setup! ok ryan ryan ckuethe reyk
2007-05-28Users of arc4random() should include dev/rndvar.h directly.Ryan Thomas McBride
ok dlg claudio
2007-05-27diffs are better if compilers see them firstTheo de Raadt
2007-05-27De-static. OK dlg@Claudio Jeker
2007-05-27take static off tcp_mss_adv.David Gwynne
ok reyk@
2007-05-27-staticDavid Gwynne
2007-05-27-staticDavid Gwynne
ok reyk@
2007-05-27-static on appropriate functionsDavid Gwynne
2007-05-27rewrite a static inline func that simply coerces a return type of anotherDavid Gwynne
function as a macro. ok reyk@ ja ja claudio@
2007-05-27-staticDavid Gwynne
2007-05-27thou shalt not use static in the kernelDavid Gwynne
2007-05-27remove more static to avoid confusing the profiler (and maybe ddb too)David Gwynne
prodded by art@ ja ja claudio@
2007-05-27remove static from icmp_redirect_timeoutDavid Gwynne
"commit it" art@ ok claudio@
2007-05-26one extern seems to be better than 20 for ifqmaxlen; ok krwJason Wright
2007-05-22When a partial ack is received check if congestion window is larger thanMichele Marchetto
acked bytes and update the window accordingly fix PR4278 OK henning@ markus@ claudio@
2007-05-22ip_mroute.c is in bad shape.Michele Marchetto
This first step makes it style(9) compliant. Just a whitespace diff, no binary change. OK claudio@ norby@
2007-05-16count the number of multicast ranges that are kept in the list of multicastDavid Gwynne
addresses in struct arpcom. this lets a nic driver easily see if it wants allmulti behaviour, which in turn means we can clean some code up. ok jason@ claudio@ norby@
2007-05-09totally unused legacy variable; ok claudioTheo de Raadt
2007-05-09tcp_iss usage is ifdef TCP_COMPAT_42, so the variable decl can be tooTheo de Raadt
2007-05-08variables used by #ifdef code should be inside #ifdef tooTheo de Raadt
2007-05-06do not fill RTAX_GATEWAY for RTM_DELETE, ok claudioHenning Brauer
2007-05-04make carp's routing table modification attempts (imho broken by design)Henning Brauer
at least exhibit routing messages so it does not confuse the userland routing daemons by routing table changes not reflected by messages on the routing socket. effect would be bgpd using wrong nexthops for example, in the worst case (that i actually ran into) blackholing traffic. ok reyk claudio "looks correct" miod
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-03-27Don't pick up IPv6 link local IPs on address deletions.Marco Pfatschbacher
This unbreaks carp reconfiguration. OK henning@, mcbride@
2007-03-25Synchronise carp advertisements on group demotion.Marco Pfatschbacher
This reduces group failover time to a few milliseconds. Diff from Nathanael. OK henning@
2007-03-25Change the "can't allocate llinfo" to a better log message that includesClaudio Jeker
the problemantic IP address and a hopefully better reason message. After discussion with dtucker@, "fine with me" deraadt@ some time ago
2007-03-18Add IP load balancing support for carp(4).Marco Pfatschbacher
This provides a similar functionality as ARP balancing, but also works for traffic that comes across routers. IPv6 is supported as well. The configuration scheme will change as soon we have sth better. Also add support for changing the MAC address on carp(4) interfaces. (code from mcbride) Tested by pyr@ and reyk@ OK mcbride@