aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_pppoe.h
Commit message (Collapse)AuthorAgeFilesLines
* net: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-2/+0
| | | | Notes: svn path=/head/; revision=365071
* ng_pppoe(8): add support for user-supplied Host-Uniq tag.Eugene Grosbein2018-02-141-1/+19
| | | | | | | | | | | | | | | | | | | | | A few ISP filter PADI requests based on such tag, to force the use of their own routers. The custom Host-Uniq tag is passed in the NGM_PPPOE_CONNECT control message, so it can be used with FreeBSD ppp(8) and mpd without any other change. Add support to send and receive PADM messages, HURL and MOTM, often used by service providers to provide ACS information and other configuration settings to the user CPE. Submitted by: ale Approved by: mav (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D9270 Notes: svn path=/head/; revision=329279
* Add support for PPP-Max-Payload PPPoE tag (RFC4638).Alexander Motin2015-09-111-0/+13
| | | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=287654
* Add constant for PPP-Max-PayLoad tag.Gleb Smirnoff2013-07-231-0/+2
| | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com> Notes: svn path=/head/; revision=253564
* Make Netgraph compile with Clang.Ed Schouten2009-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 Notes: svn path=/head/; revision=189315
* Remove some prehistoric never used defines.Alexander Motin2007-12-261-5/+0
| | | | Notes: svn path=/head/; revision=174929
* Fix ng_pppoe(4) after turning off "autosrc feature" on ng_ether(4).Gleb Smirnoff2006-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. Notes: svn path=/head/; revision=161117
* o Introduce D-Link compat mode, that is default to off and can be setGleb Smirnoff2006-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. Notes: svn path=/head/; revision=154901
* Use variable-sized arrays where appropriate.Ruslan Ermilov2005-10-281-3/+3
| | | | Notes: svn path=/head/; revision=151800
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-2/+3
| | | | Notes: svn path=/head/; revision=139823
* When node is server serve both standard RFC2516 and non-standard 3ComGleb Smirnoff2004-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 Notes: svn path=/head/; revision=132703
* Make the vaule of PTT_RELAY_SID match the RFC. This should help PPPoEDavid Malone2004-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 Notes: svn path=/head/; revision=127169
* Get rid of the deprecated *LEN constants in favour of the newHartmut Brandt2004-01-261-2/+2
| | | | | | | *SIZ constants that include the trailing \0 byte. Notes: svn path=/head/; revision=125028
* Use a single style of multiple inclusion protection for Netgraph headers.Ruslan Ermilov2003-11-111-3/+3
| | | | | | | Reviewed by: archie, harti, emax Notes: svn path=/head/; revision=122481
* use __packed.Alfred Perlstein2002-09-231-3/+3
| | | | Notes: svn path=/head/; revision=103870
* Fix GCC warnings caused by initializing a zero length array. In the process,Archie Cobbs2002-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 Notes: svn path=/head/; revision=97685
* Add a NGM_PPPOE_SESSIONID message to the ng_pppoe node.Brian Somers2002-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) Notes: svn path=/head/; revision=96578
* Send a NGM_PPPOE_ACNAME message to userland when a node is connected.Brian Somers2002-02-201-1/+2
| | | | | | | | | Submitted by: Andre Albsmeier <andre@albsmeier.net> Shuffled about by: brian Approved by: julian Notes: svn path=/head/; revision=90973
* Shuffle sysctls a bit (thankyou whoever made them dynamic for modules)Julian Elischer2001-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. Notes: svn path=/head/; revision=72946
* I have no idea at all why this file was not included in the last commit.Julian Elischer2000-12-121-1/+2
| | | | Notes: svn path=/head/; revision=69934
* Go back to using data_len in struct ngpppoe_init_data after discussionsBrian Somers2000-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 Notes: svn path=/head/; revision=68845
* Change the format of ngpppoe_init_data so that the provider is NULBrian Somers2000-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 Notes: svn path=/head/; revision=68031
* Since neither archie nor I work at Whistle any more, change our emailJulian Elischer2000-10-241-1/+1
| | | | | | | | | addresses to be the more usefu @freebsd.org ones so we can keep getting bug-reports. - man pages to follow.. Notes: svn path=/head/; revision=67506
* change intial timeout for session negotiation from 1 to 2 seconds.Julian Elischer1999-12-011-0/+1
| | | | | | | One second was being hit too many times in normal situations. Notes: svn path=/head/; revision=53979
* Remove a null pointer referenceJulian Elischer1999-11-091-1/+1
| | | | | | | Submitted by: Brian Somers (brian@freebsd.org) Notes: svn path=/head/; revision=53042
* Start making the contents of the generic framework opaque to the nodes.Julian Elischer1999-11-011-2/+2
| | | | | | | | This step: IDs are no-longer the address of the node. Reviewd by: Archie@freebsd.org Notes: svn path=/head/; revision=52722
* change PPPoE occurences to pppoe. Not JUST a cosmeting change.Julian Elischer1999-10-271-9/+9
| | | | | | | | some occurrances needed to be the same as the filenmnae which was pppoe not PPPoE. Notes: svn path=/head/; revision=52562
* Now that Netgraph is in the system there are some cleanups we can do.Julian Elischer1999-10-231-2/+2
| | | | | | | | | Also save a slightly closer to completion version of the PPPOE code. Submitted by: Archie Cobbs <archie@freebsd.org> Notes: svn path=/head/; revision=52441
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.Julian Elischer1999-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 Notes: svn path=/head/; revision=52419