summaryrefslogtreecommitdiff
path: root/sys/netinet
AgeCommit message (Collapse)Author
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@
2007-03-16remove message that printsTheo de Raadt
arplookup: unable to enter address for xxx.xxx.xxx.xxx because it is absolutely useless in a modern world with cable modems which leak arp packets over IP netblock zones; Anyone who used this as a diagnostic for real problems has other tools to use; from discussion with kitella, ok claudio
2007-02-22Remove TCP ports 760 and 761 from DEFBADDYNAMICPORTS_TCP; they areTodd C. Miller
not used with Heimdal. Add UDP port 749 to DEFBADDYNAMICPORTS_UDP for consistency with DEFBADDYNAMICPORTS_TCP. We retain some Kerberos 4 ports for people running Heimdal in Kerberos 4 compat mode. OK deraadt@ beck@
2007-02-20Fix the bpf hook in etherip_input() by using the right address family andClaudio Jeker
moving the m_adj() down to prevent so that the ethernet header is preserved. This fixes tcpdump on bridged gif(4) interfaces. OK mglocker@
2007-02-15Simplify even more by reducing shared code in #if NBRIDGE and default case.Claudio Jeker
OK mglocker@
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-02-13whitespace fixJun-ichiro itojun Hagino
2007-02-10Cleanup, kill dead code and unused arguments. Mostly stuff that is computedClaudio Jeker
and passed around but never used. OK mglocker@
2007-02-08- AH: when computing crypto checksum for output, massage source-routingJun-ichiro itojun Hagino
header. - ipsec_input: fix mistake in IPv6 next-header chasing. - ipsec_output: look for the position to insert AH more carefully. - ip6_output: enable use of AH with extension headers. avoid tunnellinng when source-routing header is present. ok by deraad, naddy, hshoexer
2007-02-01correct rfc; from Kris KatterjohnJason McIntyre
2007-01-18allow kernels with TCP_SIGNATURE (aka tcp md5sig), but without IPSEC toHenning Brauer
compile and work. need to register pfkey whenever tcp md5 or ipsec is defined, and the various ipsec encapsulations only if ipsec is defined. ok theo
2007-01-03Remove two "unused" mbuf tag functions and kill the superfluous argumentClaudio Jeker
to the m_tag_delete_chain() function. m_tag_free() and m_tag_unlink() are only used by m_tag_delete() and I see no need to have these functions around. m_tag_delete_chain() has a second argument to specifiy a starting point from where the chain should be deleted. This feature is never used and is more complex because it is not possible to remove a SLIST element without doing a list walk. Instead use SLIST_FIRST() and SLIST_REMOVE_HEAD() to remove all items from the list. OK dhartmei@
2007-01-02move local network route to real interface instead of carp interface; from mpf@Markus Friedl
2006-12-28check if ifqueue has anything queued before doing the dance ofTheo de Raadt
splnet/IF_DEQUEUE/splx; ok various people
2006-12-19TDBF_USEDTUNNEL flag manipulation was inside #ifdef INET. it appliesJun-ichiro itojun Hagino
to INET6 too, so move it outside. markus ok
2006-12-15make enc(4) count; ok markus@ henning@ deraadt@Otto Moerbeek
2006-12-13use IN6_IS_SCOPE_EMBED to check kernel-internal form addressesJun-ichiro itojun Hagino
(s6_addr16[1] filled) ok dhartmei
2006-12-11allow RST with th_seq incremented (seen from windows tcp clients); ok dhartmeiMarkus Friedl
2006-12-09switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).Jun-ichiro itojun Hagino
the kernel still handles RFC2292 set/getsockopts, so that compiled binary has no trouble running. userland sees RFC3542 symbols only on header file so new code has to use RFC3542 API. bump libc shlib minor for function additions. tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.
2006-12-05make the syncache code respect (inherit) the ttl from the listening socketHenning Brauer
when sending the synack response. ok markus
2006-12-05do not install pmtu routes for transport mode SAs, as they do notMarkus Friedl
the dest IP; PMTU debugging support; ok hshoexer