diff options
author | glebius <glebius@FreeBSD.org> | 2004-07-27 19:47:13 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2004-07-27 19:47:13 +0000 |
commit | 1a3245e3ca370fa98c56cc95489502e21729ea3b (patch) | |
tree | d9b10c920b8a87413f553c675b6c254edaf73a0e /sys/netgraph/ng_pppoe.h | |
parent | 1a23ddfc9e22a542953d1a0b8984b35ea9760dcf (diff) | |
download | FreeBSD-src-1a3245e3ca370fa98c56cc95489502e21729ea3b.zip FreeBSD-src-1a3245e3ca370fa98c56cc95489502e21729ea3b.tar.gz |
When node is server serve both standard RFC2516 and non-standard 3Com
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
Diffstat (limited to 'sys/netgraph/ng_pppoe.h')
-rw-r--r-- | sys/netgraph/ng_pppoe.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/netgraph/ng_pppoe.h b/sys/netgraph/ng_pppoe.h index 9e09d0c..892d655 100644 --- a/sys/netgraph/ng_pppoe.h +++ b/sys/netgraph/ng_pppoe.h @@ -49,7 +49,7 @@ /* Node type name. This should be unique among all netgraph node types */ #define NG_PPPOE_NODE_TYPE "pppoe" -#define NGM_PPPOE_COOKIE 939032003 +#define NGM_PPPOE_COOKIE 1089893072 /* Number of active sessions we can handle */ #define PPPOE_NUM_SESSIONS 16 /* for now */ @@ -62,6 +62,10 @@ #define NG_PPPOE_HOOK_C_LEADIN "client" /* Connect message starts this */ #define NG_PPPOE_HOOK_DEBUG "debug" +/* Mode names */ +#define NG_PPPOE_STANDARD "standard" +#define NG_PPPOE_NONSTANDARD "3Com" + /********************************************************************** * Netgraph commands understood by this node type. * FAIL, SUCCESS, CLOSE and ACNAME are sent by the node rather than received. @@ -77,7 +81,9 @@ enum cmd { NGM_PPPOE_SERVICE = 8, /* additional Service to advertise (in PADO) */ NGM_PPPOE_ACNAME = 9, /* AC_NAME for informational purposes */ NGM_PPPOE_GET_STATUS = 10, /* data in/out */ - NGM_PPPOE_SESSIONID = 11 /* Session_ID for informational purposes */ + NGM_PPPOE_SESSIONID = 11, /* Session_ID for informational purposes */ + NGM_PPPOE_SETMODE = 12, /* set to standard or 3Com mode */ + NGM_PPPOE_GETMODE = 13, /* see current mode */ }; /*********************** |