diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-10-21 16:32:42 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-10-30 11:53:46 -0700 |
commit | b8a3ce7833113135d7ce573aa52433351bb6e14b (patch) | |
tree | 3645a107c5557215e74fa95418fc4b54e1f67b81 /9/platforms/android-21/arch-mips/usr/include/linux/l2tp.h | |
parent | b8b71b64c959c6074ece0b5f7ba435cc09b86999 (diff) | |
download | prebuilts_ndk-b8a3ce7833113135d7ce573aa52433351bb6e14b.zip prebuilts_ndk-b8a3ce7833113135d7ce573aa52433351bb6e14b.tar.gz prebuilts_ndk-b8a3ce7833113135d7ce573aa52433351bb6e14b.tar.bz2 |
Add real android-21 32-bit headers/libs
Also corret __ANDROID_API__ in 64-bit android/api-level.h
Change-Id: Ia7f82f07d70eebb2daa62e03c227091b74d05fb6
Diffstat (limited to '9/platforms/android-21/arch-mips/usr/include/linux/l2tp.h')
-rw-r--r-- | 9/platforms/android-21/arch-mips/usr/include/linux/l2tp.h | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/9/platforms/android-21/arch-mips/usr/include/linux/l2tp.h b/9/platforms/android-21/arch-mips/usr/include/linux/l2tp.h new file mode 100644 index 0000000..818cda4 --- /dev/null +++ b/9/platforms/android-21/arch-mips/usr/include/linux/l2tp.h @@ -0,0 +1,159 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI_LINUX_L2TP_H_ +#define _UAPI_LINUX_L2TP_H_ +#include <linux/types.h> +#include <linux/socket.h> +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#include <netinet/in.h> +#define IPPROTO_L2TP 115 +#define __SOCK_SIZE__ 16 +struct sockaddr_l2tpip { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __kernel_sa_family_t l2tp_family; + __be16 l2tp_unused; + struct in_addr l2tp_addr; + __u32 l2tp_conn_id; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + unsigned char __pad[sizeof(struct sockaddr) - + sizeof(__kernel_sa_family_t) - + sizeof(__be16) - sizeof(struct in_addr) - + sizeof(__u32)]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +struct sockaddr_l2tpip6 { + __kernel_sa_family_t l2tp_family; + __be16 l2tp_unused; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __be32 l2tp_flowinfo; + struct in6_addr l2tp_addr; + __u32 l2tp_scope_id; + __u32 l2tp_conn_id; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +enum { + L2TP_CMD_NOOP, + L2TP_CMD_TUNNEL_CREATE, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_CMD_TUNNEL_DELETE, + L2TP_CMD_TUNNEL_MODIFY, + L2TP_CMD_TUNNEL_GET, + L2TP_CMD_SESSION_CREATE, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_CMD_SESSION_DELETE, + L2TP_CMD_SESSION_MODIFY, + L2TP_CMD_SESSION_GET, + __L2TP_CMD_MAX, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +#define L2TP_CMD_MAX (__L2TP_CMD_MAX - 1) +enum { + L2TP_ATTR_NONE, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_PW_TYPE, + L2TP_ATTR_ENCAP_TYPE, + L2TP_ATTR_OFFSET, + L2TP_ATTR_DATA_SEQ, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_L2SPEC_TYPE, + L2TP_ATTR_L2SPEC_LEN, + L2TP_ATTR_PROTO_VERSION, + L2TP_ATTR_IFNAME, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_CONN_ID, + L2TP_ATTR_PEER_CONN_ID, + L2TP_ATTR_SESSION_ID, + L2TP_ATTR_PEER_SESSION_ID, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_UDP_CSUM, + L2TP_ATTR_VLAN_ID, + L2TP_ATTR_COOKIE, + L2TP_ATTR_PEER_COOKIE, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_DEBUG, + L2TP_ATTR_RECV_SEQ, + L2TP_ATTR_SEND_SEQ, + L2TP_ATTR_LNS_MODE, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_USING_IPSEC, + L2TP_ATTR_RECV_TIMEOUT, + L2TP_ATTR_FD, + L2TP_ATTR_IP_SADDR, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_IP_DADDR, + L2TP_ATTR_UDP_SPORT, + L2TP_ATTR_UDP_DPORT, + L2TP_ATTR_MTU, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_MRU, + L2TP_ATTR_STATS, + L2TP_ATTR_IP6_SADDR, + L2TP_ATTR_IP6_DADDR, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __L2TP_ATTR_MAX, +}; +#define L2TP_ATTR_MAX (__L2TP_ATTR_MAX - 1) +enum { +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_STATS_NONE, + L2TP_ATTR_TX_PACKETS, + L2TP_ATTR_TX_BYTES, + L2TP_ATTR_TX_ERRORS, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_RX_PACKETS, + L2TP_ATTR_RX_BYTES, + L2TP_ATTR_RX_SEQ_DISCARDS, + L2TP_ATTR_RX_OOS_PACKETS, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_ATTR_RX_ERRORS, + __L2TP_ATTR_STATS_MAX, +}; +#define L2TP_ATTR_STATS_MAX (__L2TP_ATTR_STATS_MAX - 1) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +enum l2tp_pwtype { + L2TP_PWTYPE_NONE = 0x0000, + L2TP_PWTYPE_ETH_VLAN = 0x0004, + L2TP_PWTYPE_ETH = 0x0005, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_PWTYPE_PPP = 0x0007, + L2TP_PWTYPE_PPP_AC = 0x0008, + L2TP_PWTYPE_IP = 0x000b, + __L2TP_PWTYPE_MAX +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +enum l2tp_l2spec_type { + L2TP_L2SPECTYPE_NONE, + L2TP_L2SPECTYPE_DEFAULT, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +enum l2tp_encap_type { + L2TP_ENCAPTYPE_UDP, + L2TP_ENCAPTYPE_IP, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +}; +enum l2tp_seqmode { + L2TP_SEQ_NONE = 0, + L2TP_SEQ_IP = 1, +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + L2TP_SEQ_ALL = 2, +}; +#define L2TP_GENL_NAME "l2tp" +#define L2TP_GENL_VERSION 0x1 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif |