1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 #include <linux/libc-compat.h> /* for compatibility with glibc netipx/ipx.h */
5 #include <linux/types.h>
6 #include <linux/sockios.h>
7 #include <linux/socket.h>
11 #if __UAPI_DEF_SOCKADDR_IPX
13 __kernel_sa_family_t sipx_family
;
16 unsigned char sipx_node
[IPX_NODE_LEN
];
18 unsigned char sipx_zero
; /* 16 byte fill */
20 #endif /* __UAPI_DEF_SOCKADDR_IPX */
23 * So we can fit the extra info for SIOCSIFADDR into the address nicely
25 #define sipx_special sipx_port
26 #define sipx_action sipx_zero
30 #if __UAPI_DEF_IPX_ROUTE_DEFINITION
31 struct ipx_route_definition
{
33 __be32 ipx_router_network
;
34 unsigned char ipx_router_node
[IPX_NODE_LEN
];
36 #endif /* __UAPI_DEF_IPX_ROUTE_DEFINITION */
38 #if __UAPI_DEF_IPX_INTERFACE_DEFINITION
39 struct ipx_interface_definition
{
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 /* obsolete */
49 unsigned char ipx_special
;
50 #define IPX_SPECIAL_NONE 0
52 #define IPX_INTERNAL 2
53 unsigned char ipx_node
[IPX_NODE_LEN
];
55 #endif /* __UAPI_DEF_IPX_INTERFACE_DEFINITION */
57 #if __UAPI_DEF_IPX_CONFIG_DATA
58 struct ipx_config_data
{
59 unsigned char ipxcfg_auto_select_primary
;
60 unsigned char ipxcfg_auto_create_interfaces
;
62 #endif /* __UAPI_DEF_IPX_CONFIG_DATA */
65 * OLD Route Definition for backward compatibility.
68 #if __UAPI_DEF_IPX_ROUTE_DEF
69 struct ipx_route_def
{
71 __be32 ipx_router_network
;
72 #define IPX_ROUTE_NO_ROUTER 0
73 unsigned char ipx_router_node
[IPX_NODE_LEN
];
74 unsigned char ipx_device
[16];
75 unsigned short ipx_flags
;
78 #define IPX_RT_BLUEBOOK 2
79 #define IPX_RT_ROUTED 1
81 #endif /* __UAPI_DEF_IPX_ROUTE_DEF */
83 #define SIOCAIPXITFCRT (SIOCPROTOPRIVATE)
84 #define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1)
85 #define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2)
86 #define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3)