diff options
author | archie <archie@FreeBSD.org> | 2000-08-15 01:05:50 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-08-15 01:05:50 +0000 |
commit | d826d6c208f3cdd33a7a9e1b9f534515a595be56 (patch) | |
tree | 930f7a36c9bdd683848c0790d1a10160a35acf51 /sys/netgraph/ng_ether.h | |
parent | 99a91bd0c26b2f7b5c04ac078ddedd9550f164e8 (diff) | |
download | FreeBSD-src-d826d6c208f3cdd33a7a9e1b9f534515a595be56.zip FreeBSD-src-d826d6c208f3cdd33a7a9e1b9f534515a595be56.tar.gz |
Add three more control messages to complement their opposites:
NGM_ETHER_SET_ENADDR, NGM_ETHER_GET_PROMISC, and NGM_ETHER_GET_AUTOSRC.
Alter parsing algorithm so the EN address really looks like one.
Diffstat (limited to 'sys/netgraph/ng_ether.h')
-rw-r--r-- | sys/netgraph/ng_ether.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ether.h b/sys/netgraph/ng_ether.h index c8cbf1f..1d20b64 100644 --- a/sys/netgraph/ng_ether.h +++ b/sys/netgraph/ng_ether.h @@ -45,7 +45,7 @@ /* Node type name and magic cookie */ #define NG_ETHER_NODE_TYPE "ether" -#define NGM_ETHER_COOKIE 917786905 +#define NGM_ETHER_COOKIE 917786906 /* Hook names */ #define NG_ETHER_HOOK_LOWER "lower" /* connection to raw device */ @@ -58,7 +58,10 @@ enum { NGM_ETHER_GET_IFNAME = 1, /* get the interface name */ NGM_ETHER_GET_IFINDEX, /* get the interface global index # */ NGM_ETHER_GET_ENADDR, /* get Ethernet address */ + NGM_ETHER_SET_ENADDR, /* set Ethernet address */ + NGM_ETHER_GET_PROMISC, /* get node's promiscuous mode bit */ NGM_ETHER_SET_PROMISC, /* enable/disable promiscuous mode */ + NGM_ETHER_GET_AUTOSRC, /* get source address override */ NGM_ETHER_SET_AUTOSRC, /* enable/disable src addr override */ }; |