122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef _PPP_IOCTL_H 2022851890Sopenharmony_ci#define _PPP_IOCTL_H 2122851890Sopenharmony_ci#include <linux/types.h> 2222851890Sopenharmony_ci#include <linux/compiler.h> 2322851890Sopenharmony_ci#include <linux/ppp_defs.h> 2422851890Sopenharmony_ci#define SC_COMP_PROT 0x00000001 2522851890Sopenharmony_ci#define SC_COMP_AC 0x00000002 2622851890Sopenharmony_ci#define SC_COMP_TCP 0x00000004 2722851890Sopenharmony_ci#define SC_NO_TCP_CCID 0x00000008 2822851890Sopenharmony_ci#define SC_REJ_COMP_AC 0x00000010 2922851890Sopenharmony_ci#define SC_REJ_COMP_TCP 0x00000020 3022851890Sopenharmony_ci#define SC_CCP_OPEN 0x00000040 3122851890Sopenharmony_ci#define SC_CCP_UP 0x00000080 3222851890Sopenharmony_ci#define SC_ENABLE_IP 0x00000100 3322851890Sopenharmony_ci#define SC_LOOP_TRAFFIC 0x00000200 3422851890Sopenharmony_ci#define SC_MULTILINK 0x00000400 3522851890Sopenharmony_ci#define SC_MP_SHORTSEQ 0x00000800 3622851890Sopenharmony_ci#define SC_COMP_RUN 0x00001000 3722851890Sopenharmony_ci#define SC_DECOMP_RUN 0x00002000 3822851890Sopenharmony_ci#define SC_MP_XSHORTSEQ 0x00004000 3922851890Sopenharmony_ci#define SC_DEBUG 0x00010000 4022851890Sopenharmony_ci#define SC_LOG_INPKT 0x00020000 4122851890Sopenharmony_ci#define SC_LOG_OUTPKT 0x00040000 4222851890Sopenharmony_ci#define SC_LOG_RAWIN 0x00080000 4322851890Sopenharmony_ci#define SC_LOG_FLUSH 0x00100000 4422851890Sopenharmony_ci#define SC_SYNC 0x00200000 4522851890Sopenharmony_ci#define SC_MUST_COMP 0x00400000 4622851890Sopenharmony_ci#define SC_MASK 0x0f600fff 4722851890Sopenharmony_ci#define SC_XMIT_BUSY 0x10000000 4822851890Sopenharmony_ci#define SC_RCV_ODDP 0x08000000 4922851890Sopenharmony_ci#define SC_RCV_EVNP 0x04000000 5022851890Sopenharmony_ci#define SC_RCV_B7_1 0x02000000 5122851890Sopenharmony_ci#define SC_RCV_B7_0 0x01000000 5222851890Sopenharmony_ci#define SC_DC_FERROR 0x00800000 5322851890Sopenharmony_ci#define SC_DC_ERROR 0x00400000 5422851890Sopenharmony_cistruct npioctl { 5522851890Sopenharmony_ci int protocol; 5622851890Sopenharmony_ci enum NPmode mode; 5722851890Sopenharmony_ci}; 5822851890Sopenharmony_cistruct ppp_option_data { 5922851890Sopenharmony_ci __u8 __user * ptr; 6022851890Sopenharmony_ci __u32 length; 6122851890Sopenharmony_ci int transmit; 6222851890Sopenharmony_ci}; 6322851890Sopenharmony_cistruct pppol2tp_ioc_stats { 6422851890Sopenharmony_ci __u16 tunnel_id; 6522851890Sopenharmony_ci __u16 session_id; 6622851890Sopenharmony_ci __u32 using_ipsec : 1; 6722851890Sopenharmony_ci __aligned_u64 tx_packets; 6822851890Sopenharmony_ci __aligned_u64 tx_bytes; 6922851890Sopenharmony_ci __aligned_u64 tx_errors; 7022851890Sopenharmony_ci __aligned_u64 rx_packets; 7122851890Sopenharmony_ci __aligned_u64 rx_bytes; 7222851890Sopenharmony_ci __aligned_u64 rx_seq_discards; 7322851890Sopenharmony_ci __aligned_u64 rx_oos_packets; 7422851890Sopenharmony_ci __aligned_u64 rx_errors; 7522851890Sopenharmony_ci}; 7622851890Sopenharmony_ci#define PPPIOCGFLAGS _IOR('t', 90, int) 7722851890Sopenharmony_ci#define PPPIOCSFLAGS _IOW('t', 89, int) 7822851890Sopenharmony_ci#define PPPIOCGASYNCMAP _IOR('t', 88, int) 7922851890Sopenharmony_ci#define PPPIOCSASYNCMAP _IOW('t', 87, int) 8022851890Sopenharmony_ci#define PPPIOCGUNIT _IOR('t', 86, int) 8122851890Sopenharmony_ci#define PPPIOCGRASYNCMAP _IOR('t', 85, int) 8222851890Sopenharmony_ci#define PPPIOCSRASYNCMAP _IOW('t', 84, int) 8322851890Sopenharmony_ci#define PPPIOCGMRU _IOR('t', 83, int) 8422851890Sopenharmony_ci#define PPPIOCSMRU _IOW('t', 82, int) 8522851890Sopenharmony_ci#define PPPIOCSMAXCID _IOW('t', 81, int) 8622851890Sopenharmony_ci#define PPPIOCGXASYNCMAP _IOR('t', 80, ext_accm) 8722851890Sopenharmony_ci#define PPPIOCSXASYNCMAP _IOW('t', 79, ext_accm) 8822851890Sopenharmony_ci#define PPPIOCXFERUNIT _IO('t', 78) 8922851890Sopenharmony_ci#define PPPIOCSCOMPRESS _IOW('t', 77, struct ppp_option_data) 9022851890Sopenharmony_ci#define PPPIOCGNPMODE _IOWR('t', 76, struct npioctl) 9122851890Sopenharmony_ci#define PPPIOCSNPMODE _IOW('t', 75, struct npioctl) 9222851890Sopenharmony_ci#define PPPIOCSPASS _IOW('t', 71, struct sock_fprog) 9322851890Sopenharmony_ci#define PPPIOCSACTIVE _IOW('t', 70, struct sock_fprog) 9422851890Sopenharmony_ci#define PPPIOCGDEBUG _IOR('t', 65, int) 9522851890Sopenharmony_ci#define PPPIOCSDEBUG _IOW('t', 64, int) 9622851890Sopenharmony_ci#define PPPIOCGIDLE _IOR('t', 63, struct ppp_idle) 9722851890Sopenharmony_ci#define PPPIOCGIDLE32 _IOR('t', 63, struct ppp_idle32) 9822851890Sopenharmony_ci#define PPPIOCGIDLE64 _IOR('t', 63, struct ppp_idle64) 9922851890Sopenharmony_ci#define PPPIOCNEWUNIT _IOWR('t', 62, int) 10022851890Sopenharmony_ci#define PPPIOCATTACH _IOW('t', 61, int) 10122851890Sopenharmony_ci#define PPPIOCDETACH _IOW('t', 60, int) 10222851890Sopenharmony_ci#define PPPIOCSMRRU _IOW('t', 59, int) 10322851890Sopenharmony_ci#define PPPIOCCONNECT _IOW('t', 58, int) 10422851890Sopenharmony_ci#define PPPIOCDISCONN _IO('t', 57) 10522851890Sopenharmony_ci#define PPPIOCATTCHAN _IOW('t', 56, int) 10622851890Sopenharmony_ci#define PPPIOCGCHAN _IOR('t', 55, int) 10722851890Sopenharmony_ci#define PPPIOCGL2TPSTATS _IOR('t', 54, struct pppol2tp_ioc_stats) 10822851890Sopenharmony_ci#define SIOCGPPPSTATS (SIOCDEVPRIVATE + 0) 10922851890Sopenharmony_ci#define SIOCGPPPVER (SIOCDEVPRIVATE + 1) 11022851890Sopenharmony_ci#define SIOCGPPPCSTATS (SIOCDEVPRIVATE + 2) 11122851890Sopenharmony_ci#endif 112