summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* When adding a route, set rt_ifa and rt_ifp a little earlier so thatwollman1995-07-101-4/+13
| | | | the protocol-specific add routine can examine it if desired.
* Move some struct definitions outside of struct's, so their scopes forjoerg1995-07-091-35/+40
| | | | | | C++ will match the scopes for C. Submitted by: Warner Losh
* PR #kern/600: PPP does not pay attention to IPTOS_LOWDELAYjoerg1995-07-081-1/+10
| | | | | | | | | | Kernel PPP doesn't pay attention to IPTOS_LOWDELAY, but uses a table of port numbers, which isn't a generic method. The following patch fixes this (the table is still used, but in addition PPP queues the packet in fastq if IPTOS_LOWDELAY is set. Obtained from: Tatu Ylonen <ylo@cs.hut.fi> Submitted by: Heikki Suonsivu <hsu@clinet.fi>
* Worked around a bug with if.c setting the interface up even when we don'tdg1995-07-071-1/+14
| | | | want it to.
* Modified joerg's last change to only set the interface "up" when settingdg1995-07-061-4/+9
| | | | the address if the device is a SLIP device (i.e. "attached").
* Revision 1.21 of if_sl.c broke the traditional behaviour thatjoerg1995-07-021-1/+4
| | | | | | assigning an address to an interface automatically marks this interface IFF_UP. The fix corrects this (and closes PR sys/577). This is consistent with the way ethernet interfaces are being handled.
* Don't skip point-to-point interfaces if the netmask==0 (the netmaskdg1995-06-281-3/+5
| | | | | | | | should be completely ignored for point-to-point interfaces). For point-to-point interfaces, route based on the destination address, not the local address. Submitted by: Peter Wemm
* Killed a couple lines of redundant code.dg1995-06-211-5/+1
|
* Protect the call to if_up() with an splnet().dg1995-06-211-2/+4
|
* 1) Set interface up/down correctly as a function of open and close of thedg1995-06-211-7/+11
| | | | | | | | SLIP device. 2) Don't directly frob the IFF_UP flag - use if_up/if_down as it was intended. 3) Return ENETDOWN if IFF_UP isn't set when outputing, drop the packet if if IFF_UP isn't set when inputing.
* Give the BPF the ability to generate signals when a packet is available.pst1995-06-153-5/+66
| | | | | Reviewed by: pst & wollman Submitted by: grossman@cygnus.com
* Took out P2P_LOCALADDR_SHARE option and made it standard.dg1995-06-151-9/+3
|
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-112-3/+25
|
* Remove trailing whitespace.rgrimes1995-05-3027-117/+117
|
* Added a fix for a bug which caused the wrong interface to be selecteddg1995-05-271-28/+45
| | | | | | | | | | | for broadcasts if point-to-point links shared the same IP address as the ethernet. The fix must be enabled with P2P_LOCALADDR_SHARE option in the kernel config file. This will someday likely be standard, but there isn't sufficient time before release to determine if there are any interoperability problems with routed and/or gated. Reviewed by: Garrett Wollman, and me Submitted by: Peter Wemm
* Fixed route reference count bug that squirmed in during the thedg1995-05-151-2/+2
| | | | | | routing-socket code upgrade from Berkeley.. Submitted by: Garrett Wollman via Peter Wemm via Cornell
* Fix -Wformat warnings from LINT kernel.rgrimes1995-05-111-3/+4
|
* Make networking domains drop-ins, through the magic of GNU ld. (Some day,wollman1995-05-112-2/+16
| | | | | | there may even be LKMs.) Also, change the internal name of `unixdomain' to `localdomain' since AF_LOCAL is now the preferred name of this family. Declare netisr correctly and in the right place.
* Updated routing-socket code from Berkeleywollman1995-05-101-23/+20
| | | | Obtained from: Keith Bostic by way of Paul Traina
* Replaced some bcopy()'s with memcpy()'s so that gcc while inline/optimize.dg1995-05-093-12/+12
|
* Fix misplaced idempotency #endif.bde1995-04-291-8/+8
| | | | Fix tabs and spaces in the wrong places.
* Incorporate new radix code from UCB. This fixes the orphaned mask bugs.pst1995-04-282-157/+314
| | | | | | | | | This submission was done by hand-applying FreeBSD local modifications on top of the UCB code, rather than trying to patch the UCB code in on top of the FreeBSD code due to the extensive changes. Reviewed by: pst (been handling 30k routes for 4+ months) Obtained from: Sklower/Woody/Honing/Traina (8.4 UCB release)
* Implement SLIOCSUNIT (set slip unit number)ache1995-04-282-2/+7
|
* Cleanup loopback interface support.pst1995-04-262-18/+26
| | | | Reviewed by: wollman
* Finally finish the cloning cleanup work by making sure that cloneswollman1995-04-251-1/+131
| | | | | | | | | go away whenever a clone's parent is changed, or a route is added in a certain set of circumstances. This also includes code to forbid setting a route's gateway to an address which can only be reached through that route, thus (hopefully) eliminating one class of cloning bottomless-recursion bugs.
* Tunnel driver is nmow capable of installing its own cdevsw[] entry,wollman1995-04-101-20/+24
| | | | | with a little help from conf.c. While e're at it, actually declare the tunnel entry points to have the correct types. This fixes PR #306.
* Fix slioctl(). It has to return -1 for ioctls that it doesn't know aboutbde1995-04-021-19/+24
| | | | | | | | | so that these ioctls can be handled by the calling layer(s). Clean up the recently added code: - include the appropriate header to declare an implicitly declared function. - declare timeout functions correctly and remove numerous bogus casts that hid (but didn't fix) their incorrectness.
* slopen() never sets t_line to SLIPDISC, but uses slip-specific queue allocationache1995-04-011-1/+2
|
* Patch from Greg Ansley:dg1995-04-011-5/+5
| | | | | | | | | | In rare cases, when the filter specified accesses an multi-byte value that is split across mbuf's, the value loaded is incorrect. And if you are very unlucky (like me) it will index off the end of the mbuf and into an unallocated page and panic the system. If you look at the code you will discover the the index *k* is added to the pointer *cp* and the used AGAIN as a subscript.
* Fix typing error sneaked somehow in prev. commitache1995-03-311-2/+2
|
* This sl enhancement helps to keep serial line (modem) connection alive.ache1995-03-303-5/+100
| | | | | | | | | | | | | | | | | | It is common case when modem hangs with carier on but don't receive anything from another side. This thing commonly healed with hangup and redialing. Enhancements below allows to determine when such action is needed and inform attach program with SIGURG signal. There two ioctls set: outfill and keepalive, used from both sides of connection. Outfill repeatedly sends FRAME_END with specified timeout (i.e. 40 seconds). It is needed to get input on other side even if no user activity on slip line currently. Keepalive checks FRAME_ENDs from other side, and if no one got in specified timeout (i.e. 60 seconds, max modem retrain time), send SIGURG to attach program. I plan to add code to slattach to handle this thing too. Reviewed by: wollman
* pppinput:ache1995-03-291-5/+9
| | | | | Fix serial errors handling Add no carrier check
* Don't delete clones if they are PINNED.wollman1995-03-241-2/+2
|
* radix.c: correct exit condition in rn_walktree_from()wollman1995-03-232-6/+29
| | | | | route.c: be a little more careful when running deleting children of dying . routes
* Protocol-cloned routes should gain a reference to their parents to makewollman1995-03-211-2/+9
| | | | sure that rt->rt_parent values can never be re-used harmfully.
* Made minor readability tweak.dg1995-03-201-6/+3
|
* Better fix for the deletion of parents of cloned routes problem,wollman1995-03-204-56/+115
| | | | | superseding the `nextchild' hack. This also provides a way forward to fix RTM_CHANGE and RTM_ADD as well.
* Support for pseudo-device LKMs. Note that this is restricted to onlywollman1995-03-205-12/+11
| | | | | one pseudo per module (a restriction which will eventually be lifted) and isthus not in its final form.
* Beginnings of support for loadable pseudo-devices. bsd.kmod.mk supportwollman1995-03-171-2/+2
| | | | and Makefiles for the more interesting ones to come on Monday.
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-168-13/+13
| | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
* Added $Id$dg1995-03-141-2/+2
|
* Added support for generic FDDI and the DEC DEFEA and DEFPA FDDI adapters.dg1995-03-143-1/+657
| | | | Submitted by: Matt Thomas
* Reduced loopback MTU to 16k to work around a miriad of problems with itdg1995-03-041-2/+2
| | | | | set near or above 32k (likely caused by 16bit signed word overflow). 16k actually (surprizingly) has higher performance than other values I tested.
* New user Process PPP based on iij-ppp0.94beta2.amurai1995-02-262-142/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Supporting SYNC SIO device (But need a device driver) - add "set speed sync" o Fixing bug for Predictor-1 function. o Add new parameter that re-sent interval for set timeout commands. o Improving RTT (Round Trip Time) and reducing processor time. - Previous Timer service was using polling, and now using SIGALRM ;-) - A 0.94beta2 will not work correctly.... -- Follows are additinal feature not including 0.94beta2 o Support Proxy ARP - add "enable/disable proxy" commands o Marging common routine in CHAP/PAP. o Enhancing LCP/IPCP log information. o Support local Authfication connection on port 300x and tty. - You can set up pair of your "hostname -s" and password in ppp.secret. if either ppp.secret file nor your hostname line don't exist, It will notify a message and working as same as previous version.(Backword compatibility) - If you did set up them, It's allow connection but nothing to do except help and passwd command. - add "passwd yourpasswd" commands o Support afilter - keep Alive filter that a packet can send/receiving according to ifilter/ofilter but doesn't count it as preventing idle timer expires. - Same syntax of other filters. o Fixing bugs reported by current user for previous one. Thanks !! Reviewed by: Atsushi Murai (amurai@spec.co.jp)
* Fixed comment - IFT_P80 is 80mbit.dg1995-02-251-2/+2
| | | | Submitted by: frank@fwi.uva.nl (Frank van der Linden)
* In ifa_ifwithdstaddr() when walking through ifa structs associated withdg1995-02-241-2/+2
| | | | | a point-to-point link, don't attempt a comparison if the pointer to the destination sockaddr is NULL (i.e. it has not been set/initialized).
* Attempting to bind() or connect() a routing socket, while meaningless,wollman1995-02-161-3/+7
| | | | | | shouldn't cause a panic. Obtained from: Stevens, vol. 2, p. 667
* Nuke some more compiler warnings, while I'm at it..jkh1995-02-151-16/+16
|
* *close: just purge tty queues if we can't drain themache1995-02-132-4/+6
|
* Define RTF_PINNED for future use.wollman1995-02-081-2/+3
|
OpenPOWER on IntegriCloud