The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 18 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 19 | struct 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 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 27 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 28 | #define sipx_special sipx_port |
| 29 | #define sipx_action sipx_zero |
| 30 | #define IPX_DLTITF 0 |
| 31 | #define IPX_CRTITF 1 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 32 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 33 | struct ipx_route_definition { |
| 34 | __u32 ipx_network; |
| 35 | __u32 ipx_router_network; |
| 36 | unsigned char ipx_router_node[IPX_NODE_LEN]; |
| 37 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 38 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 39 | struct 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 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 55 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 56 | struct ipx_config_data { |
| 57 | unsigned char ipxcfg_auto_select_primary; |
| 58 | unsigned char ipxcfg_auto_create_interfaces; |
| 59 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 60 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 61 | struct 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 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 73 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 74 | #define SIOCAIPXITFCRT (SIOCPROTOPRIVATE) |
| 75 | #define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1) |
| 76 | #define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2) |
| 77 | #define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3) |
| 78 | #endif |