summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sppp.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use timeout_add_sec(9)kn2019-06-241-2/+2
| | | | | | | | | | Re-challenge timeouts are made up of single scalar factors which are multiplied with the time unit lcp.timeout to compute the timeout period. Simply reduce that unit of 1 * hz [ticks] to 1 [s] and use the appropiate API. OK mpi
* A space here, a space there. Soon we're talking real whitespacekrw2017-01-241-4/+4
| | | | rectification.
* Don't hardcode vlan/queue priority for pppoe packets; inherit it from thesthen2016-06-141-2/+1
| | | | | | new "llprio" setting on the pppoe(4) interface instead. Tested by Daniel Gillen and myself, ok mikeb
* Set pppoe(4) control frames to high (NC, "network control")sthen2016-05-301-1/+2
| | | | | | | | | | | | | | | priority. This is translated into an 802.1p priority tag when sent over a vlan interface, reducing the risk of them being crowded out by data packets on a busy link. Some users have problems with ISPs that place specific requirements on vlan priority (typically the packet header value must be '0', relating to priority 1). This diff doesn't fix that yet, but gives a single place to patch to change tags on control packets without affecting normal vlan priority operation on other interfaces. ok mikeb.
* replace the ifqueue used for the pp_cpq with an mbuf_queue.dlg2015-11-111-2/+2
|
* sppp_pick is unused, it can go away.dlg2015-11-021-2/+1
|
* remove cisco hdlc code from sppp(4), it's no longer used - pppoe(4) only usessthen2015-09-301-4/+4
| | | | | ppp framing, and the drivers for sync serial cards have been removed so the sppp code is now only used to support pppoe(4). ok mpi@, kill it chris@
* Convert sppp(4) to taskq; ok mikeb@ mpi@stsp2013-11-201-3/+14
|
* Improvements for address assignment and related issues in IPv6CP.stsp2013-11-141-3/+3
| | | | | | | | | | | | | Move address assignment to process context. This uses a workq at present, conversion to taskq is on my todo list (discussed with dlg). Instead of rummaging around in sockaddr_in6 structs, use the proper netinet6 APIs to configure addresses. Deal with IFID collisions instead of ignoring them. The whole point of IPv6CP is to avoid IFID collisions. Use arc4random() during IFID generation. Assign destination address to /128 point-to-point links. tested by me and sthen with pppoe(4) ok sthen
* Change the structure used in the SPPPIOSDEFS and SPPPIOGDEFS ioctlsmpi2013-07-101-52/+54
| | | | | | | | | | to only include what is really needed. In particular stop including a "struct ifnet" and move kernel-only definition into the proper #if dance. While here remove the unused spppinfo() from ifconfig. ok guenther@, sthen@, mikeb@
* Remove fastq from struct sppp. Missed when I committed if_spppsubr.c r1.96,sthen2012-01-291-2/+1
| | | | pointed out / ok mikeb@
* Fix a commentclaudio2011-11-121-2/+2
| | | | From Abel Abraham Camarillo Ojeda, reminded by Brad.
* Allow username and password to be up to 255 characters in length.canacar2009-02-161-8/+22
| | | | | Tested by many, thanks. Put it in" deraadt@
* Remove bogus casts of integer constants SPPPIO[GS]DEFS to caddr_tgrange2009-02-061-4/+4
| | | | | | and fix typo while here. ok canacar@
* 1500 is a 'magic number' in the protocol that all implementationsclaudio2007-12-041-2/+3
| | | | | | | | must be able to handle as MRU but while testing pppoe(4) against a pppoe(8) server I figured out that pppoe(8) insists on a MRU 1492. Because of this we allow the offered MRU to be between PP_MIN_MRU and PP_MAX_MRU especially because the MRU is not used at all as long as it is smaller then PP_MAX_MRU. OK canacar@
* IPv6 support for sppp layer, based on NetBSD version.canacar2007-09-051-3/+7
| | | | ok claudio@
* Add support for setting the address of the ppp peer.mpf2007-04-171-1/+6
| | | | | | | | | | | | | | | Use the proper in_ifscrub() / in_ifinit() calls for address changes to generate routing messages. The correct way to set the default route now needs the -ifp option, e.g. route add default -ifp pppoe0 0.0.0.1 Since the route is set right after bringing the interface up, it still works w/out -ifp though. Changes mostly from NetBSD. Tested by Matthias Bauer and bluhm@ OK canacar@
* Another gem from the the-world-runs-on-i386 departement. Using u_long inclaudio2006-02-241-3/+3
| | | | | | a packet format causes some troubles on 64bit archs. This fixes a sppp(4) panic I got on alpha and makes cisco HDLC mode actually work. More cleanup needs to be done post 3.9. OK brad@ looks good canacar@
* Merge some sppp improvements from NetBSD:canacar2005-03-231-1/+3
| | | | | | | | 1. better timeout and keepalive handling 2. fix some memory leaks on error paths. 3. use arc4random instead of random 4. always send keepalives in cHDLC mode, from claudio@ Tested by Greg Mortensen (san) and jmc@ (pppoe), ok claudio@
* Unslack and increase AUTHNAMELEN, since some ISP's prefer long usernames.canacar2005-01-081-2/+2
| | | | Reported long time ago by Marc Huber and more recently by Steffen Schutz.
* In kernel pppoe client, a simple IPv4 only implementation.canacar2004-11-281-3/+6
| | | | | | Initial porting from NetBSD by David Berghoff. Modified/simplified to match our sppp implementation. ok deraadt@
* BSD-style license from Serge Vakulenko <vak@cronyx.ru>chris2002-09-261-6/+19
|
* More lame OpenBSD tags.fgsch2001-07-091-0/+1
|
* By popular demand, protect from multiple inclusion, and fix to use theangelos2001-06-091-18/+6
| | | | same naming style.
* new timeoutsmickey2001-03-221-0/+7
|
* SIOCSIFGENERIC is now in sys/sockio.hchris2000-04-261-7/+0
|
* lmc driver; ported by chris@dqc.orgderaadt1999-07-011-0/+193