diff options
Diffstat (limited to 'include/uapi/linux/ipx.h')
| -rw-r--r-- | include/uapi/linux/ipx.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/uapi/linux/ipx.h b/include/uapi/linux/ipx.h index 3d48014cdd71..30f031db12f6 100644 --- a/include/uapi/linux/ipx.h +++ b/include/uapi/linux/ipx.h | |||
| @@ -1,11 +1,13 @@ | |||
| 1 | #ifndef _IPX_H_ | 1 | #ifndef _IPX_H_ |
| 2 | #define _IPX_H_ | 2 | #define _IPX_H_ |
| 3 | #include <linux/libc-compat.h> /* for compatibility with glibc netipx/ipx.h */ | ||
| 3 | #include <linux/types.h> | 4 | #include <linux/types.h> |
| 4 | #include <linux/sockios.h> | 5 | #include <linux/sockios.h> |
| 5 | #include <linux/socket.h> | 6 | #include <linux/socket.h> |
| 6 | #define IPX_NODE_LEN 6 | 7 | #define IPX_NODE_LEN 6 |
| 7 | #define IPX_MTU 576 | 8 | #define IPX_MTU 576 |
| 8 | 9 | ||
| 10 | #if __UAPI_DEF_SOCKADDR_IPX | ||
| 9 | struct sockaddr_ipx { | 11 | struct sockaddr_ipx { |
| 10 | __kernel_sa_family_t sipx_family; | 12 | __kernel_sa_family_t sipx_family; |
| 11 | __be16 sipx_port; | 13 | __be16 sipx_port; |
| @@ -14,6 +16,7 @@ struct sockaddr_ipx { | |||
| 14 | __u8 sipx_type; | 16 | __u8 sipx_type; |
| 15 | unsigned char sipx_zero; /* 16 byte fill */ | 17 | unsigned char sipx_zero; /* 16 byte fill */ |
| 16 | }; | 18 | }; |
| 19 | #endif /* __UAPI_DEF_SOCKADDR_IPX */ | ||
| 17 | 20 | ||
| 18 | /* | 21 | /* |
| 19 | * So we can fit the extra info for SIOCSIFADDR into the address nicely | 22 | * So we can fit the extra info for SIOCSIFADDR into the address nicely |
| @@ -23,12 +26,15 @@ struct sockaddr_ipx { | |||
| 23 | #define IPX_DLTITF 0 | 26 | #define IPX_DLTITF 0 |
| 24 | #define IPX_CRTITF 1 | 27 | #define IPX_CRTITF 1 |
| 25 | 28 | ||
| 29 | #if __UAPI_DEF_IPX_ROUTE_DEFINITION | ||
| 26 | struct ipx_route_definition { | 30 | struct ipx_route_definition { |
| 27 | __be32 ipx_network; | 31 | __be32 ipx_network; |
| 28 | __be32 ipx_router_network; | 32 | __be32 ipx_router_network; |
| 29 | unsigned char ipx_router_node[IPX_NODE_LEN]; | 33 | unsigned char ipx_router_node[IPX_NODE_LEN]; |
| 30 | }; | 34 | }; |
| 35 | #endif /* __UAPI_DEF_IPX_ROUTE_DEFINITION */ | ||
| 31 | 36 | ||
| 37 | #if __UAPI_DEF_IPX_INTERFACE_DEFINITION | ||
| 32 | struct ipx_interface_definition { | 38 | struct ipx_interface_definition { |
| 33 | __be32 ipx_network; | 39 | __be32 ipx_network; |
| 34 | unsigned char ipx_device[16]; | 40 | unsigned char ipx_device[16]; |
| @@ -45,16 +51,20 @@ struct ipx_interface_definition { | |||
| 45 | #define IPX_INTERNAL 2 | 51 | #define IPX_INTERNAL 2 |
| 46 | unsigned char ipx_node[IPX_NODE_LEN]; | 52 | unsigned char ipx_node[IPX_NODE_LEN]; |
| 47 | }; | 53 | }; |
| 48 | 54 | #endif /* __UAPI_DEF_IPX_INTERFACE_DEFINITION */ | |
| 55 | |||
| 56 | #if __UAPI_DEF_IPX_CONFIG_DATA | ||
| 49 | struct ipx_config_data { | 57 | struct ipx_config_data { |
| 50 | unsigned char ipxcfg_auto_select_primary; | 58 | unsigned char ipxcfg_auto_select_primary; |
| 51 | unsigned char ipxcfg_auto_create_interfaces; | 59 | unsigned char ipxcfg_auto_create_interfaces; |
| 52 | }; | 60 | }; |
| 61 | #endif /* __UAPI_DEF_IPX_CONFIG_DATA */ | ||
| 53 | 62 | ||
| 54 | /* | 63 | /* |
| 55 | * OLD Route Definition for backward compatibility. | 64 | * OLD Route Definition for backward compatibility. |
| 56 | */ | 65 | */ |
| 57 | 66 | ||
| 67 | #if __UAPI_DEF_IPX_ROUTE_DEF | ||
| 58 | struct ipx_route_def { | 68 | struct ipx_route_def { |
| 59 | __be32 ipx_network; | 69 | __be32 ipx_network; |
| 60 | __be32 ipx_router_network; | 70 | __be32 ipx_router_network; |
| @@ -67,6 +77,7 @@ struct ipx_route_def { | |||
| 67 | #define IPX_RT_BLUEBOOK 2 | 77 | #define IPX_RT_BLUEBOOK 2 |
| 68 | #define IPX_RT_ROUTED 1 | 78 | #define IPX_RT_ROUTED 1 |
| 69 | }; | 79 | }; |
| 80 | #endif /* __UAPI_DEF_IPX_ROUTE_DEF */ | ||
| 70 | 81 | ||
| 71 | #define SIOCAIPXITFCRT (SIOCPROTOPRIVATE) | 82 | #define SIOCAIPXITFCRT (SIOCPROTOPRIVATE) |
| 72 | #define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1) | 83 | #define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1) |
