diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/ipx.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/linux/ipx.h')
-rw-r--r-- | include/linux/ipx.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/include/linux/ipx.h b/include/linux/ipx.h new file mode 100644 index 000000000000..4f29c60964c4 --- /dev/null +++ b/include/linux/ipx.h | |||
@@ -0,0 +1,74 @@ | |||
1 | #ifndef _IPX_H_ | ||
2 | #define _IPX_H_ | ||
3 | #include <linux/sockios.h> | ||
4 | #include <linux/socket.h> | ||
5 | #define IPX_NODE_LEN 6 | ||
6 | #define IPX_MTU 576 | ||
7 | |||
8 | struct sockaddr_ipx { | ||
9 | sa_family_t sipx_family; | ||
10 | __u16 sipx_port; | ||
11 | __u32 sipx_network; | ||
12 | unsigned char sipx_node[IPX_NODE_LEN]; | ||
13 | __u8 sipx_type; | ||
14 | unsigned char sipx_zero; /* 16 byte fill */ | ||
15 | }; | ||
16 | |||
17 | /* | ||
18 | * So we can fit the extra info for SIOCSIFADDR into the address nicely | ||
19 | */ | ||
20 | #define sipx_special sipx_port | ||
21 | #define sipx_action sipx_zero | ||
22 | #define IPX_DLTITF 0 | ||
23 | #define IPX_CRTITF 1 | ||
24 | |||
25 | struct ipx_route_definition { | ||
26 | __u32 ipx_network; | ||
27 | __u32 ipx_router_network; | ||
28 | unsigned char ipx_router_node[IPX_NODE_LEN]; | ||
29 | }; | ||
30 | |||
31 | struct ipx_interface_definition { | ||
32 | __u32 ipx_network; | ||
33 | unsigned char ipx_device[16]; | ||
34 | unsigned char ipx_dlink_type; | ||
35 | #define IPX_FRAME_NONE 0 | ||
36 | #define IPX_FRAME_SNAP 1 | ||
37 | #define IPX_FRAME_8022 2 | ||
38 | #define IPX_FRAME_ETHERII 3 | ||
39 | #define IPX_FRAME_8023 4 | ||
40 | #define IPX_FRAME_TR_8022 5 /* obsolete */ | ||
41 | unsigned char ipx_special; | ||
42 | #define IPX_SPECIAL_NONE 0 | ||
43 | #define IPX_PRIMARY 1 | ||
44 | #define IPX_INTERNAL 2 | ||
45 | unsigned char ipx_node[IPX_NODE_LEN]; | ||
46 | }; | ||
47 | |||
48 | struct ipx_config_data { | ||
49 | unsigned char ipxcfg_auto_select_primary; | ||
50 | unsigned char ipxcfg_auto_create_interfaces; | ||
51 | }; | ||
52 | |||
53 | /* | ||
54 | * OLD Route Definition for backward compatibility. | ||
55 | */ | ||
56 | |||
57 | struct ipx_route_def { | ||
58 | __u32 ipx_network; | ||
59 | __u32 ipx_router_network; | ||
60 | #define IPX_ROUTE_NO_ROUTER 0 | ||
61 | unsigned char ipx_router_node[IPX_NODE_LEN]; | ||
62 | unsigned char ipx_device[16]; | ||
63 | unsigned short ipx_flags; | ||
64 | #define IPX_RT_SNAP 8 | ||
65 | #define IPX_RT_8022 4 | ||
66 | #define IPX_RT_BLUEBOOK 2 | ||
67 | #define IPX_RT_ROUTED 1 | ||
68 | }; | ||
69 | |||
70 | #define SIOCAIPXITFCRT (SIOCPROTOPRIVATE) | ||
71 | #define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1) | ||
72 | #define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2) | ||
73 | #define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3) | ||
74 | #endif /* _IPX_H_ */ | ||