ng_ether.h (64358) | ng_ether.h (64653) |
---|---|
1 2/* 3 * ng_ether.h 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@whistle.com> 38 * | 1 2/* 3 * ng_ether.h 4 * 5 * Copyright (c) 1996-1999 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@whistle.com> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_ether.h 64358 2000-08-07 18:52:26Z archie $ | 39 * $FreeBSD: head/sys/netgraph/ng_ether.h 64653 2000-08-15 01:05:50Z archie $ |
40 * $Whistle: ng_ether.h,v 1.1 1999/02/02 03:17:22 julian Exp $ 41 */ 42 43#ifndef _NETGRAPH_NG_ETHER_H_ 44#define _NETGRAPH_NG_ETHER_H_ 45 46/* Node type name and magic cookie */ 47#define NG_ETHER_NODE_TYPE "ether" | 40 * $Whistle: ng_ether.h,v 1.1 1999/02/02 03:17:22 julian Exp $ 41 */ 42 43#ifndef _NETGRAPH_NG_ETHER_H_ 44#define _NETGRAPH_NG_ETHER_H_ 45 46/* Node type name and magic cookie */ 47#define NG_ETHER_NODE_TYPE "ether" |
48#define NGM_ETHER_COOKIE 917786905 | 48#define NGM_ETHER_COOKIE 917786906 |
49 50/* Hook names */ 51#define NG_ETHER_HOOK_LOWER "lower" /* connection to raw device */ 52#define NG_ETHER_HOOK_UPPER "upper" /* connection to upper layers */ 53#define NG_ETHER_HOOK_DIVERT "divert" /* alias for lower */ 54#define NG_ETHER_HOOK_ORPHAN "orphans" /* like lower, unknowns only */ 55 56/* Netgraph control messages */ 57enum { 58 NGM_ETHER_GET_IFNAME = 1, /* get the interface name */ 59 NGM_ETHER_GET_IFINDEX, /* get the interface global index # */ 60 NGM_ETHER_GET_ENADDR, /* get Ethernet address */ | 49 50/* Hook names */ 51#define NG_ETHER_HOOK_LOWER "lower" /* connection to raw device */ 52#define NG_ETHER_HOOK_UPPER "upper" /* connection to upper layers */ 53#define NG_ETHER_HOOK_DIVERT "divert" /* alias for lower */ 54#define NG_ETHER_HOOK_ORPHAN "orphans" /* like lower, unknowns only */ 55 56/* Netgraph control messages */ 57enum { 58 NGM_ETHER_GET_IFNAME = 1, /* get the interface name */ 59 NGM_ETHER_GET_IFINDEX, /* get the interface global index # */ 60 NGM_ETHER_GET_ENADDR, /* get Ethernet address */ |
61 NGM_ETHER_SET_ENADDR, /* set Ethernet address */ 62 NGM_ETHER_GET_PROMISC, /* get node's promiscuous mode bit */ |
|
61 NGM_ETHER_SET_PROMISC, /* enable/disable promiscuous mode */ | 63 NGM_ETHER_SET_PROMISC, /* enable/disable promiscuous mode */ |
64 NGM_ETHER_GET_AUTOSRC, /* get source address override */ |
|
62 NGM_ETHER_SET_AUTOSRC, /* enable/disable src addr override */ 63}; 64 65#endif /* _NETGRAPH_NG_ETHER_H_ */ 66 | 65 NGM_ETHER_SET_AUTOSRC, /* enable/disable src addr override */ 66}; 67 68#endif /* _NETGRAPH_NG_ETHER_H_ */ 69 |