summaryrefslogtreecommitdiffstats
path: root/sys/netinet (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move #ifdef INET6 outside of 'case AF_INET6:' in tcp_ident().mcbride2005-02-221-2/+2
| | | | | | | No functional change due to earlier check, fix from Maxim Konovalov <maxim@macomnet.ru> ok deraadt@ dhartmei@
* miscellaneous typo fixes:jfb2005-02-171-2/+2
| | | | | | | - sturct -> struct (spotted by pedro) - elimination of consecutive 'the' words ok jmc@, henning@, krw@, robert@, some whining by jolan@
* build w/o INET6; ok mpf@, mcbride@markus2005-02-081-2/+8
|
* Unrevert the changes introduced in 1.96 and accidentally removed in 1.97mcbride2005-02-071-20/+35
| | | | with an id10t error by yours truly.
* Prevent carp from attaching to other carp interfaces, which themcbride2005-02-071-35/+25
| | | | | | ifp->if_flags & IFF_MULTICAST checks no longer protect against. ok pascoe@ mpf@
* There is no SIOCDIFADDR call into interfaces on address deletion, sopascoe2005-02-071-20/+35
| | | | | | | use our carp_addr_updated callback to detect deletion and reconfigure appropriately. ok mcbride@
* Check the carpdev link state when we attach to it, makes a firewallmcbride2005-01-291-1/+2
| | | | | | | | with an interface down avoid preempting after a reboot. Pointed out by Stephen Marley <stephen.marley@catwoman.cl-is.com> ok pascoe@ mpf@
* expire ipforward_rt cache in ip_slowtimeo; fixes pr 1697; ok claudiomarkus2005-01-201-3/+7
|
* Rewriting the lladdr can now be done without using mbuf tags.mpf2005-01-182-145/+5
| | | | | | | | | | Advertisements run through the carp interface first. So we just take the address from ifp0. While we're there, also remove carp_macmatch6, which isn't used anymore. Proposed by mcbride@ ok mcbride@, pascoe@
* Use correct source address for ICMP errors generated from packets that wereclaudio2005-01-181-11/+7
| | | | | | | not addressed to the machine. If the destination is not a local address do a route lookup for the original source address and use the returned interface address. This solves problems seen on interfaces with multiple networks defined. OK henning@ markus@
* From NetBSD:pascoe2005-01-152-7/+10
| | | | | | | | | | - Keep track of allhost multicast address record we joined into each in_ifaddr and delete it when an address is purged. - Don't simply try to delete a multicast address record listed in the ia_multiaddrs. It results a dangling pointer. Let whoever holds a reference to it to delete it. mcbride@ markus@ ok
* fix commentbrad2005-01-151-2/+2
|
* Duplicate nested if statement in PIM code.mcbride2005-01-141-3/+2
| | | | From brad@
* Add kernel support for Protocol Independant Multicast (PIM)mcbride2005-01-147-31/+1792
| | | | | | | | Information: http://netweb.usc.edu/pim/ From Pavlin Radoslavov <pavlin@icir.org> ok deraadt@ brad@
* Make sure bogus values don't make their way into tcp_xmit_timer() calculations.mcbride2005-01-103-10/+21
| | | | | | | | | | - Ignore ts_ecr if it is 0, or the resulting rtt is out of range. (use tp->t_rtttime instead) - Initialise tcp_now to 1, to avoid the 500ms window where a valid ts_ecr of 0 could be ignored. - Convert out-of-range rtt values to valid ones in tcp_xmit_timer(). ok frantzen@ markus@
* spacingderaadt2005-01-061-11/+11
|
* Attach multicast to the carp interface for IPv6 (makes it consistent withmcbride2005-01-061-29/+17
| | | | | | | IPv4, and will allow us to get rid of carp_fix_lladdr() and the carp mbuf tag later). ok pascoe@ mpf@
* Error path cleanups for carp_output. Use ENOBUFS instead of ENOMEM whenpascoe2005-01-061-3/+5
| | | | | | unable to tag a packet, and free mbuf chain on all failures. ok mcbride@
* Tag all packets sent via a CARP interface for link local addresspascoe2005-01-061-3/+21
| | | | | | | | | substitution. With this change and the previous ARP changes, all Ethernet packets sent via a CARP interface should now have the virtual MAC address as the source. ok mcbride@ niklas@
* restrict forwarding to ipsec processed traffic of ip.forwarding==2markus2005-01-041-1/+11
| | | | ok deraadt, henning, fgsch, mcbride
* Move processing of ARP packets for CARP addresses to the carp interfacepascoe2005-01-042-11/+8
| | | | | | | | | | | | instead of processing them in the parent interface. This causes us to send ARP packets on a carpdev with its virtual MAC address as the source, rather than the parent's physical address. Permits us to fail over cleanly when connected to devices that use the source MAC address on a received ARP request to generate an ARP entry for the requesting host, rather than going through the who-has/is-at procedure. ok niklas@ mcbride@
* Use pseudo_AF_HDRCMPLT for outgoing ARP messages, otherwise the providedpascoe2005-01-041-4/+4
| | | | | | source MAC address we provide is ignored by ether_output. ok mcbride@ niklas@
* handle rtt < 0; markus okderaadt2004-12-301-1/+4
|
* fix indentmarkus2004-12-291-2/+2
|
* Instead of running carp_setroute synchronously, use if_addrhooks to get apascoe2004-12-221-23/+51
| | | | | | | | | | | callback after in_ifinit has run. This lets us correct any routes that in_ifinit has incorrectly added for our interface. Also be more explicit with the routing checks/changes that we make. This makes it possible to have different prefix lengths on a CARP interface and the physical interface it is bound to. ok mcbride@
* #define sc_if sc_ac.ac_if, makes things a little more readable, andmcbride2004-12-191-87/+85
| | | | | | kills a couple of ugly line wraps. From Max Laier. ok pascoe@
* Make it possible for carp to work on fddi and token ring again.mcbride2004-12-192-14/+44
| | | | ok pascoe@ mpf@
* Decrement carp_suppress_preempt when detaching an interface that haspascoe2004-12-181-1/+5
| | | | | | been experiencing output errors. ok mcbride@
* Temporary fix to get IPv6 working again.mpf2004-12-171-4/+9
| | | | | v6 advertisements are still received the old-fashioned way. ok mcbride@
* Reorder code in the ethernet output path, and enhance unicast addresspascoe2004-12-172-17/+33
| | | | | | | matching in the bridge receive path to make CARP operate correctly on physical interfaces that are participating in a bridge. ok mcbride@ henning@ dlg@
* Remember to decrement carp_suppress_preempt when detaching.mcbride2004-12-171-1/+5
| | | | ok pascoe@
* Add IFF_NOARP to carp interface, we want arp requests to be handled viamcbride2004-12-151-2/+2
| | | | | | carp_iamatch() on the physical interface. ok pascoe@ mpf@
* * fix the multicast memberships removalpat2004-12-151-16/+21
| | | | | | * less hardcoding in format strings for easier maintenance mcbride ok
* protect against multiple inclusionpat2004-12-151-2/+6
| | | | mcbride ok
* move ioctls together w/ all other ifaces; mcbride@ okmickey2004-12-141-3/+1
|
* zap lvalue assignment, okay markus@. approved miod@espie2004-12-131-2/+2
|
* Add carp_set_enaddr(), call carp_set_state() after changing the vhidmcbride2004-12-101-28/+35
| | | | to trigger a gratuitous arp and update arp tables on other hosts.
* Rename carp_output() to carp_fix_lladdr().mcbride2004-12-102-6/+6
|
* * knfpat2004-12-081-7/+11
| | | | | | | | * M_WAITOK -> M_NOWAIT * FREE() only when necessary * join_multicast6 for ip6 addresses mcbride ok
* allow ToS to be set on raw ip socketshenning2004-12-081-2/+2
| | | | | From: "Esben Norby (ST/LMD)" <esben.norby@ericsson.com> ok hshoexer markus millert
* Remove code duplication duplication. Use carpdetach() in carp_clone_destroy().mcbride2004-12-081-19/+3
|
* Merge in more fixes from a pre-carpdev diff from Chris Pascoe.mcbride2004-12-081-7/+5
|
* Check if_type in carp_carpdev_state() to make sure we're notmcbride2004-12-082-5/+10
| | | | dealing with a carp interface.
* Convert carp(4) to behave more like a regular interface, much in the samemcbride2004-12-074-351/+616
| | | | | | | | style as vlan(4). carp interfaces no longer require the physical interface to be on the same subnet as the carp interface, or even that the physical interface has an adress at all, so CARP can now be used on /30 networks. ok deraadt@ henning@
* also consider NFS_PORT to be a reserved port, as in 1.18 or something likederaadt2004-12-061-1/+8
| | | | that.
* ipsec udpencap check was done after baddynamicports ports checks (thosederaadt2004-12-061-3/+5
| | | | tables only map from 512 to 1023 using bitmaps, sorry); ok hshoexer
* Use %s, not %d to print the interface name. From Max Laier.mcbride2004-11-301-2/+2
|
* Reverse bogus sc == NULL check in CARP_LOG(), from Max Laier.mcbride2004-11-281-2/+2
|
* resolve conflict between M_TUNNEL and M_ANYCAST6, remove M_COMP (it'smarkus2004-11-252-6/+3
| | | | only set and never read), update documentation; ok fgsch, deraadt, millert
* use ttl from setsockopt(), similar to bsd/os; ok henning, mcbride, fgschmarkus2004-11-251-2/+2
|