blob: ff675e98da59e91e898a094ec454158cd87d0ba3 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 Cheng4b29af02012-03-07 16:14:53 -080018
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080019struct 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 Cheng4b29af02012-03-07 16:14:53 -080027
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080028#define sipx_special sipx_port
29#define sipx_action sipx_zero
30#define IPX_DLTITF 0
31#define IPX_CRTITF 1
Ben Cheng4b29af02012-03-07 16:14:53 -080032
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080033struct ipx_route_definition {
34 __u32 ipx_network;
35 __u32 ipx_router_network;
36 unsigned char ipx_router_node[IPX_NODE_LEN];
37};
Ben Cheng4b29af02012-03-07 16:14:53 -080038
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039struct 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 Cheng4b29af02012-03-07 16:14:53 -080055
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080056struct ipx_config_data {
57 unsigned char ipxcfg_auto_select_primary;
58 unsigned char ipxcfg_auto_create_interfaces;
59};
Ben Cheng4b29af02012-03-07 16:14:53 -080060
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080061struct 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 Cheng4b29af02012-03-07 16:14:53 -080073
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080074#define SIOCAIPXITFCRT (SIOCPROTOPRIVATE)
75#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1)
76#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2)
77#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3)
78#endif