summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Export ipstat via sysctl. Don't understand why this wasn't done before.wollman1997-09-251-2/+4
|
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* 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.
* Add INADDR_LOOPBACK, moved from <rpc/rpc.h>peter1996-12-301-1/+2
|
* Add the IP_RECVIF socket option, which supplies a packet's incoming interfacefenner1996-11-111-1/+2
| | | | | | | | using a sockaddr_dl. Fix the other packet-information socket options (SO_TIMESTAMP, IP_RECVDSTADDR) to work for multicast UDP and raw sockets as well. (They previously only worked for unicast UDP).
* Changed args to the nat functions.sos1996-10-221-2/+2
|
* Reword two comments.alex1996-10-191-3/+3
|
* Add hooks for an IP NAT module, much like the firewall stuff...sos1996-08-211-5/+21
| | | | | Move the sockopt definitions for the firewall code from ip_fw.h to in.h where it belongs.
* Add two more portrange sysctls, which control the area of the belowpeter1996-08-121-2/+10
| | | | | | | | IPPORT_RESERVED that is used for selection when bind() is told to allocate a reserved port. Also, implement simple sanity checking for all the addresses set, to make it a little harder for a user/sysadmin to shoot themselves in the feet.
* Adding changes to ipfw and the kernel to support ip packet diversion..julian1996-07-101-1/+2
| | | | | | This stuff should not be too destructive if the IPDIVERT is not compiled in.. be aware that this changes the size of the ip_fw struct so ipfw needs to be recompiled to use it.. more changes coming to clean this up.
* Add feature for tcp "established".phk1996-04-031-3/+9
| | | | | Change interface between netinet and ip_fw to be more general, and thus hopefully also support other ip filtering implementations.
* IGMPv2 routines rewritten, to be more compact and to fully complyfenner1996-03-141-1/+2
| | | | with the IGMPv2 Internet Draft (including Router Alert IP option)
* Make the default behavior of local port assignment match traditionalpeter1996-02-221-14/+48
| | | | | | | | | | | | | | | | | | | | | | | | | systems (my last change did not mix well with some firewall configurations). As much as I dislike firewalls, this is one thing I I was not prepared to break by default.. :-) Allow the user to nominate one of three ranges of port numbers as candidates for selecting a local address to replace a zero port number. The ranges are selected via a setsockopt(s, IPPROTO_IP, IP_PORTRANGE, &arg) call. The three ranges are: default, high (to bypass firewalls) and low (to get a port below 1024). The default and high port ranges are sysctl settable under sysctl net.inet.ip.portrange.* This code also fixes a potential deadlock if the system accidently ran out of local port addresses. It'd drop into an infinite while loop. The secure port selection (for root) should reduce overheads and increase reliability of rlogin/rlogind/rsh/rshd if they are modified to take advantage of it. Partly suggested by: pst Reviewed by: wollman
* Change the default local address range for IP from 1024 through 5000peter1996-01-191-1/+15
| | | | | | | | | | | | | | to 20000 through 30000. These numbers are used for local IP port numbers when an explicit address is not specified. The values are sysctl modifiable under: net.inet.ip.port_{first|last}_auto These numbers do not overlap with any known server addresses, without going above 32768 which are "negative" on some other implementations. 20000 through 30000 is 2.5 times larger than the old range, but some have suggested even that may not be enough... (gasp!) Setting a low address of 10000 should be plenty.. :-)
* New style sysctl & staticize alot of stuff.phk1995-11-141-3/+1
|
* Instrument the IP input queue with two new read-only MIB entries:wollman1995-11-011-2/+6
| | | | | | | | net.inet.ip.intr-queue-maxlen (=== ipintrq.ifq_maxlen) and net.inet.ip.intr-queue-drops (=== ipintrq.ifq_drops) There should probably be a standard way of getting the same information going the other way.
* Change the compile-time option of DIRECTED_BROADCAST into a sysctlpeter1995-07-181-2/+4
| | | | | | variable underneath ip, "directed-broadcast". Reviewed by: David Greenman Obtained from: NetBSD, by Darren Reed.
* Kernel side of 3.5 multicast routing code, based on work by Bill Fennerwollman1995-06-131-3/+5
| | | | | and other work done here. The LKM support is probably broken, but it still compiles and will be fixed later.
* Reject source routes unless configured on by administrator.wollman1995-03-161-1/+3
|
* Add inet_ntoa() and replace ARP's private routine with same.wollman1995-03-161-1/+4
|
* Attempt to make the host route cache a bit smarter under conditions ofwollman1995-02-141-2/+6
| | | | | | | | | | | | | 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.
* Correct sysctl info so that net.inet.ip.rtexpire is actually accessible.wollman1994-12-211-2/+2
|
* Make rtq_reallyold user-configurable via sysctl.wollman1994-12-141-1/+4
|
* Initial get-the-easy-case-working upgrade of the multicast codewollman1994-09-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to something more recent than the ancient 1.2 release contained in 4.4. This code has the following advantages as compared to previous versions (culled from the README file for the SunOS release): - True multicast delivery - Configurable rate-limiting of forwarded multicast traffic on each physical interface or tunnel, using a token-bucket limiter. - Simplistic classification of packets for prioritized dropping. - Administrative scoping of multicast address ranges. - Faster detection of hosts leaving groups. - Support for multicast traceroute (code not yet available). - Support for RSVP, the Resource Reservation Protocol. What still needs to be done: - The multicast forwarder needs testing. - The multicast routing daemon needs to be ported. - Network interface drivers need to have the `#ifdef MULTICAST' goop ripped out of them. - The IGMP code should probably be bogon-tested. Some notes about the porting process: In some cases, the Berkeley people decided to incorporate functionality from later releases of the multicast code, but then had to do things differently. As a result, if you look at Deering's patches, and then look at our code, it is not always obvious whether the patch even applies. Let the reader beware. I ran ip_mroute.c through several passes of `unifdef' to get rid of useless grot, and to permanently enable the RSVP support, which we will include as standard. Ported by: Garrett Wollman Submitted by: Steve Deering and Ajit Thyagarajan (among others)
* Made idempotent.paul1994-08-211-1/+6
| | | | Submitted by: Paul
* Added $Id$dg1994-08-021-0/+1
|
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+238
OpenPOWER on IntegriCloud