| 1 | #ifndef _IPX_H_ |
|---|
| 2 | #define _IPX_H_ |
|---|
| 3 | #include <asm/types.h> |
|---|
| 4 | |
|---|
| 5 | #include <linux/sockios.h> |
|---|
| 6 | #include <sys/socket.h> |
|---|
| 7 | #define IPX_NODE_LEN 6 |
|---|
| 8 | #define IPX_MTU 576 |
|---|
| 9 | |
|---|
| 10 | struct sockaddr_ipx { |
|---|
| 11 | sa_family_t sipx_family; |
|---|
| 12 | __u16 sipx_port; |
|---|
| 13 | __u32 sipx_network; |
|---|
| 14 | unsigned char sipx_node[IPX_NODE_LEN]; |
|---|
| 15 | __u8 sipx_type; |
|---|
| 16 | unsigned char sipx_zero; /* 16 byte fill */ |
|---|
| 17 | }; |
|---|
| 18 | |
|---|
| 19 | /* |
|---|
| 20 | * So we can fit the extra info for SIOCSIFADDR into the address nicely |
|---|
| 21 | */ |
|---|
| 22 | #define sipx_special sipx_port |
|---|
| 23 | #define sipx_action sipx_zero |
|---|
| 24 | #define IPX_DLTITF 0 |
|---|
| 25 | #define IPX_CRTITF 1 |
|---|
| 26 | |
|---|
| 27 | struct ipx_route_definition { |
|---|
| 28 | __u32 ipx_network; |
|---|
| 29 | __u32 ipx_router_network; |
|---|
| 30 | unsigned char ipx_router_node[IPX_NODE_LEN]; |
|---|
| 31 | }; |
|---|
| 32 | |
|---|
| 33 | struct ipx_interface_definition { |
|---|
| 34 | __u32 ipx_network; |
|---|
| 35 | unsigned char ipx_device[16]; |
|---|
| 36 | unsigned char ipx_dlink_type; |
|---|
| 37 | #define IPX_FRAME_NONE 0 |
|---|
| 38 | #define IPX_FRAME_SNAP 1 |
|---|
| 39 | #define IPX_FRAME_8022 2 |
|---|
| 40 | #define IPX_FRAME_ETHERII 3 |
|---|
| 41 | #define IPX_FRAME_8023 4 |
|---|
| 42 | #define IPX_FRAME_TR_8022 5 /* obsolete */ |
|---|
| 43 | unsigned char ipx_special; |
|---|
| 44 | #define IPX_SPECIAL_NONE 0 |
|---|
| 45 | #define IPX_PRIMARY 1 |
|---|
| 46 | #define IPX_INTERNAL 2 |
|---|
| 47 | unsigned char ipx_node[IPX_NODE_LEN]; |
|---|
| 48 | }; |
|---|
| 49 | |
|---|
| 50 | struct ipx_config_data { |
|---|
| 51 | unsigned char ipxcfg_auto_select_primary; |
|---|
| 52 | unsigned char ipxcfg_auto_create_interfaces; |
|---|
| 53 | }; |
|---|
| 54 | |
|---|
| 55 | /* |
|---|
| 56 | * OLD Route Definition for backward compatibility. |
|---|
| 57 | */ |
|---|
| 58 | |
|---|
| 59 | struct ipx_route_def { |
|---|
| 60 | __u32 ipx_network; |
|---|
| 61 | __u32 ipx_router_network; |
|---|
| 62 | #define IPX_ROUTE_NO_ROUTER 0 |
|---|
| 63 | unsigned char ipx_router_node[IPX_NODE_LEN]; |
|---|
| 64 | unsigned char ipx_device[16]; |
|---|
| 65 | unsigned short ipx_flags; |
|---|
| 66 | #define IPX_RT_SNAP 8 |
|---|
| 67 | #define IPX_RT_8022 4 |
|---|
| 68 | #define IPX_RT_BLUEBOOK 2 |
|---|
| 69 | #define IPX_RT_ROUTED 1 |
|---|
| 70 | }; |
|---|
| 71 | |
|---|
| 72 | #define SIOCAIPXITFCRT (SIOCPROTOPRIVATE) |
|---|
| 73 | #define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1) |
|---|
| 74 | #define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2) |
|---|
| 75 | #define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3) |
|---|
| 76 | #endif /* _IPX_H_ */ |
|---|