ng_iface.h (4cf49a43559ed9fdad601bdcccd2c55963008675) | ng_iface.h (15ba31b9ad22b90fbf4849f51de9bf8dcf794264) |
---|---|
1 2/* 3 * ng_iface.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 --- 31 unchanged lines hidden (view full) --- 40 * $Whistle: ng_iface.h,v 1.5 1999/01/20 00:22:13 archie Exp $ 41 */ 42 43#ifndef _NETGRAPH_IFACE_H_ 44#define _NETGRAPH_IFACE_H_ 45 46/* Node type name and magic cookie */ 47#define NG_IFACE_NODE_TYPE "iface" | 1 2/* 3 * ng_iface.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 --- 31 unchanged lines hidden (view full) --- 40 * $Whistle: ng_iface.h,v 1.5 1999/01/20 00:22:13 archie Exp $ 41 */ 42 43#ifndef _NETGRAPH_IFACE_H_ 44#define _NETGRAPH_IFACE_H_ 45 46/* Node type name and magic cookie */ 47#define NG_IFACE_NODE_TYPE "iface" |
48#define NGM_IFACE_COOKIE 858821772 | 48#define NGM_IFACE_COOKIE 858821773 |
49 50/* Interface base name */ 51#define NG_IFACE_IFACE_NAME "ng" 52#define NG_IFACE_IFACE_NAME_MAX 15 53 54/* My hook names */ 55#define NG_IFACE_HOOK_INET "inet" | 49 50/* Interface base name */ 51#define NG_IFACE_IFACE_NAME "ng" 52#define NG_IFACE_IFACE_NAME_MAX 15 53 54/* My hook names */ 55#define NG_IFACE_HOOK_INET "inet" |
56#define NG_IFACE_HOOK_INET6 "inet6" |
|
56#define NG_IFACE_HOOK_ATALK "atalk" /* AppleTalk phase 2 */ 57#define NG_IFACE_HOOK_IPX "ipx" | 57#define NG_IFACE_HOOK_ATALK "atalk" /* AppleTalk phase 2 */ 58#define NG_IFACE_HOOK_IPX "ipx" |
59#define NG_IFACE_HOOK_ATM "atm" 60#define NG_IFACE_HOOK_NATM "natm" |
|
58#define NG_IFACE_HOOK_NS "ns" 59 60/* MTU bounds */ 61#define NG_IFACE_MTU_MIN 72 62#define NG_IFACE_MTU_MAX 65535 63#define NG_IFACE_MTU_DEFAULT 1500 64 65/* Netgraph commands */ 66enum { 67 NGM_IFACE_GET_IFNAME = 1, /* returns struct ng_iface_ifname */ | 61#define NG_IFACE_HOOK_NS "ns" 62 63/* MTU bounds */ 64#define NG_IFACE_MTU_MIN 72 65#define NG_IFACE_MTU_MAX 65535 66#define NG_IFACE_MTU_DEFAULT 1500 67 68/* Netgraph commands */ 69enum { 70 NGM_IFACE_GET_IFNAME = 1, /* returns struct ng_iface_ifname */ |
68 NGM_IFACE_GET_IFADDRS, /* returns list of addresses */ | 71 NGM_IFACE_POINT2POINT, 72 NGM_IFACE_BROADCAST, |
69}; 70 71struct ng_iface_ifname { 72 char ngif_name[NG_IFACE_IFACE_NAME_MAX + 1]; 73}; 74 75#endif /* _NETGRAPH_IFACE_H_ */ | 73}; 74 75struct ng_iface_ifname { 76 char ngif_name[NG_IFACE_IFACE_NAME_MAX + 1]; 77}; 78 79#endif /* _NETGRAPH_IFACE_H_ */ |