summaryrefslogtreecommitdiffstats
path: root/sys/netinet
Commit message (Collapse)AuthorAgeFilesLines
* If _IP_VHL is defined, declare a single ip_vhl member in struct ip ratherwollman1995-12-211-1/+5
| | | | | than separate ip_v and ip_hl members. Should have no effect on current code, but I'd eventually like to get rid of those obnoxious bitfields completely.
* Delete old-style-broadcast-address compatibility cruft in IP input path.wollman1995-12-211-3/+3
| | | | | If users want to use the old-style broadcast addresses, they will have to currectly configure their systems.
* in_proto.c: spell ``Internet'' right and put whitespace after commas.wollman1995-12-202-26/+27
| | | | | | | | others: start to populate the link-layer branch of the net mib, by moving ARP to its proper place. (ARP is not a protocol family, it's an interface layer between a medium-access layer and a protocol family.) sysctl(8) needs to be taught about the structure of this branch, unless Poul-Henning implements dynamic MIB exploration soon.
* Demolish DIRECTED_BROADCAST. It was always a bad idea, and nobody uses it.wollman1995-12-201-15/+8
|
* Fix a nagging divide-by-zero error resulting from the MTU discovery codewollman1995-12-202-4/+40
| | | | getting triggered at a bad time.
* Added a comment about why trying to make a one-behind cache forwollman1995-12-191-1/+18
| | | | the route in ip_output() is a bad idea.
* Actually call in_rtqdrain()as was originally intended.wollman1995-12-193-8/+7
|
* Uniformized pr_ctlinput protosw functions. The third arg is now `voidbde1995-12-166-16/+19
| | | | | | | *' instead of caddr_t and it isn't optional (it never was). Most of the netipx (and netns) pr_ctlinput functions abuse the second arg instead of using the third arg but fixing this is beyond the scope of this round of changes.
* Added a prototype.bde1995-12-161-1/+2
|
* Another mega commit to staticize things.phk1995-12-148-26/+26
|
* Staticize.phk1995-12-093-16/+17
|
* Remove old ballast, clean up a little bit, staticize.phk1995-12-092-73/+69
| | | | | | | | | | | | | Add five sysctl variables that you should probably never tweak. net.arp.t_prune: 300 net.arp.t_keep: 1200 net.arp.t_down: 20 net.arp.maxtries: 5 net.arp.useloopback: 1 net.arp.proxyall: 0 (It's net.arp because arp isn't limited to inet, though our present implementation surely is).
* Added a conditionalized printf for debugging MTU discovery.wollman1995-12-081-2/+6
|
* Removed unnecessary #includes of vm stuff. Most of them were oncebde1995-12-064-9/+4
| | | | | | | prerequisites for <sys/sysctl.h>. subr_prof.c: Also replaced #include of <sys/user.h> by #include of <sys/resourcevar.h>.
* Added explicit include of <sys/queue.h>. Currently, some things onlybde1995-12-051-1/+3
| | | | | compile because <vm/vm.h> happens to be gratuitously included before <netinet/in_pcb.h> and <vm/vm.h> happens to include <sys/queue.h>.
* Path MTU Discovery is now standard.wollman1995-12-058-41/+37
|
* all:dg1995-12-051-1/+4
| | | | | | | | | | | | | | | | Removed ifnet.if_init and ifnet.if_reset as they are generally unused. Change the parameter passed to if_watchdog to be a ifnet * rather than a unit number. All of this is an attempt to move toward not needing an array of softc pointers (which is usually static in size) to point to the driver softc. if_ed.c: Changed some of the argument passing to some functions to make a little more sense. if_ep.c, if_vx.c: Killed completely bogus use of if_timer. It was being set in such a way that the interface was being reset once per second (blech!).
* 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
OpenPOWER on IntegriCloud