summaryrefslogtreecommitdiffstats
path: root/sys/netinet
Commit message (Collapse)AuthorAgeFilesLines
* Completed function declarations and/or added prototypes.bde1995-12-027-10/+62
|
* fix #includes & warnings.phk1995-11-202-35/+4
|
* Fixed the type of a function pointer.bde1995-11-181-3/+3
|
* Fixed recent staticizations. Some protypes for static functions werebde1995-11-162-4/+4
| | | | left in headers and not staticized.
* New style sysctl & staticize alot of stuff.phk1995-11-1430-357/+243
|
* Start adding new style sysctl here too.phk1995-11-098-13/+74
|
* Cosmetic changes to processing of segments in the SYN_SENT state:olah1995-11-032-20/+20
| | | | | | | | - remove a redundant condition; - complete all validity checks on segment before calling soisconnected(so). Reviewed by: Richard Stevens, davidg, wollman
* Setting the TF_ACKNOW flag was redundant in the REXMT timeout becauseolah1995-11-031-5/+1
| | | | | | | tcp_output() checks for the condition snd_nxt == snd_una. Reviewed by: davidg, wollman, olah Suggested by: Richard Stevens
* Fix a logical error in T/TCP: when we actively open a connection, weolah1995-11-033-12/+25
| | | | | | | | | | have to decide whether to send a CC or CCnew option in our SYN segment depending on the contents of our TAO cache. This decision has to be made once when the connection starts. The earlier code delayed this decision until the segment was assembled in tcp_output() and retransmitted SYN segments could have different CC options. Reviewed by: Richard Stevens, davidg, wollman
* Instrument the IP input queue with two new read-only MIB entries:wollman1995-11-012-3/+12
| | | | | | | | 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.
* Start the 2MSL timer when the socket is closed and the TCP connection isolah1995-10-291-2/+6
| | | | | | | | | in the FIN_WAIT_2 state in order to prevent the conn. hanging there forever. Reviewed by: davidg, olah Submitted by: Arne Henrik Juul <arnej@imf.unit.no> Obtained from: bugs@netbsd.org
* Second batch of cleanup changes.phk1995-10-295-16/+7
| | | | | This time mostly making a lot of things static and some unused variables here and there.
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-261-1/+12
| | | | | | | | | | | | | | | | | | | | | Submitted by: Mike Mitchell, supervisor@alb.asctmd.com This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on.. Mikes been using it for a year or so but on 2.0 more changes and stuff will be merged in from other developers now that this is in. Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.com
* Support all the tcpflag options in firewall.ugen1995-10-231-14/+43
| | | | | | Add reading options from file, now ipfw <filename> will read commands string after string from file , form of strings same as command line interface.
* Remove the last trace of arptnew()phk1995-10-221-2/+1
|
* Fix panic caused by PRU_CONTROL not being dealt with properly. Bug pointeddg1995-10-211-2/+8
| | | | out by David Maltz <dmaltz@orval.mach.cs.cmu.edu>, but this fix is by me.
* The ability to administratively change the MTU of an interface presentswollman1995-10-165-15/+36
| | | | | | | a few new wrinkles for MTU discovery which tcp_output() had better be prepared to handle. ip_output() is also modified to do something helpful in this case, since it has already calculated the information we need.
* Routes can be asymmetric. Always offer to /accept/ an MSS of up to thewollman1995-10-132-14/+2
| | | | | | capacity of the link, even if the route's MTU indicates that we cannot send that much in their direction. (This might actually make it possible to test Path MTU discovery in a useful variety of cases.)
* The additional checks involving sequence numbers in MTU discovery resendswollman1995-10-123-17/+11
| | | | | | turned out not to be necessary; simply watching for MTU decreases (which we already did) automagically eliminates all the cases we were trying to protect against.
* More MTU discovery: avoid over-retransmission if route changes in thewollman1995-10-103-21/+22
| | | | | | | | middle of a fully-open window. Also, keep track of how many retransmits we do as a result of MTU discovery. This may actually do more work than necessary, but it's an unusual condition... Suggested by: Janey Hoe <janey@lcs.mit.edu>
* Put newline at end of log()ed messages so syslog can't fill up yourwollman1995-10-061-21/+22
| | | | /var quite as fast.
* Convert ARP to use queue.h macros rather than insque/remque. Whilewollman1995-10-052-21/+21
| | | | | | | we're at it, eliminate obsolete exposure of `struct llinfo_arp' to the world. (This dates back to when ARP entries were not stored in the routing table, and there was no other way for the `arp' program to read the whole table than to grovel around in /dev/kmem.)
* Make a whole bunch of PCB variables ints rather than shorts. There appearwollman1995-10-041-16/+16
| | | | | | | | to be no ill effects, and so far as Iknow none of the variables in question depend on 16-bit wraparound behavior. (The sizes are in many cases relics from when a PCB had to fit inside a 128-byte mbuf. PCBs are no longer stored in that way, and the old structure would not have fit, either.)
* Finish 4.4-Lite-2 merge: randomize TCP initial sequence numberswollman1995-10-036-35/+62
| | | | to make ISS-guessing spoofing attacks harder.
* Well..finally..this is the first part..it should take care ofugen1995-10-012-19/+114
| | | | | | | | matching IP options..Check and test this - i made only a couple of rough tests and this could be buggy.. Ipaccounting can't use IP Options (and i don't see any need to cound packets with specific options either..) More to come...
* Merge 4.4-Lite-2: update version number (we already have the same fixes).wollman1995-09-221-5/+4
| | | | Obtained from: 4.4BSD-Lite-2
* Merge 4.4-Lite-2: always check the UDP checksum if it is present, evenwollman1995-09-221-5/+5
| | | | if we are not generating checksums. (Save a test in the input path.)
* Correct spelling error in MTUDISC code.wollman1995-09-222-4/+4
|
* Remove duplicate definition for tcps_persistdrop, as added by davidg somepeter1995-09-221-2/+1
| | | | | | | | time ago. I left in Garrett's one, because his was in the 4.4-Lite-2 location, making any diffs just that little bit smaller. I presume this choice means that netstat needs to be recompiled before "netstat -s" will give a meaningful answer on tcp stats.
* Merge with 4.4-Lite-2: fix bug that caused getsockopt of IP_HDRINCLwollman1995-09-211-15/+15
| | | | | | to fail. Obtained from: 4.4BSD-Lite-2
* Merge 4.4-Lite-2 by updating the version number.wollman1995-09-212-4/+4
| | | | Obtained from: 4.4BSD-Lite-2
* Merge 4.4-Lite-2: update some declarations that we don't support anyway.wollman1995-09-211-4/+4
| | | | Obtained from: 4.4BSD-Lite-2
* Merge 4.4-Lite-2: use M_NOWAIT in in_pcballoc(), and return EACCES ratherwollman1995-09-211-4/+4
| | | | | | than EPERM on illegal attempt to bind a reserved port. Obtained from: 4.4BSD-Lite-2
* Merge with 4.4-Lite-2. This is actually a 64-bit fix; the second parameterwollman1995-09-212-8/+9
| | | | | | | to in_control() is sometimes a pointer, and sometimes an integer, so use u_long rather than int. Obtained from: 4.4BSD-Lite-2
* Merge with 4.4-Lite-2. This involves changing the version number andwollman1995-09-211-3/+3
| | | | | | moving a declaration around. Obtained from: 4.4BSD-Lite-2
* Merge with 4.4-Lite-2. This just adds a couple of tcpstat entries whichwollman1995-09-211-4/+6
| | | | we don't currently set, but might in the future.
* Add support in TCP for Path MTU discovery. This is highly experimentalwollman1995-09-203-12/+108
| | | | | | | and gated on `options MTUDISC' in the source. It is also practically untested becausse (sniff!) I don't have easy access to a network with an MTU of less than an Ethernet. If you have a small MTU network, please try it and tell me if it works!
* Initial back-end support for IP MTU discovery, gated on MTUDISC. The supportwollman1995-09-185-5/+152
| | | | for TCP has yet to be written.
* Don't leak mbufs in an unusual error case in tcp_usrreq().wollman1995-09-131-2/+14
| | | | | Reviewed by: Andras Olah <olah@freebsd.org> Obtained from: Lite-2
* If tcp_output() is unable to allocate space for a copy of the data waitingwollman1995-09-131-3/+6
| | | | | | | | | to be sent, just clean up and return ENOBUFS rather than silently proceeding without sending any of the data. This makes it consistent with the `#ifdef notyet' case immediately above. Reviewed by: Andras Olah <olah@freebsd.org> Obtained from: Lite-2
* Fix long-standing bug in ICMPPRINTFS code where NTOHL was used insteadwollman1995-08-291-12/+20
| | | | | | | of ntohl for printing IP addresses, by instead substituting inet_ntoa() to produce human-readable output. Obtained from: 4.4-Lite-2
* Fix some problems with multicast forwarding:wollman1995-08-232-137/+135
| | | | | | | | | | | | | | | | | Garrett, Here are some patches for the rate limiting code. It should be faster, and in particular it doesn't leak malloc'd memory any more when rate_limit'ing a phyint. It now uses an mbuf chain at each vif, instead of the static queue array. This means that the MAXQSIZE is now variable per vif (although there is no interface to change it other than a debugger); this is an area for more experimentation. Bill Submitted by: Bill Fenner <fenner@parc.xerox.com>
* Add a sanity check for the UDP length field in order to preventolah1995-08-171-2/+2
| | | | | | malformed UDP packets to panic the kernel. Reviewed by: davidg, wollman Obtained from: dab@berserkly.cray.com (David A. Borman) via end2end list
* Try to make the `syn' blocking code act a bit more sensibly - don'tgpalmer1995-07-311-2/+2
| | | | | | | block `syn' packets that have `ack' set. Reviewed by: Submitted by: Obtained from:
* Remove a redundant `if' from tcp_reass().olah1995-07-312-8/+4
| | | | | | Correct a typo in a comment (SEND_SYN -> NEEDSYN). Reviewed by: David Greenman
* Add connection drop capability for persist timeouts.dg1995-07-292-2/+19
| | | | | Reviewed by: Andras Olah Obtained from: 4.4BSD-lite2 via W. Richard Stevens
* Fix test for determining when RSVP is inactive in a router. (In thiswollman1995-07-263-6/+7
| | | | | | case, multicast options are not passed to ip_mforward().) The previous version had a wrong test, thus causing RSVP mrouters to forward RSVP messages in violation of the spec.
* Declare rsvp_input() to take the correct set of arguments and figure outwollman1995-07-241-5/+12
| | | | the receipt interface in the correct way.
* Completely turn off RSVP intercept when a socket being used for that purposewollman1995-07-241-1/+2
| | | | | is PRU_DETACHed. This solves the problem that RSVP would not come up inm raw mode if previously killed.
* Added $Id$.dg1995-07-233-0/+6
|
OpenPOWER on IntegriCloud