summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* Use malloc to save space for temp SUNIT variableache1997-07-281-9/+10
| | | | Submitted by: bde
* Move tmpnc struct out of stack, too largeache1997-07-271-2/+3
| | | | Suggested by: bde
* SUNIT: exchange back whole ifnet structures since they are in the linkedache1997-07-261-7/+6
| | | | list, not device numbers only
* Forget to change units in prev. SUNIT commit. Move variales to localache1997-07-261-2/+7
| | | | section for SUNIT.
* Exchange whole structures on SUNIT, not unit+flags fields only.ache1997-07-261-6/+6
| | | | | It is needed because if_attach() assumes fixed units order and pass it to ifconfig
* An actual fix for the routing default crashes thatjulian1997-07-181-15/+25
| | | | | | | 1/ is compatible with the old route(1) in case needed. 2/ actually fixes the problem while vetting bad user input. note: I have already fixed route(1) so the problem shouldn't occur. if it does. use 0.0.0.0/0 instead of the word 'default' :)
* Fix Julian's fixed fix. Routing is weird.msmith1997-07-171-3/+6
| | | | | | | We need to accept at least one sockaddr with zero length, in order to be able to set the default route. Suggested by: Phone conversation with Julian (sleep well!)
* Bungled cut/paste leaves kernel with page faults..julian1997-07-161-2/+3
| | | | (read all about it!)
* Finally track down the reason for some of my occasional kernel crashes.julian1997-07-152-3/+24
| | | | | | | Route(1) has a bug that sends a bad message to the kernel. The kernel trusts it and crashes. Add some sanity checks so that we don't trust the user quite as much any more. (also add a comment in if_ethersubr.c)
* Don't add an item to the multicast linked list if it's alreadyjulian1997-07-071-12/+14
| | | | on the list.
* Send these files to the attic until they are in use for several reasons.peter1997-07-053-5944/+0
| | | | | | | | | | | 1: cvs and cvsup don't really support vendor branches other than 1.1.1.x, this is on 1.1.2.x and causing problems in cvsup 'checkout mode', just the same as cvs has problems interpreting dates. (cvs has "1.1.1" hard coded) 2: cvs 'rm'ing them takes them off the vendor branch and should hide the above problems. 3: it's just clutter until the merge is done. 4: if the problem isn't sufficiently resolved by taking these off the vendor branch, the files will have to be nuked and re-imported.
* Initial revisionpeter1997-07-013-0/+5944
|
* Fix this damn mbuf with a negative m_len. It turnsbrian1997-06-222-6/+6
| | | | | | | | | | | | | out to be a problem with VJ header compression. davidg spotted this in usr.sbin/ppp/slcompress.c a while ago, but I believe gave the wrong reasons - it's too easy to reproduce ! The only scenario that I've been able to reproduce the problem under is when m_len is *exactly* 40 ! So go figure ! PR: 3749 Submitted elsewhere by: davidg Obtained from: usr.sbin/ppp/slcompress.c
* Protect against garbage mbufs in pppstart.brian1997-06-181-2/+7
| | | | | | | | Remove previous hack in pppfcs(). This is still not the correct solution. We shouldn't have any incorrect mbufs. This patch does however make pppd/natd work (rather than jamming the interface).
* Add for public examination the beginnings of the per-host cache supportwollman1997-06-182-0/+339
| | | | | which will for the basis of RTF_PRCLONING's more efficient, better- designed replacement.
* As the Tunnel device has no real inherrent MRU limit,julian1997-06-112-2/+5
| | | | | | | | so don't enforce the MTU as an MRU. Allow bidirectional ppp MTU negotiation, by checking against a differnt figure for MRU. Make it large enough for ATM frames at least. Submitted by: archie@whistle.com (archie cobbs)
* Prevent panic with garbage mbuf.brian1997-06-091-2/+2
| | | | Submitted by: Lenzi, Sergio <lenzi@bsi.com.br>
* Move interrupt handling code from isa.c to a new file. This should makedfr1997-06-021-2/+2
| | | | | | | isa.c (slightly) more portable and will make my life developing the really portable version much easier. Reviewed by: peter, fsmp
* Bruce mentioned to me that Paul Traina had noticed that the ppp_ttypeter1997-05-312-5/+13
| | | | | | | | | | | | interrupt mask hackery wasn't happening when being modloaded via the if_ppp lkm. It seems that the lkm system doesn't particularly like having two sets of load/unload/etc routines. :-] This really should be fixed by having a seperate if_ppp and ppp_tty lkm, but that requires that ppp_tty is loaded after if_ppp, and needs to be able to link with symbols in if_ppp. This gets messy, it is a better task for the in-kernel linker. (if_ppp is generic, ppp_tty is a tty-specific bottom end for if_ppp, it's not _too_ hard to have another "provider" (such as a hdlc sync card) connected to if_ppp)
* don't refer to SWI_*_MASK, it's not SMP/UP kernel portable for the lkm.peter1997-05-311-4/+3
|
* Fix a couple of log()'s that came out with the wrong (default)joerg1997-05-231-6/+6
| | | | log level, as opposed to LOG_DEBUG.
* Introduce a third queue per interface, serving only PPP controljoerg1997-05-222-17/+44
| | | | | protocol packets. This queue is the only one being enabled until network phase has been reached.
* Major nit: i've confused link0 and link1 in my brain and/or in eitherjoerg1997-05-201-15/+21
| | | | | | | | | the man page or the source file. Fix this. Minor problem: don't choke with ENETDOWN early. As long as our output queue has space, put the IP packets there even if IPCP ain't up yet. We will eventually be able delivering them once the PPP state machine came up.
* Major overhaul of the SyncPPP layer. Basically, this comprises now ajoerg1997-05-192-777/+2033
| | | | | | | | | | | | | | | | | | | | | full implementation of the sate machine as described in RFC1661, and provides support for plugging in various control protocols. I needed this to provide PPP support for the BISDN project (right now). Unfortunatley, while the existing API was almost up to the point, i needed one minor API change in order to decouple the this-layer- started and this-layer-finished actions from the respective Up and Down events of the lower layer. This requires two additional lines in the attach routines of all existing lower layer interface drivers that are using syncPPP (shortcutting these actions and events). Apart from this, i believe i didn't change the API of all this, so everything should plug in without too many hassles. Please report if i broke something in the existing drivers. For a list of features (including new ones like dial-on-demand), and things still to be done, please refer to the man page i'll commit asap. Encouraged by: Serge Vakulenko <vak@cronyx.ru>
* Make sppp's logging human-readable. Also, use log(9), as opposed tojoerg1997-05-111-134/+262
| | | | | | | printf(9), so the log output doesn't clutter the console. While i was at it, KNFified some function definitions. This file was very inconsistent in this respect.
* Use the MAC address of an interface for the host part of an IPX addressjhay1997-05-102-6/+30
| | | | | | and not the MAC address of the first interface for every IPX address. This is more inline with the way others like Novell do it. Originally Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
* merge ATM driverkjc1997-05-091-1/+2
|
* This commit was generated by cvs2svn to compensate for changes in r25603,kjc1997-05-092-0/+521
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * import Chuck Cranor's ATM driverkjc1997-05-092-0/+521
|
* add SIOC{S,G}IFMEDIA ioctl supportpeter1997-05-032-2/+29
|
* Make it compile on FreeBSD, add $Id$peter1997-05-032-3/+5
|
* This commit was generated by cvs2svn to compensate for changes in r25428,peter1997-05-032-0/+781
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Backend support for if_media interface ioctl's. This is for supportingpeter1997-05-032-0/+781
| | | | | | | the many-mode, many-media-option type ethernet cards, in particular, the new if_de. Obtained from: NetBSD (Their implementation of BSDI's design)
* The long-awaited mega-massive-network-code- cleanup. Part I.wollman1997-04-275-209/+336
| | | | | | | | | | | | | | | | | | | | | | | | This commit includes the following changes: 1) Old-style (pr_usrreq()) protocols are no longer supported, the compatibility glue for them is deleted, and the kernel will panic on boot if any are compiled in. 2) Certain protocol entry points are modified to take a process structure, so they they can easily tell whether or not it is possible to sleep, and also to access credentials. 3) SS_PRIV is no more, and with it goes the SO_PRIVSTATE setsockopt() call. Protocols should use the process pointer they are now passed. 4) The PF_LOCAL and PF_ROUTE families have been updated to use the new style, as has the `raw' skeleton family. 5) PF_LOCAL sockets now obey the process's umask when creating a socket in the filesystem. As a result, LINT is now broken. I'm hoping that some enterprising hacker with a bit more time will either make the broken bits work (should be easy for netipx) or dike them out.
* Use LIST macros instead of insque/remquephk1997-04-143-12/+11
|
* Don't include <sys/ioctl.h> in the kernel. Stage 6: includebde1997-03-242-3/+7
| | | | | | | <sys/filio.h>, <sys/sockio.h> and <sys/ttycom.h> instead of <sys/ioctl.h> in a couple of files. This is still only 1/3 as spammish as <sys/ioctl.h> - 5 or 6 old tty ioctl headers aren't needed.
* Don't include <sys/ioctl.h> in the kernel. Stage 4: includebde1997-03-241-2/+3
| | | | | | | | <sys/ttycom.h> and sometimes <sys/filio.h> instead of <sys/ioctl.h> in miscellaneous files. Most of these files have nothing to do with ttys but need to include <sys/ttycom.h> to get the definitions of TIOC[SG]PGRP which are (ab)used to convert F[SG]ETOWN fcntls into ioctls.
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includebde1997-03-246-12/+12
| | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files.
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includebde1997-03-243-6/+3
| | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient.
* Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined.bde1997-03-234-7/+7
| | | | | Fixed everything that depended on getting fcntl.h stuff from the wrong place. Most things don't depend on file.h stuff at all.
* Fix from Matt for the problem described in PR # kern/2990: ``DEC FDDIjoerg1997-03-151-1/+6
| | | | | | | | is a little *too* promiscuous'' Also a 2.2 candidate, again, after testing. Submitted by: Matt Thomas <matt@lkg.dec.com>
* Fixed clist limits. I got them wrong several years ago in rev.1.9bde1997-03-111-5/+5
| | | | | (1994/11/26). Packets with more than approximately 128 0xc0's or 0xdb's in them were untransmittable.
* add a bunch of comments to describe what's going on.julian1997-03-051-16/+123
| | | | | | | This is some of the worst code I've had to wade through in ages and I don't want to have to start from scratch again next time. (I have a 2.2 version of these comments, can I commit them?)
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-2241-41/+41
| | | | ready for it yet.
* Send RTM_IFINFO messages whenever promiscuous and all-multicastwollman1997-02-141-2/+9
| | | | modes are enabled or disabled.
* Implement PRC_IFUP a la PRC_IFDOWN so that protocols know when an interfacewollman1997-02-121-5/+3
| | | | has come bacl up (and can referse actions taken as a result of downing).
* Make sure we have arguments to pass before calling ifaof_ifpforaddrfenner1997-02-041-3/+3
| | | | | | | and ifa_ifwithroute. This eliminates the panic seen in kern/2647, although it doesn't address the fact that RTM_CHANGE can't change flags.
* Fix yet another breakage i've missed when committing rev 1.14. It wasjoerg1997-01-301-1/+1
| | | | | | non-obvious to me since my test kernel didn't run NETATALK. Sorry. LINT should compile again now.
* fix mixleading comment (my error.. I wrote the comment)julian1997-01-261-1/+1
|
* Round #2. This basically brings back the changes from rev 1.12.joerg1997-01-171-1/+9
| | | | | I have only separated both to make it more convenient merging all this into 2.2.
OpenPOWER on IntegriCloud