blob: 08aeab34a8d59b0e400f8ae4e0b3d2e6d180a7a8 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 Cheng655a7c02013-10-16 16:09:24 -070023#define CCP_TERMREQ 5
24#define CCP_TERMACK 6
25#define CCP_RESETREQ 14
26#define CCP_RESETACK 15
Ben Cheng655a7c02013-10-16 16:09:24 -070027#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 Cheng655a7c02013-10-16 16:09:24 -070031#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 Cheng655a7c02013-10-16 16:09:24 -070035#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 Cheng655a7c02013-10-16 16:09:24 -070039#define BSD_CURRENT_VERSION 1
Tao Baod7db5942015-01-28 10:07:51 -080040#define BSD_MAKE_OPT(v,n) (((v) << 5) | (n))
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define BSD_MIN_BITS 9
42#define BSD_MAX_BITS 15
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define CI_DEFLATE 26
44#define CI_DEFLATE_DRAFT 24
45#define CILEN_DEFLATE 4
46#define DEFLATE_MIN_SIZE 9
Ben Cheng655a7c02013-10-16 16:09:24 -070047#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 Cheng655a7c02013-10-16 16:09:24 -070051#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 Cheng655a7c02013-10-16 16:09:24 -070055#define CI_PREDICTOR_1 1
56#define CILEN_PREDICTOR_1 2
57#define CI_PREDICTOR_2 2
58#define CILEN_PREDICTOR_2 2
Ben Cheng655a7c02013-10-16 16:09:24 -070059#endif