1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12#ifndef _IPX_H_ 13#define _IPX_H_ 14#include <linux/sockios.h> 15#include <linux/socket.h> 16#define IPX_NODE_LEN 6 17#define IPX_MTU 576 18 19struct sockaddr_ipx { 20 sa_family_t sipx_family; 21 __u16 sipx_port; 22 __u32 sipx_network; 23 unsigned char sipx_node[IPX_NODE_LEN]; 24 __u8 sipx_type; 25 unsigned char sipx_zero; 26}; 27 28#define sipx_special sipx_port 29#define sipx_action sipx_zero 30#define IPX_DLTITF 0 31#define IPX_CRTITF 1 32 33struct ipx_route_definition { 34 __u32 ipx_network; 35 __u32 ipx_router_network; 36 unsigned char ipx_router_node[IPX_NODE_LEN]; 37}; 38 39struct ipx_interface_definition { 40 __u32 ipx_network; 41 unsigned char ipx_device[16]; 42 unsigned char ipx_dlink_type; 43#define IPX_FRAME_NONE 0 44#define IPX_FRAME_SNAP 1 45#define IPX_FRAME_8022 2 46#define IPX_FRAME_ETHERII 3 47#define IPX_FRAME_8023 4 48#define IPX_FRAME_TR_8022 5 49 unsigned char ipx_special; 50#define IPX_SPECIAL_NONE 0 51#define IPX_PRIMARY 1 52#define IPX_INTERNAL 2 53 unsigned char ipx_node[IPX_NODE_LEN]; 54}; 55 56struct ipx_config_data { 57 unsigned char ipxcfg_auto_select_primary; 58 unsigned char ipxcfg_auto_create_interfaces; 59}; 60 61struct ipx_route_def { 62 __u32 ipx_network; 63 __u32 ipx_router_network; 64#define IPX_ROUTE_NO_ROUTER 0 65 unsigned char ipx_router_node[IPX_NODE_LEN]; 66 unsigned char ipx_device[16]; 67 unsigned short ipx_flags; 68#define IPX_RT_SNAP 8 69#define IPX_RT_8022 4 70#define IPX_RT_BLUEBOOK 2 71#define IPX_RT_ROUTED 1 72}; 73 74#define SIOCAIPXITFCRT (SIOCPROTOPRIVATE) 75#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1) 76#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2) 77#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3) 78#endif 79