diff options
author | Ying Wang <wangying@google.com> | 2012-08-10 10:09:11 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2012-08-10 10:09:11 -0700 |
commit | 435483c91cf16117fc2b864cb6994435ad669bc6 (patch) | |
tree | ecae3b1abaa57c09220319de58927782557558f3 /4/platforms/android-5/arch-x86/usr/include/linux/ipx.h | |
parent | dacf4827686b486347ba5a099697570f4b233409 (diff) | |
download | prebuilts_ndk-435483c91cf16117fc2b864cb6994435ad669bc6.zip prebuilts_ndk-435483c91cf16117fc2b864cb6994435ad669bc6.tar.gz prebuilts_ndk-435483c91cf16117fc2b864cb6994435ad669bc6.tar.bz2 |
Create symlink current
and simplify the directory names.
With this we will unify all LOCAL_NDK_VERSIONs in the
platform to the latest stable NDK.
Bug: 6932421
Change-Id: I1842caaced8c621a49e92326bbbd85b284561c0f
Diffstat (limited to '4/platforms/android-5/arch-x86/usr/include/linux/ipx.h')
-rw-r--r-- | 4/platforms/android-5/arch-x86/usr/include/linux/ipx.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/4/platforms/android-5/arch-x86/usr/include/linux/ipx.h b/4/platforms/android-5/arch-x86/usr/include/linux/ipx.h new file mode 100644 index 0000000..ff675e9 --- /dev/null +++ b/4/platforms/android-5/arch-x86/usr/include/linux/ipx.h @@ -0,0 +1,78 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _IPX_H_ +#define _IPX_H_ +#include <linux/sockios.h> +#include <linux/socket.h> +#define IPX_NODE_LEN 6 +#define IPX_MTU 576 + +struct sockaddr_ipx { + sa_family_t sipx_family; + __u16 sipx_port; + __u32 sipx_network; + unsigned char sipx_node[IPX_NODE_LEN]; + __u8 sipx_type; + unsigned char sipx_zero; +}; + +#define sipx_special sipx_port +#define sipx_action sipx_zero +#define IPX_DLTITF 0 +#define IPX_CRTITF 1 + +struct ipx_route_definition { + __u32 ipx_network; + __u32 ipx_router_network; + unsigned char ipx_router_node[IPX_NODE_LEN]; +}; + +struct ipx_interface_definition { + __u32 ipx_network; + unsigned char ipx_device[16]; + unsigned char ipx_dlink_type; +#define IPX_FRAME_NONE 0 +#define IPX_FRAME_SNAP 1 +#define IPX_FRAME_8022 2 +#define IPX_FRAME_ETHERII 3 +#define IPX_FRAME_8023 4 +#define IPX_FRAME_TR_8022 5 + unsigned char ipx_special; +#define IPX_SPECIAL_NONE 0 +#define IPX_PRIMARY 1 +#define IPX_INTERNAL 2 + unsigned char ipx_node[IPX_NODE_LEN]; +}; + +struct ipx_config_data { + unsigned char ipxcfg_auto_select_primary; + unsigned char ipxcfg_auto_create_interfaces; +}; + +struct ipx_route_def { + __u32 ipx_network; + __u32 ipx_router_network; +#define IPX_ROUTE_NO_ROUTER 0 + unsigned char ipx_router_node[IPX_NODE_LEN]; + unsigned char ipx_device[16]; + unsigned short ipx_flags; +#define IPX_RT_SNAP 8 +#define IPX_RT_8022 4 +#define IPX_RT_BLUEBOOK 2 +#define IPX_RT_ROUTED 1 +}; + +#define SIOCAIPXITFCRT (SIOCPROTOPRIVATE) +#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1) +#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2) +#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3) +#endif |