summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-08-09 09:56:58 +0000
committerglebius <glebius@FreeBSD.org>2006-08-09 09:56:58 +0000
commit95f39eebb51f2edc9b4d476a4b76f25de69090d2 (patch)
tree19a1d3cb340cd5f27c67143cbd40e332ad02dc91 /sys/netgraph/ng_pppoe.h
parentb539048d28637b71f82e1b7ed24d755124c5b517 (diff)
downloadFreeBSD-src-95f39eebb51f2edc9b4d476a4b76f25de69090d2.zip
FreeBSD-src-95f39eebb51f2edc9b4d476a4b76f25de69090d2.tar.gz
Fix ng_pppoe(4) after turning off "autosrc feature" on ng_ether(4).
- 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.
Diffstat (limited to 'sys/netgraph/ng_pppoe.h')
-rw-r--r--sys/netgraph/ng_pppoe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_pppoe.h b/sys/netgraph/ng_pppoe.h
index 330116b..ca0c0f0 100644
--- a/sys/netgraph/ng_pppoe.h
+++ b/sys/netgraph/ng_pppoe.h
@@ -85,8 +85,9 @@ enum cmd {
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_SETMODE = 12, /* set to standard or 3Com mode */
+ NGM_PPPOE_SETMODE = 12, /* set to standard or compat modes */
NGM_PPPOE_GETMODE = 13, /* see current mode */
+ NGM_PPPOE_SETENADDR = 14, /* set Ethernet address */
};
/***********************
OpenPOWER on IntegriCloud