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 |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #define CCP_TERMREQ 5 |
| 25 | #define CCP_TERMACK 6 |
| 26 | #define CCP_RESETREQ 14 |
| 27 | #define CCP_RESETACK 15 |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | #define CCP_MAX_OPTION_LENGTH 32 |
| 30 | #define CCP_CODE(dp) ((dp)[0]) |
| 31 | #define CCP_ID(dp) ((dp)[1]) |
| 32 | #define CCP_LENGTH(dp) (((dp)[2] << 8) + (dp)[3]) |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | #define CCP_HDRLEN 4 |
| 35 | #define CCP_OPT_CODE(dp) ((dp)[0]) |
| 36 | #define CCP_OPT_LENGTH(dp) ((dp)[1]) |
| 37 | #define CCP_OPT_MINLEN 2 |
| 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 39 | #define CI_BSD_COMPRESS 21 |
| 40 | #define CILEN_BSD_COMPRESS 3 |
| 41 | #define BSD_NBITS(x) ((x) & 0x1F) |
| 42 | #define BSD_VERSION(x) ((x) >> 5) |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | #define BSD_CURRENT_VERSION 1 |
| 45 | #define BSD_MAKE_OPT(v, n) (((v) << 5) | (n)) |
| 46 | #define BSD_MIN_BITS 9 |
| 47 | #define BSD_MAX_BITS 15 |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define CI_DEFLATE 26 |
| 50 | #define CI_DEFLATE_DRAFT 24 |
| 51 | #define CILEN_DEFLATE 4 |
| 52 | #define DEFLATE_MIN_SIZE 9 |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #define DEFLATE_MAX_SIZE 15 |
| 55 | #define DEFLATE_METHOD_VAL 8 |
| 56 | #define DEFLATE_SIZE(x) (((x) >> 4) + 8) |
| 57 | #define DEFLATE_METHOD(x) ((x) & 0x0F) |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | #define DEFLATE_MAKE_OPT(w) ((((w) - 8) << 4) + DEFLATE_METHOD_VAL) |
| 60 | #define DEFLATE_CHK_SEQUENCE 0 |
| 61 | #define CI_MPPE 18 |
| 62 | #define CILEN_MPPE 6 |
| 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | #define CI_PREDICTOR_1 1 |
| 65 | #define CILEN_PREDICTOR_1 2 |
| 66 | #define CI_PREDICTOR_2 2 |
| 67 | #define CILEN_PREDICTOR_2 2 |
| 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | #endif |