blob: d8a54249adbe04e7b6a16046b857191d74543a40 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _IPX_H_
20#define _IPX_H_
Christopher Ferris49f525c2016-12-12 14:55:36 -080021#include <linux/libc-compat.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070022#include <linux/types.h>
Christopher Ferris49f525c2016-12-12 14:55:36 -080023#include <linux/sockios.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070024#include <linux/socket.h>
25#define IPX_NODE_LEN 6
26#define IPX_MTU 576
Christopher Ferris49f525c2016-12-12 14:55:36 -080027#if __UAPI_DEF_SOCKADDR_IPX
28struct sockaddr_ipx {
Tao Baod7db5942015-01-28 10:07:51 -080029 __kernel_sa_family_t sipx_family;
30 __be16 sipx_port;
31 __be32 sipx_network;
32 unsigned char sipx_node[IPX_NODE_LEN];
Tao Baod7db5942015-01-28 10:07:51 -080033 __u8 sipx_type;
34 unsigned char sipx_zero;
Christopher Ferris49f525c2016-12-12 14:55:36 -080035};
36#endif
37#define sipx_special sipx_port
Ben Cheng655a7c02013-10-16 16:09:24 -070038#define sipx_action sipx_zero
39#define IPX_DLTITF 0
40#define IPX_CRTITF 1
Christopher Ferris49f525c2016-12-12 14:55:36 -080041#if __UAPI_DEF_IPX_ROUTE_DEFINITION
Ben Cheng655a7c02013-10-16 16:09:24 -070042struct ipx_route_definition {
Tao Baod7db5942015-01-28 10:07:51 -080043 __be32 ipx_network;
44 __be32 ipx_router_network;
45 unsigned char ipx_router_node[IPX_NODE_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
Christopher Ferris49f525c2016-12-12 14:55:36 -080047#endif
48#if __UAPI_DEF_IPX_INTERFACE_DEFINITION
Ben Cheng655a7c02013-10-16 16:09:24 -070049struct ipx_interface_definition {
Tao Baod7db5942015-01-28 10:07:51 -080050 __be32 ipx_network;
51 unsigned char ipx_device[16];
52 unsigned char ipx_dlink_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070053#define IPX_FRAME_NONE 0
54#define IPX_FRAME_SNAP 1
55#define IPX_FRAME_8022 2
56#define IPX_FRAME_ETHERII 3
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define IPX_FRAME_8023 4
58#define IPX_FRAME_TR_8022 5
Tao Baod7db5942015-01-28 10:07:51 -080059 unsigned char ipx_special;
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define IPX_SPECIAL_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -070061#define IPX_PRIMARY 1
62#define IPX_INTERNAL 2
Tao Baod7db5942015-01-28 10:07:51 -080063 unsigned char ipx_node[IPX_NODE_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070064};
Christopher Ferris49f525c2016-12-12 14:55:36 -080065#endif
66#if __UAPI_DEF_IPX_CONFIG_DATA
Ben Cheng655a7c02013-10-16 16:09:24 -070067struct ipx_config_data {
Tao Baod7db5942015-01-28 10:07:51 -080068 unsigned char ipxcfg_auto_select_primary;
69 unsigned char ipxcfg_auto_create_interfaces;
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
Christopher Ferris49f525c2016-12-12 14:55:36 -080071#endif
72#if __UAPI_DEF_IPX_ROUTE_DEF
Ben Cheng655a7c02013-10-16 16:09:24 -070073struct ipx_route_def {
Tao Baod7db5942015-01-28 10:07:51 -080074 __be32 ipx_network;
75 __be32 ipx_router_network;
Ben Cheng655a7c02013-10-16 16:09:24 -070076#define IPX_ROUTE_NO_ROUTER 0
Tao Baod7db5942015-01-28 10:07:51 -080077 unsigned char ipx_router_node[IPX_NODE_LEN];
78 unsigned char ipx_device[16];
79 unsigned short ipx_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define IPX_RT_SNAP 8
Ben Cheng655a7c02013-10-16 16:09:24 -070081#define IPX_RT_8022 4
82#define IPX_RT_BLUEBOOK 2
83#define IPX_RT_ROUTED 1
84};
Christopher Ferris49f525c2016-12-12 14:55:36 -080085#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070086#define SIOCAIPXITFCRT (SIOCPROTOPRIVATE)
87#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1)
88#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2)
89#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3)
Ben Cheng655a7c02013-10-16 16:09:24 -070090#endif