summaryrefslogtreecommitdiffstats
path: root/sys/net/if_spppsubr.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed unused includes.bde1998-06-211-2/+1
|
* s/nanoruntime/nanouptime/gphk1998-05-171-2/+2
| | | | | | s/microruntime/microuptime/g Reviewed by: bde
* Use random() for seq numbers and read_random for CHAP challenge.phk1998-04-061-6/+11
|
* Make read_random() take a (void *) argument instead of (char *)phk1998-04-061-4/+4
|
* Time changes mark 2:phk1998-04-041-4/+6
| | | | | | | | | | | | | | | | | * Figure out UTC relative to boottime. Four new functions provide time relative to boottime. * move "runtime" into struct proc. This helps fix the calcru() problem in SMP. * kill mono_time. * add timespec{add|sub|cmp} macros to time.h. (XXX: These may change!) * nanosleep, select & poll takes long sleeps one day at a time Reviewed by: bde Tested by: ache and others
* Eradicate the variable "time" from the kernel, using various measures.phk1998-03-301-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "time" wasn't a atomic variable, so splfoo() protection were needed around any access to it, unless you just wanted the seconds part. Most uses of time.tv_sec now uses the new variable time_second instead. gettime() changed to getmicrotime(0. Remove a couple of unneeded splfoo() protections, the new getmicrotime() is atomic, (until Bruce sets a breakpoint in it). A couple of places needed random data, so use read_random() instead of mucking about with time which isn't random. Add a new nfs_curusec() function. Mark a couple of bogosities involving the now disappeard time variable. Update ffs_update() to avoid the weird "== &time" checks, by fixing the one remaining call that passwd &time as args. Change profiling in ncr.c to use ticks instead of time. Resolution is the same. Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call hzto() which subtracts time" sequences. Reviewed by: bde
* Fixed syntax error in previous commit.bde1998-03-011-2/+2
|
* Make it possible to indicate that we don't care about the remotephk1998-02-281-3/+6
| | | | sides IP address, as long as it isn't 0.0.0.0
* Staticize.eivind1998-02-091-6/+6
|
* Make INET a proper option.eivind1998-01-081-1/+4
| | | | | | | | | | | | This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-( This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
* Reviewed by: Joerg Wunschgj1998-01-011-10/+3
| | | | | | | | | | | | | | | In sppp_chap_input: 1) in the CHAP_CHALLENGE case don't output the peer's name if it is not what we expected (DEBUG) since it will be printed out in the course of events anyway. 2) in the CHAP_SUCCESS case test whether the peer is required to authenticate himself [(sp->lcp.opts & (1 << LCP_OPT_AUTH_PROTO))], otherwise the state machine may never switch into the network state. I saw this case against 2 different ISPs; they never bothered to authenticate themselves to me. In sppp_pap_input: in the PAP_ACK case do the same as in 2) above for the same reason.
* Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.eivind1997-12-151-1/+3
| | | | | | | | The #ifdef IPXIP in netipx/ipx_if.h is OK (used from ipx_usrreq.c and ifconfig.c only). I also fixed a typo IPXTUNNEL -> IPTUNNEL (and #ifdef'ed out the code inside, as it never could have compiled - doh.)
* Jumbo patch to implement PAP and CHAP for sppp(4). Partially based onjoerg1997-10-111-147/+1454
| | | | | Serge's (Cronyx's) code in the vendor branch. (FR support not yet merged.)
* Update for new callout interface.gibbs1997-09-211-9/+15
|
* Added used #include - don't depend on <sys/mbuf.h> includingbde1997-09-021-1/+2
| | | | <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags).
* 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.
* 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-221-16/+42
| | | | | 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-191-759/+1971
| | | | | | | | | | | | | | | | | | | | | 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.
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includebde1997-03-241-2/+2
| | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Convert the interface address and IP interface address structureswollman1996-12-131-2/+3
| | | | | | to TAILQs. Fix places which referenced these for no good reason that I can see (the references remain, but were fixed to compile again; they are still questionable).
* Get rid of the ifdef MULTICAST's. I think the rest of the kernel got ridjhay1996-08-301-3/+1
| | | | of them 2 years ago.
* Add $Id$gpalmer1996-06-101-0/+2
|
* Change the use if ifnet.if_lastchange to be more in line withgpalmer1996-06-101-2/+0
| | | | | SNMP requirements. Update description of ifnet.if_lastchange in if.h to indicate this.
* Another mega commit to staticize things.phk1995-12-141-30/+47
|
* Implement some rudimentry IPX support...peter1995-11-281-2/+18
|
* If a lcp configure request is received in the lcp opened state and itpeter1995-11-211-24/+28
| | | | | | | | | | | | | is acknowledged, it should go to the lcp ack sent state. Don't reply on lcp echo requests when not in the lcp opened state. If the interface is set to CISCO mode, it should still be marked running when ifconfiged. Fixed a few indentations that had gone wrong somewhere. Submitted-by: John.Hay@csir.co.za
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-261-0/+11
| | | | | | | | | | | | | | | | | | | | | 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
* This upgrades the driver for Cronyx-Sigma multiplexor boardsjkh1995-10-041-232/+337
| | | | | from version 1.2 to version 1.9. Submitted by: Serge Vakulenko, <vak@cronyx.ru>
* Fix -Wformat warnings from LINT kernel.rgrimes1995-05-111-3/+4
|
* Nuke some more compiler warnings, while I'm at it..jkh1995-02-151-16/+16
|
* Add support for two separate cloning flags, one set by the lower layers,wollman1994-12-131-0/+1
| | | | | | | | | | | | | | | | | and one set by the protocol family. Also add another parameter to rtalloc1() to allow for any interface flags to be ignored; currently this is only useful for RTF_PRCLONING. Get rid of rt_prflags and re-unite with rt_flags. Add T/TCP ``route metrics''. NB: YOU MUST RECOMPILE `route' AND OTHER RELATED PROGRAMS AS A RESULT OF THIS CHANGE. This also adds a new interface parameter, `ifi_physical', which will eventually replace IFF_ALTPHYS as the mechanism for specifying the particular physical connection desired on a multiple-connection card. NB: YOU MUST RECOMPILE `ifconfig' AND OTHER RELATED PROGRAMS AS A RESULT OF THIS CHANGE.
* Fix bogus include paths:bde1994-12-041-2/+2
| | | | | <systm.h> is <sys/systm.h>. <kernel.h> is <sys/kernel.h>.
* Cronyx/Sigma sync/async serial driver with PPP supportwollman1994-12-021-0/+1219
from Serge Vakulenko
OpenPOWER on IntegriCloud