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#include <linux/types.h> 2022851890Sopenharmony_ci#ifndef _UAPI_PPP_DEFS_H_ 2122851890Sopenharmony_ci#define _UAPI_PPP_DEFS_H_ 2222851890Sopenharmony_ci#define PPP_HDRLEN 4 2322851890Sopenharmony_ci#define PPP_FCSLEN 2 2422851890Sopenharmony_ci#define PPP_MRU 1500 2522851890Sopenharmony_ci#define PPP_ADDRESS(p) (((__u8 *) (p))[0]) 2622851890Sopenharmony_ci#define PPP_CONTROL(p) (((__u8 *) (p))[1]) 2722851890Sopenharmony_ci#define PPP_PROTOCOL(p) ((((__u8 *) (p))[2] << 8) + ((__u8 *) (p))[3]) 2822851890Sopenharmony_ci#define PPP_ALLSTATIONS 0xff 2922851890Sopenharmony_ci#define PPP_UI 0x03 3022851890Sopenharmony_ci#define PPP_FLAG 0x7e 3122851890Sopenharmony_ci#define PPP_ESCAPE 0x7d 3222851890Sopenharmony_ci#define PPP_TRANS 0x20 3322851890Sopenharmony_ci#define PPP_IP 0x21 3422851890Sopenharmony_ci#define PPP_AT 0x29 3522851890Sopenharmony_ci#define PPP_IPX 0x2b 3622851890Sopenharmony_ci#define PPP_VJC_COMP 0x2d 3722851890Sopenharmony_ci#define PPP_VJC_UNCOMP 0x2f 3822851890Sopenharmony_ci#define PPP_MP 0x3d 3922851890Sopenharmony_ci#define PPP_IPV6 0x57 4022851890Sopenharmony_ci#define PPP_COMPFRAG 0xfb 4122851890Sopenharmony_ci#define PPP_COMP 0xfd 4222851890Sopenharmony_ci#define PPP_MPLS_UC 0x0281 4322851890Sopenharmony_ci#define PPP_MPLS_MC 0x0283 4422851890Sopenharmony_ci#define PPP_IPCP 0x8021 4522851890Sopenharmony_ci#define PPP_ATCP 0x8029 4622851890Sopenharmony_ci#define PPP_IPXCP 0x802b 4722851890Sopenharmony_ci#define PPP_IPV6CP 0x8057 4822851890Sopenharmony_ci#define PPP_CCPFRAG 0x80fb 4922851890Sopenharmony_ci#define PPP_CCP 0x80fd 5022851890Sopenharmony_ci#define PPP_MPLSCP 0x80fd 5122851890Sopenharmony_ci#define PPP_LCP 0xc021 5222851890Sopenharmony_ci#define PPP_PAP 0xc023 5322851890Sopenharmony_ci#define PPP_LQR 0xc025 5422851890Sopenharmony_ci#define PPP_CHAP 0xc223 5522851890Sopenharmony_ci#define PPP_CBCP 0xc029 5622851890Sopenharmony_ci#define PPP_INITFCS 0xffff 5722851890Sopenharmony_ci#define PPP_GOODFCS 0xf0b8 5822851890Sopenharmony_citypedef __u32 ext_accm[8]; 5922851890Sopenharmony_cienum NPmode { 6022851890Sopenharmony_ci NPMODE_PASS, 6122851890Sopenharmony_ci NPMODE_DROP, 6222851890Sopenharmony_ci NPMODE_ERROR, 6322851890Sopenharmony_ci NPMODE_QUEUE 6422851890Sopenharmony_ci}; 6522851890Sopenharmony_cistruct pppstat { 6622851890Sopenharmony_ci __u32 ppp_discards; 6722851890Sopenharmony_ci __u32 ppp_ibytes; 6822851890Sopenharmony_ci __u32 ppp_ioctects; 6922851890Sopenharmony_ci __u32 ppp_ipackets; 7022851890Sopenharmony_ci __u32 ppp_ierrors; 7122851890Sopenharmony_ci __u32 ppp_ilqrs; 7222851890Sopenharmony_ci __u32 ppp_obytes; 7322851890Sopenharmony_ci __u32 ppp_ooctects; 7422851890Sopenharmony_ci __u32 ppp_opackets; 7522851890Sopenharmony_ci __u32 ppp_oerrors; 7622851890Sopenharmony_ci __u32 ppp_olqrs; 7722851890Sopenharmony_ci}; 7822851890Sopenharmony_cistruct vjstat { 7922851890Sopenharmony_ci __u32 vjs_packets; 8022851890Sopenharmony_ci __u32 vjs_compressed; 8122851890Sopenharmony_ci __u32 vjs_searches; 8222851890Sopenharmony_ci __u32 vjs_misses; 8322851890Sopenharmony_ci __u32 vjs_uncompressedin; 8422851890Sopenharmony_ci __u32 vjs_compressedin; 8522851890Sopenharmony_ci __u32 vjs_errorin; 8622851890Sopenharmony_ci __u32 vjs_tossed; 8722851890Sopenharmony_ci}; 8822851890Sopenharmony_cistruct compstat { 8922851890Sopenharmony_ci __u32 unc_bytes; 9022851890Sopenharmony_ci __u32 unc_packets; 9122851890Sopenharmony_ci __u32 comp_bytes; 9222851890Sopenharmony_ci __u32 comp_packets; 9322851890Sopenharmony_ci __u32 inc_bytes; 9422851890Sopenharmony_ci __u32 inc_packets; 9522851890Sopenharmony_ci __u32 in_count; 9622851890Sopenharmony_ci __u32 bytes_out; 9722851890Sopenharmony_ci double ratio; 9822851890Sopenharmony_ci}; 9922851890Sopenharmony_cistruct ppp_stats { 10022851890Sopenharmony_ci struct pppstat p; 10122851890Sopenharmony_ci struct vjstat vj; 10222851890Sopenharmony_ci}; 10322851890Sopenharmony_cistruct ppp_comp_stats { 10422851890Sopenharmony_ci struct compstat c; 10522851890Sopenharmony_ci struct compstat d; 10622851890Sopenharmony_ci}; 10722851890Sopenharmony_cistruct ppp_idle { 10822851890Sopenharmony_ci __kernel_old_time_t xmit_idle; 10922851890Sopenharmony_ci __kernel_old_time_t recv_idle; 11022851890Sopenharmony_ci}; 11122851890Sopenharmony_cistruct ppp_idle32 { 11222851890Sopenharmony_ci __s32 xmit_idle; 11322851890Sopenharmony_ci __s32 recv_idle; 11422851890Sopenharmony_ci}; 11522851890Sopenharmony_cistruct ppp_idle64 { 11622851890Sopenharmony_ci __s64 xmit_idle; 11722851890Sopenharmony_ci __s64 recv_idle; 11822851890Sopenharmony_ci}; 11922851890Sopenharmony_ci#endif 120