Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
ppp-comp.h File Reference

Go to the source code of this file.

Macros

#define CCP_CONFREQ   1
 
#define CCP_CONFACK   2
 
#define CCP_TERMREQ   5
 
#define CCP_TERMACK   6
 
#define CCP_RESETREQ   14
 
#define CCP_RESETACK   15
 
#define CCP_MAX_OPTION_LENGTH   32
 
#define CCP_CODE(dp)   ((dp)[0])
 
#define CCP_ID(dp)   ((dp)[1])
 
#define CCP_LENGTH(dp)   (((dp)[2] << 8) + (dp)[3])
 
#define CCP_HDRLEN   4
 
#define CCP_OPT_CODE(dp)   ((dp)[0])
 
#define CCP_OPT_LENGTH(dp)   ((dp)[1])
 
#define CCP_OPT_MINLEN   2
 
#define CI_BSD_COMPRESS   21 /* config. option for BSD-Compress */
 
#define CILEN_BSD_COMPRESS   3 /* length of config. option */
 
#define BSD_NBITS(x)   ((x) & 0x1F) /* number of bits requested */
 
#define BSD_VERSION(x)   ((x) >> 5) /* version of option format */
 
#define BSD_CURRENT_VERSION   1 /* current version number */
 
#define BSD_MAKE_OPT(v, n)   (((v) << 5) | (n))
 
#define BSD_MIN_BITS   9 /* smallest code size supported */
 
#define BSD_MAX_BITS   15 /* largest code size supported */
 
#define CI_DEFLATE   26 /* config option for Deflate */
 
#define CI_DEFLATE_DRAFT   24 /* value used in original draft RFC */
 
#define CILEN_DEFLATE   4 /* length of its config option */
 
#define DEFLATE_MIN_SIZE   9
 
#define DEFLATE_MAX_SIZE   15
 
#define DEFLATE_METHOD_VAL   8
 
#define DEFLATE_SIZE(x)   (((x) >> 4) + 8)
 
#define DEFLATE_METHOD(x)   ((x) & 0x0F)
 
#define DEFLATE_MAKE_OPT(w)   ((((w) - 8) << 4) + DEFLATE_METHOD_VAL)
 
#define DEFLATE_CHK_SEQUENCE   0
 
#define CI_MPPE   18 /* config option for MPPE */
 
#define CILEN_MPPE   6 /* length of config option */
 
#define CI_PREDICTOR_1   1 /* config option for Predictor-1 */
 
#define CILEN_PREDICTOR_1   2 /* length of its config option */
 
#define CI_PREDICTOR_2   2 /* config option for Predictor-2 */
 
#define CILEN_PREDICTOR_2   2 /* length of its config option */
 

Macro Definition Documentation

#define BSD_CURRENT_VERSION   1 /* current version number */

Definition at line 54 of file ppp-comp.h.

#define BSD_MAKE_OPT (   v,
  n 
)    (((v) << 5) | (n))

Definition at line 55 of file ppp-comp.h.

#define BSD_MAX_BITS   15 /* largest code size supported */

Definition at line 58 of file ppp-comp.h.

#define BSD_MIN_BITS   9 /* smallest code size supported */

Definition at line 57 of file ppp-comp.h.

#define BSD_NBITS (   x)    ((x) & 0x1F) /* number of bits requested */

Definition at line 52 of file ppp-comp.h.

#define BSD_VERSION (   x)    ((x) >> 5) /* version of option format */

Definition at line 53 of file ppp-comp.h.

#define CCP_CODE (   dp)    ((dp)[0])

Definition at line 35 of file ppp-comp.h.

#define CCP_CONFACK   2

Definition at line 19 of file ppp-comp.h.

#define CCP_CONFREQ   1

Definition at line 18 of file ppp-comp.h.

#define CCP_HDRLEN   4

Definition at line 38 of file ppp-comp.h.

#define CCP_ID (   dp)    ((dp)[1])

Definition at line 36 of file ppp-comp.h.

#define CCP_LENGTH (   dp)    (((dp)[2] << 8) + (dp)[3])

Definition at line 37 of file ppp-comp.h.

#define CCP_MAX_OPTION_LENGTH   32

Definition at line 29 of file ppp-comp.h.

#define CCP_OPT_CODE (   dp)    ((dp)[0])

Definition at line 40 of file ppp-comp.h.

#define CCP_OPT_LENGTH (   dp)    ((dp)[1])

Definition at line 41 of file ppp-comp.h.

#define CCP_OPT_MINLEN   2

Definition at line 42 of file ppp-comp.h.

#define CCP_RESETACK   15

Definition at line 23 of file ppp-comp.h.

#define CCP_RESETREQ   14

Definition at line 22 of file ppp-comp.h.

#define CCP_TERMACK   6

Definition at line 21 of file ppp-comp.h.

#define CCP_TERMREQ   5

Definition at line 20 of file ppp-comp.h.

#define CI_BSD_COMPRESS   21 /* config. option for BSD-Compress */

Definition at line 48 of file ppp-comp.h.

#define CI_DEFLATE   26 /* config option for Deflate */

Definition at line 64 of file ppp-comp.h.

#define CI_DEFLATE_DRAFT   24 /* value used in original draft RFC */

Definition at line 65 of file ppp-comp.h.

#define CI_MPPE   18 /* config option for MPPE */

Definition at line 80 of file ppp-comp.h.

#define CI_PREDICTOR_1   1 /* config option for Predictor-1 */

Definition at line 87 of file ppp-comp.h.

#define CI_PREDICTOR_2   2 /* config option for Predictor-2 */

Definition at line 89 of file ppp-comp.h.

#define CILEN_BSD_COMPRESS   3 /* length of config. option */

Definition at line 49 of file ppp-comp.h.

#define CILEN_DEFLATE   4 /* length of its config option */

Definition at line 66 of file ppp-comp.h.

#define CILEN_MPPE   6 /* length of config option */

Definition at line 81 of file ppp-comp.h.

#define CILEN_PREDICTOR_1   2 /* length of its config option */

Definition at line 88 of file ppp-comp.h.

#define CILEN_PREDICTOR_2   2 /* length of its config option */

Definition at line 90 of file ppp-comp.h.

#define DEFLATE_CHK_SEQUENCE   0

Definition at line 74 of file ppp-comp.h.

#define DEFLATE_MAKE_OPT (   w)    ((((w) - 8) << 4) + DEFLATE_METHOD_VAL)

Definition at line 73 of file ppp-comp.h.

#define DEFLATE_MAX_SIZE   15

Definition at line 69 of file ppp-comp.h.

#define DEFLATE_METHOD (   x)    ((x) & 0x0F)

Definition at line 72 of file ppp-comp.h.

#define DEFLATE_METHOD_VAL   8

Definition at line 70 of file ppp-comp.h.

#define DEFLATE_MIN_SIZE   9

Definition at line 68 of file ppp-comp.h.

#define DEFLATE_SIZE (   x)    (((x) >> 4) + 8)

Definition at line 71 of file ppp-comp.h.