summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_rmx.c
Commit message (Collapse)AuthorAgeFilesLines
* Back out DIAGNOSTIC changes.eivind1998-02-061-3/+1
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-041-1/+3
|
* Removed unused #includes.bde1997-08-021-12/+1
|
* Fix the mechanism for choosing wehether to save the slow-start thresholdwollman1997-02-141-18/+1
| | | | | | | | | | in the route. This allows us to remove the unconditional setting of the pipesize in the route, which should mean that SO_SNDBUF and SO_RCVBUF should actually work again. While we're at it: - Convert udp_usrreq from `mondo switch statement from Hell' to new-style. - Delete old TCP mondo switch statement from Hell, which had previously been diked out.
* Provide PRC_IFDOWN and PRC_IFUP support for IP. Now, when an interfacewollman1997-02-131-1/+49
| | | | | | | | is administratively downed, all routes to that interface (including the interface route itself) which are not static will be deleted. When it comes back up, and addresses remaining will have their interface routes re-added. This solves the problem where, for example, an Ethernet interface is downed by traffic continues to flow by way of ARP entries.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Put the 'debug' messages of the type:nate1996-06-201-1/+3
| | | | | | | /kernel: in_rtqtimo: adjusted rtq_reallyold to 1066 /kernel: in_rtqtimo: adjusted rtq_reallyold to 710 inside of #ifdef DIAGNOSTIC to avoid the support questions from folks asking what this means.
* Add three new route flags to help determine what sort of addresswollman1996-05-061-4/+33
| | | | | | | | | | | | | | | | | | | | | | the destination represents. For IP: - Iff it is a host route, RTF_LOCAL and RTF_BROADCAST indicate local (belongs to this host) and broadcast addresses, respectively. - For all routes, RTF_MULTICAST is set if the destination is multicast. The RTF_BROADCAST flag is used by ip_output() to eliminate a call to in_broadcast() in a common case; this gives about 1% in our packet-generation experiments. All three flags might be used (although they aren't now) to determine whether a packet can be forwarded; a given host route can represent a forwardable address if: (rt->rt_flags & (RTF_HOST | RTF_LOCAL | RTF_BROADCAST | RTF_MULTICAST)) == RTF_HOST Obviously, one still has to do all the work if a host route is not present, but this code allows one to cache the results of such a lookup if rtalloc1() is called without masking RTF_PRCLONING.
* Delete #if 0 block containing remnants of pre-MTU discovery rmx_mtuwollman1996-04-261-17/+1
| | | | initialization.
* First piece of fixing ppp/proxy arp problem:fenner1996-01-231-2/+28
| | | | | | | If an attempt to add a route fails because an "ARP table" entry is in the way, remove the ARP entry and retry the add. Reviewed by: nate
* Actually call in_rtqdrain()as was originally intended.wollman1995-12-191-5/+2
|
* Path MTU Discovery is now standard.wollman1995-12-051-8/+8
|
* Completed function declarations and/or added prototypes.bde1995-12-021-1/+4
|
* New style sysctl & staticize alot of stuff.phk1995-11-141-6/+8
|
* Start adding new style sysctl here too.phk1995-11-091-5/+17
|
* Second batch of cleanup changes.phk1995-10-291-2/+1
| | | | | This time mostly making a lot of things static and some unused variables here and there.
* Initial back-end support for IP MTU discovery, gated on MTUDISC. The supportwollman1995-09-181-1/+9
| | | | for TCP has yet to be written.
* tcp_input.c - keep track of how many times a route contained a cached rttwollman1995-07-101-2/+39
| | | | | | | | | or ssthresh that we were able to use tcp_var.h - declare tcpstat entries for above; declare tcp_{send,recv}space in_rmx.c - fill in the MTU and pipe sizes with the defaults TCP would have used anyway in the absence of values here
* Fix an error in the comparison direction of the ap->updating case ofwollman1995-06-211-2/+2
| | | | | | in_rtqkill(). Submitted by: W. Richard Stevens
* Remove trailing whitespace.rgrimes1995-05-301-7/+7
|
* Removed redundant newlines that were in some panic strings.dg1995-03-191-2/+2
|
* Added missing newlines to calls to log().dg1995-02-201-3/+3
|
* After dynamically reducing rtq_reallyold, have in_rtqkill() reduce thewollman1995-02-141-4/+14
| | | | | | expiration timer of anything which would expire later than that. (There should be a way to call this from ip_sysctl() as well, but there currently isn't.)
* Attempt to make the host route cache a bit smarter under conditions ofwollman1995-02-141-10/+73
| | | | | | | | | | | | | high load: 1) If there ever get to be more than net.inet.ip.rtmaxcache entries in the cache, in_rtqtimo() will reduce net.inet.ip.rtexpire by 1/3 and do another round, unles net.inet.ip.rtexpire is less than net.inet.ip.rtminexpire, and never more than once in ten minutes (rtq_timeout). 2) If net.inet.ip.rtexpire is set to zero, don't bother to cache anything.
* Change caching strategy somewhat:wollman1995-01-231-12/+17
| | | | | | | | 1) Don't clone routes to multicast destinations; there is nothing useful to be gained in this case. 2) Reduce default expiration timer to one hour. Busy sites will still likely want to reduce this, but for ordinary users this is a reasonable value to use.
* Avoid a serious race by blocking netisrs while walking the route tree.wollman1994-12-211-6/+6
| | | | (IWBRNI we could just block IP netisrs...)
* Update calls to rtalloc1(). Also merge rt_prflags with rt_flags.wollman1994-12-131-13/+24
|
* Delete old, confusing comment.wollman1994-12-021-9/+1
|
* Add a check to make sure that we don't fiddle with the NFS routing tableswollman1994-12-021-10/+3
| | | | | as well (bleah!). Also, increase the interval to the real-life value and eliminate debugging printfs. This will be standard once tested by others.
* Add latest version of ``advanced route metric management'' :-)wollman1994-12-011-18/+71
| | | | | As before, this is currently conditionalized on options IN_RMX until I'm sure it's working.
* Completely replace JTW's idea with my (incompletely implemented) originalwollman1994-11-031-148/+23
| | | | | idea. This is les likely to crash your machine. As before, this code is only enabled under `options IN_RMX'.
* This is the file that actually implements the smarter behavior.wollman1994-11-021-0/+283
OpenPOWER on IntegriCloud