| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPI_NET_PPP_COMP_H | 
|  | 20 | #define _UAPI_NET_PPP_COMP_H | 
|  | 21 | #define CCP_CONFREQ 1 | 
|  | 22 | #define CCP_CONFACK 2 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define CCP_TERMREQ 5 | 
|  | 24 | #define CCP_TERMACK 6 | 
|  | 25 | #define CCP_RESETREQ 14 | 
|  | 26 | #define CCP_RESETACK 15 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define CCP_MAX_OPTION_LENGTH 32 | 
|  | 28 | #define CCP_CODE(dp) ((dp)[0]) | 
|  | 29 | #define CCP_ID(dp) ((dp)[1]) | 
|  | 30 | #define CCP_LENGTH(dp) (((dp)[2] << 8) + (dp)[3]) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define CCP_HDRLEN 4 | 
|  | 32 | #define CCP_OPT_CODE(dp) ((dp)[0]) | 
|  | 33 | #define CCP_OPT_LENGTH(dp) ((dp)[1]) | 
|  | 34 | #define CCP_OPT_MINLEN 2 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define CI_BSD_COMPRESS 21 | 
|  | 36 | #define CILEN_BSD_COMPRESS 3 | 
|  | 37 | #define BSD_NBITS(x) ((x) & 0x1F) | 
|  | 38 | #define BSD_VERSION(x) ((x) >> 5) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define BSD_CURRENT_VERSION 1 | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 40 | #define BSD_MAKE_OPT(v,n) (((v) << 5) | (n)) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 41 | #define BSD_MIN_BITS 9 | 
|  | 42 | #define BSD_MAX_BITS 15 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define CI_DEFLATE 26 | 
|  | 44 | #define CI_DEFLATE_DRAFT 24 | 
|  | 45 | #define CILEN_DEFLATE 4 | 
|  | 46 | #define DEFLATE_MIN_SIZE 9 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define DEFLATE_MAX_SIZE 15 | 
|  | 48 | #define DEFLATE_METHOD_VAL 8 | 
|  | 49 | #define DEFLATE_SIZE(x) (((x) >> 4) + 8) | 
|  | 50 | #define DEFLATE_METHOD(x) ((x) & 0x0F) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define DEFLATE_MAKE_OPT(w) ((((w) - 8) << 4) + DEFLATE_METHOD_VAL) | 
|  | 52 | #define DEFLATE_CHK_SEQUENCE 0 | 
|  | 53 | #define CI_MPPE 18 | 
|  | 54 | #define CILEN_MPPE 6 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 55 | #define CI_PREDICTOR_1 1 | 
|  | 56 | #define CILEN_PREDICTOR_1 2 | 
|  | 57 | #define CI_PREDICTOR_2 2 | 
|  | 58 | #define CILEN_PREDICTOR_2 2 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 59 | #endif |