diff options
author | glebius <glebius@FreeBSD.org> | 2006-01-27 10:56:22 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-01-27 10:56:22 +0000 |
commit | ac52c99fe4dea5e12a1c96d5011b3c876e0f3cc2 (patch) | |
tree | 720137857b65b90ab6fdd86b9c713b55f5ef0b56 /sys/netgraph/ng_pppoe.h | |
parent | 28b38f362544b47aa5c8c41b2de6a1ffe01fe9dd (diff) | |
download | FreeBSD-src-ac52c99fe4dea5e12a1c96d5011b3c876e0f3cc2.zip FreeBSD-src-ac52c99fe4dea5e12a1c96d5011b3c876e0f3cc2.tar.gz |
o Introduce D-Link compat mode, that is default to off and can be set
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.
Diffstat (limited to 'sys/netgraph/ng_pppoe.h')
-rw-r--r-- | sys/netgraph/ng_pppoe.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/netgraph/ng_pppoe.h b/sys/netgraph/ng_pppoe.h index 00bf72c..330116b 100644 --- a/sys/netgraph/ng_pppoe.h +++ b/sys/netgraph/ng_pppoe.h @@ -65,7 +65,9 @@ /* Mode names */ #define NG_PPPOE_STANDARD "standard" -#define NG_PPPOE_NONSTANDARD "3Com" +#define NG_PPPOE_3COM "3Com" +#define NG_PPPOE_NONSTANDARD NG_PPPOE_3COM +#define NG_PPPOE_DLINK "D-Link" /********************************************************************** * Netgraph commands understood by this node type. @@ -180,8 +182,8 @@ struct ngpppoe_sts { #define ETHERTYPE_PPPOE_DISC 0x8863 /* pppoe discovery packets */ #define ETHERTYPE_PPPOE_SESS 0x8864 /* pppoe session packets */ -#define ETHERTYPE_PPPOE_STUPID_DISC 0x3c12 /* pppoe discovery packets 3com? */ -#define ETHERTYPE_PPPOE_STUPID_SESS 0x3c13 /* pppoe session packets 3com? */ +#define ETHERTYPE_PPPOE_3COM_DISC 0x3c12 /* pppoe discovery packets 3com? */ +#define ETHERTYPE_PPPOE_3COM_SESS 0x3c13 /* pppoe session packets 3com? */ #else #define PTT_EOL (0x0000) #define PTT_SRV_NAME (0x0101) @@ -196,8 +198,8 @@ struct ngpppoe_sts { #define ETHERTYPE_PPPOE_DISC 0x6388 /* pppoe discovery packets */ #define ETHERTYPE_PPPOE_SESS 0x6488 /* pppoe session packets */ -#define ETHERTYPE_PPPOE_STUPID_DISC 0x123c /* pppoe discovery packets 3com? */ -#define ETHERTYPE_PPPOE_STUPID_SESS 0x133c /* pppoe session packets 3com? */ +#define ETHERTYPE_PPPOE_3COM_DISC 0x123c /* pppoe discovery packets 3com? */ +#define ETHERTYPE_PPPOE_3COM_SESS 0x133c /* pppoe session packets 3com? */ #endif struct pppoe_tag { |