2013-10-17 01:09:24 +02:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** 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 _PPP_IOCTL_H
|
|
|
|
#define _PPP_IOCTL_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/compiler.h>
|
2014-07-10 00:33:25 +02:00
|
|
|
#include <linux/ppp_defs.h>
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SC_COMP_PROT 0x00000001
|
|
|
|
#define SC_COMP_AC 0x00000002
|
|
|
|
#define SC_COMP_TCP 0x00000004
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SC_NO_TCP_CCID 0x00000008
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SC_REJ_COMP_AC 0x00000010
|
|
|
|
#define SC_REJ_COMP_TCP 0x00000020
|
|
|
|
#define SC_CCP_OPEN 0x00000040
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SC_CCP_UP 0x00000080
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SC_ENABLE_IP 0x00000100
|
|
|
|
#define SC_LOOP_TRAFFIC 0x00000200
|
|
|
|
#define SC_MULTILINK 0x00000400
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SC_MP_SHORTSEQ 0x00000800
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SC_COMP_RUN 0x00001000
|
|
|
|
#define SC_DECOMP_RUN 0x00002000
|
|
|
|
#define SC_MP_XSHORTSEQ 0x00004000
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SC_DEBUG 0x00010000
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SC_LOG_INPKT 0x00020000
|
|
|
|
#define SC_LOG_OUTPKT 0x00040000
|
|
|
|
#define SC_LOG_RAWIN 0x00080000
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SC_LOG_FLUSH 0x00100000
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SC_SYNC 0x00200000
|
|
|
|
#define SC_MUST_COMP 0x00400000
|
|
|
|
#define SC_MASK 0x0f600fff
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SC_XMIT_BUSY 0x10000000
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SC_RCV_ODDP 0x08000000
|
|
|
|
#define SC_RCV_EVNP 0x04000000
|
|
|
|
#define SC_RCV_B7_1 0x02000000
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SC_RCV_B7_0 0x01000000
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SC_DC_FERROR 0x00800000
|
|
|
|
#define SC_DC_ERROR 0x00400000
|
|
|
|
struct npioctl {
|
2015-01-28 19:07:51 +01:00
|
|
|
int protocol;
|
|
|
|
enum NPmode mode;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
|
|
|
struct ppp_option_data {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 __user * ptr;
|
|
|
|
__u32 length;
|
|
|
|
int transmit;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2014-07-10 00:33:25 +02:00
|
|
|
struct pppol2tp_ioc_stats {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u16 tunnel_id;
|
|
|
|
__u16 session_id;
|
|
|
|
__u32 using_ipsec : 1;
|
|
|
|
__aligned_u64 tx_packets;
|
|
|
|
__aligned_u64 tx_bytes;
|
|
|
|
__aligned_u64 tx_errors;
|
|
|
|
__aligned_u64 rx_packets;
|
|
|
|
__aligned_u64 rx_bytes;
|
|
|
|
__aligned_u64 rx_seq_discards;
|
|
|
|
__aligned_u64 rx_oos_packets;
|
|
|
|
__aligned_u64 rx_errors;
|
2014-07-10 00:33:25 +02:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCGFLAGS _IOR('t', 90, int)
|
|
|
|
#define PPPIOCSFLAGS _IOW('t', 89, int)
|
|
|
|
#define PPPIOCGASYNCMAP _IOR('t', 88, int)
|
2014-07-10 00:33:25 +02:00
|
|
|
#define PPPIOCSASYNCMAP _IOW('t', 87, int)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCGUNIT _IOR('t', 86, int)
|
|
|
|
#define PPPIOCGRASYNCMAP _IOR('t', 85, int)
|
|
|
|
#define PPPIOCSRASYNCMAP _IOW('t', 84, int)
|
2014-07-10 00:33:25 +02:00
|
|
|
#define PPPIOCGMRU _IOR('t', 83, int)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCSMRU _IOW('t', 82, int)
|
|
|
|
#define PPPIOCSMAXCID _IOW('t', 81, int)
|
|
|
|
#define PPPIOCGXASYNCMAP _IOR('t', 80, ext_accm)
|
2014-07-10 00:33:25 +02:00
|
|
|
#define PPPIOCSXASYNCMAP _IOW('t', 79, ext_accm)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCXFERUNIT _IO('t', 78)
|
|
|
|
#define PPPIOCSCOMPRESS _IOW('t', 77, struct ppp_option_data)
|
|
|
|
#define PPPIOCGNPMODE _IOWR('t', 76, struct npioctl)
|
2014-07-10 00:33:25 +02:00
|
|
|
#define PPPIOCSNPMODE _IOW('t', 75, struct npioctl)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCSPASS _IOW('t', 71, struct sock_fprog)
|
|
|
|
#define PPPIOCSACTIVE _IOW('t', 70, struct sock_fprog)
|
|
|
|
#define PPPIOCGDEBUG _IOR('t', 65, int)
|
2014-07-10 00:33:25 +02:00
|
|
|
#define PPPIOCSDEBUG _IOW('t', 64, int)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCGIDLE _IOR('t', 63, struct ppp_idle)
|
2020-02-05 01:16:51 +01:00
|
|
|
#define PPPIOCGIDLE32 _IOR('t', 63, struct ppp_idle32)
|
|
|
|
#define PPPIOCGIDLE64 _IOR('t', 63, struct ppp_idle64)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCNEWUNIT _IOWR('t', 62, int)
|
|
|
|
#define PPPIOCATTACH _IOW('t', 61, int)
|
2014-07-10 00:33:25 +02:00
|
|
|
#define PPPIOCDETACH _IOW('t', 60, int)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCSMRRU _IOW('t', 59, int)
|
|
|
|
#define PPPIOCCONNECT _IOW('t', 58, int)
|
|
|
|
#define PPPIOCDISCONN _IO('t', 57)
|
2014-07-10 00:33:25 +02:00
|
|
|
#define PPPIOCATTCHAN _IOW('t', 56, int)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define PPPIOCGCHAN _IOR('t', 55, int)
|
|
|
|
#define PPPIOCGL2TPSTATS _IOR('t', 54, struct pppol2tp_ioc_stats)
|
2021-02-17 01:01:34 +01:00
|
|
|
#define PPPIOCBRIDGECHAN _IOW('t', 53, int)
|
|
|
|
#define PPPIOCUNBRIDGECHAN _IO('t', 52)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SIOCGPPPSTATS (SIOCDEVPRIVATE + 0)
|
2014-07-10 00:33:25 +02:00
|
|
|
#define SIOCGPPPVER (SIOCDEVPRIVATE + 1)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define SIOCGPPPCSTATS (SIOCDEVPRIVATE + 2)
|
|
|
|
#endif
|