summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typo that becomes apparent when compiling without COMPAT_443.joerg1997-09-071-2/+2
| | | | Submitted by: Tony Kimball <Anthony.Kimball@East.Sun.COM>
* Some staticized variables were still declared to be extern.bde1997-09-071-5/+3
|
* Some staticized variables were still declared to be extern.bde1997-09-071-2/+1
|
* Added used #include - don't depend on <sys/mbuf.h> includingbde1997-09-028-8/+16
| | | | <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags).
* Removed unused #includes.bde1997-09-011-2/+1
|
* Add a per-interface-address pointer to a function that can be suppliedjulian1997-08-282-3/+18
| | | | | | | | | | | | by a protocol, to detirmine if an address matches the net this address is part of. This is needed by protocols for which netmasks "just don't work", for example appletalk. Also add the code in appletalk to make use of this new feature. Thsi fixes one of the longest standing bugs in appletalk. The inability to talk to machines to which the path is via a router which is on a different net, but the same netrange, as your interface. Protocols that do not supply this function (e.g. IP) should not be affected.
* add some comments while trying to understand why appletalkjulian1997-08-221-4/+36
| | | | | gets some things wrong. (part of my continuing "comment it as you understand it" effort :)
* Some fixes from Bruce:peter1997-08-222-8/+10
| | | | | | | | - don't access time (a volatile) via struct copy. - merge botches - note risk of CCOUNT accessing *tp outside spltty(). Submitted by: bde
* Remove some stray extra prototypespeter1997-08-191-7/+1
|
* Use two NetBSD-style options (PPP_DEFLATE and PPP_BSDCOMP) to controlpeter1997-08-191-4/+6
| | | | whether or not to compile the two ppp compression methods.
* Update kernel parts of pppd from 2.2.0 to 2.3.0. I've yet to look at thepeter1997-08-1912-340/+6492
| | | | | | | | | | 2.3.0 -> 2.3.1 changes, but I seem to recall that there are certain "issues" with 2.3.1 (I'm not sure if it's just pppd or the whole lot, I am not quite that far). The present pppd seems to work with it just fine for the time being. Among the changes are that zlib (aka LZ77 aka deflate aka gzip) compression is implemented as well as the original compress(1) LZW style.
* Fix all areas of the system (or at least all those in LINT) to avoid storingwollman1997-08-162-19/+15
| | | | | | | | socket addresses in mbufs. (Socket buffers are the one exception.) A number of kernel APIs needed to get fixed in order to make this happen. Also, fix three protocol families which kept PCBs in mbufs to not malloc them instead. Delete some old compatibility cruft while we're at it, and add some new routines in the in_cksum family.
* SUNIT: exchange up/down states tooache1997-08-131-1/+7
|
* Fix a traceroute problem in the CISCO HDLC mode. (cisco routers notkjc1997-08-121-2/+2
| | | | | | | | | | returning ICMP_TIMXCEED) use CISCO_UNICAST instead of CISCO_MULTICAST to send normal packets. this is needed for packets to get processed by a cisco router, but doesn't matter if a packet is just forwarded. Reviewed by:itojun@itojun.org
* Implement the LCP fail_counter: if an option has been NAK'ed for morejoerg1997-08-101-4/+13
| | | | | | | | | than max_failures attempts, we are going to REJ it, to prevent endless NAK loops. (This is actually part of a larger local set of modifications i'm running with, but the remainder (PAP & CHAP) ain't ready for prime- time yet.)
* PR: kern/4117itojun1997-08-061-2/+2
| | | | | | Reviewed by: ishii@csl.sony.co.jp, kjc@csl.sony.co.jp checked with FreeBSD+Riscom - cisco4500 configuration.
* Removed unused #includes.bde1997-08-029-68/+8
|
* 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)
OpenPOWER on IntegriCloud