summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r287654: Add support for PPP-Max-Payload PPPoE tag (RFC4638).mav2015-10-061-0/+13
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* Add constant for PPP-Max-PayLoad tag.glebius2013-07-231-0/+2
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
* Make Netgraph compile with Clang.ed2009-03-031-2/+0
| | | | | | | | | | | | | | | | Clang disallows structs with variable length arrays to be nested inside other structs, because this is in violation with ISO C99. Even though we can keep bugging the LLVM folks about this issue, we'd better just fix our code to not do this. This code seems to be the only code in the entire source tree that does this. I haven't tested this patch by using the kernel modules in question, but Diane Bruce and I have compared disassembled versions of these kernel modules. We would have expected them to be exactly the same, but due to randomness in the register allocator and reordering of instructions, there were some minor differences. Approved by: julian
* Remove some prehistoric never used defines.mav2007-12-261-5/+0
|
* Fix ng_pppoe(4) after turning off "autosrc feature" on ng_ether(4).glebius2006-08-091-1/+2
| | | | | | | | | | | | - Store the Ethernet header in node softc. - Initialize header with dst addr and ethertype in node constructor method. - In node connect method send NGM_ETHER_GET_ENADDR message downwards. - If received reply from ng_ether(4) store the src addr in softc. - Add NGM_PPPOE_SETENDADDR message that allows user to override the address with whatever he/she wants.
* o Introduce D-Link compat mode, that is default to off and can be setglebius2006-01-271-5/+7
| | | | | | | | | | by NGM_PPPOE_SETMODE message. When D-Link compat mode is on, we will broadcast PADI with empty Service-Name to all listening hooks. o Rewrite the compatibility options. Before we had two modes - standard and non-standard (aka 3Com). Now we have standard mode and two compat flags, that can be combined. o Be consistent and do s/STUPID/3COM/g. I don't say that 3Com mode isn't stupid, just want to make code easier to read.
* Use variable-sized arrays where appropriate.ru2005-10-281-3/+3
|
* /* -> /*- for license, minor formatting changesimp2005-01-071-2/+3
|
* When node is server serve both standard RFC2516 and non-standard 3Comglebius2004-07-271-2/+8
| | | | | | | | | | clients simultaneously. When node is client its mode is configured with a control message. sysctl net.graph.nonstandard_pppoe is deprecated but kept for backward compatibility for some time. Approved by: julian
* Make the vaule of PTT_RELAY_SID match the RFC. This should help PPPoEdwmalone2004-03-181-2/+2
| | | | | | | | | users that are working with relayed PPPoE. Submitted by: Bodo Rüskamp <jordbaer@mac.com> PR: 44936 Approved by: julian MFC after: 1 week
* Get rid of the deprecated *LEN constants in favour of the newharti2004-01-261-2/+2
| | | | *SIZ constants that include the trailing \0 byte.
* Use a single style of multiple inclusion protection for Netgraph headers.ru2003-11-111-3/+3
| | | | Reviewed by: archie, harti, emax
* use __packed.alfred2002-09-231-3/+3
|
* Fix GCC warnings caused by initializing a zero length array. In the process,archie2002-05-311-6/+0
| | | | | | | simply things a bit by getting rid of 'struct ng_parse_struct_info' which was useless because it only contained one field. MFC after: 2 weeks
* Add a NGM_PPPOE_SESSIONID message to the ng_pppoe node.brian2002-05-141-1/+2
| | | | | | | This message is sent to the control socket when the SessionID is established. Approved by: archie (after a very cursory glance)
* Send a NGM_PPPOE_ACNAME message to userland when a node is connected.brian2002-02-201-1/+2
| | | | | | Submitted by: Andre Albsmeier <andre@albsmeier.net> Shuffled about by: brian Approved by: julian
* Shuffle sysctls a bit (thankyou whoever made them dynamic for modules)julian2001-02-231-0/+4
| | | | | | | | | | | | and add a sysctl to pppoe to activate non standard ethertypes so that idiot ISPs (apparently in France) who use equipment from idiot suppliers (rumour says 3com) who use nonstandard ethertypes can still connect. "yep, sure we do pppoe, we use a different identifier to that dictated in the standard, but sure it's pppoe!" sysctl -w net.graph.stupid_isp=1 enables the changeover.
* I have no idea at all why this file was not included in the last commit.julian2000-12-121-1/+2
|
* Go back to using data_len in struct ngpppoe_init_data after discussionsbrian2000-11-161-4/+5
| | | | | | | | | | | with Julian and Archie. Implement a new ``sizedstring'' parse type for dealing with field pairs consisting of a uint16_t followed by a data field of that size, and use this to deal with the data_len and data fields. Written by: Archie with some input by me Agreed in principle by: julian
* Change the format of ngpppoe_init_data so that the provider is NULbrian2000-10-311-3/+28
| | | | | | | | | | | terminated and the data_len field is no longer necessary. Add ASCII2BINARY and BINARY2ASCII capabilities. The old format is still understood and dealt with, but can't do the ASCII2BINARY and BINARY2ASCII stuff. Approved by: archie
* Since neither archie nor I work at Whistle any more, change our emailjulian2000-10-241-1/+1
| | | | | | addresses to be the more usefu @freebsd.org ones so we can keep getting bug-reports. - man pages to follow..
* change intial timeout for session negotiation from 1 to 2 seconds.julian1999-12-011-0/+1
| | | | One second was being hit too many times in normal situations.
* Remove a null pointer referencejulian1999-11-091-1/+1
| | | | Submitted by: Brian Somers (brian@freebsd.org)
* Start making the contents of the generic framework opaque to the nodes.julian1999-11-011-2/+2
| | | | | This step: IDs are no-longer the address of the node. Reviewd by: Archie@freebsd.org
* change PPPoE occurences to pppoe. Not JUST a cosmeting change.julian1999-10-271-9/+9
| | | | | some occurrances needed to be the same as the filenmnae which was pppoe not PPPoE.
* Now that Netgraph is in the system there are some cleanups we can do.julian1999-10-231-2/+2
| | | | | | Also save a slightly closer to completion version of the PPPOE code. Submitted by: Archie Cobbs <archie@freebsd.org>
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.julian1999-10-211-0/+224
Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree
OpenPOWER on IntegriCloud