FreeBSD kernel netgraph code
ng_mppc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ng_mppc_config
 

Macros

#define NG_MPPC_NODE_TYPE   "mppc"
 
#define NGM_MPPC_COOKIE   942886745
 
#define NG_MPPC_HOOK_COMP   "comp" /* compression hook */
 
#define NG_MPPC_HOOK_DECOMP   "decomp" /* decompression hook */
 
#define MPPE_KEY_LEN   16
 
#define MPPC_MAX_BLOWUP(n)   ((n) * 9 / 8 + 26)
 
#define MPPC_BIT   0x00000001 /* mppc compression bits */
 
#define MPPE_40   0x00000020 /* use 40 bit key */
 
#define MPPE_56   0x00000080 /* use 56 bit key */
 
#define MPPE_128   0x00000040 /* use 128 bit key */
 
#define MPPE_BITS   0x000000e0 /* mppe encryption bits */
 
#define MPPE_STATELESS   0x01000000 /* use stateless mode */
 
#define MPPC_VALID_BITS   0x010000e1 /* possibly valid bits */
 

Enumerations

enum  { NGM_MPPC_CONFIG_COMP = 1 , NGM_MPPC_CONFIG_DECOMP , NGM_MPPC_RESETREQ }
 

Macro Definition Documentation

◆ MPPC_BIT

#define MPPC_BIT   0x00000001 /* mppc compression bits */

Definition at line 62 of file ng_mppc.h.

◆ MPPC_MAX_BLOWUP

#define MPPC_MAX_BLOWUP (   n)    ((n) * 9 / 8 + 26)

Definition at line 59 of file ng_mppc.h.

◆ MPPC_VALID_BITS

#define MPPC_VALID_BITS   0x010000e1 /* possibly valid bits */

Definition at line 68 of file ng_mppc.h.

◆ MPPE_128

#define MPPE_128   0x00000040 /* use 128 bit key */

Definition at line 65 of file ng_mppc.h.

◆ MPPE_40

#define MPPE_40   0x00000020 /* use 40 bit key */

Definition at line 63 of file ng_mppc.h.

◆ MPPE_56

#define MPPE_56   0x00000080 /* use 56 bit key */

Definition at line 64 of file ng_mppc.h.

◆ MPPE_BITS

#define MPPE_BITS   0x000000e0 /* mppe encryption bits */

Definition at line 66 of file ng_mppc.h.

◆ MPPE_KEY_LEN

#define MPPE_KEY_LEN   16

Definition at line 56 of file ng_mppc.h.

◆ MPPE_STATELESS

#define MPPE_STATELESS   0x01000000 /* use stateless mode */

Definition at line 67 of file ng_mppc.h.

◆ NG_MPPC_HOOK_COMP

#define NG_MPPC_HOOK_COMP   "comp" /* compression hook */

Definition at line 52 of file ng_mppc.h.

◆ NG_MPPC_HOOK_DECOMP

#define NG_MPPC_HOOK_DECOMP   "decomp" /* decompression hook */

Definition at line 53 of file ng_mppc.h.

◆ NG_MPPC_NODE_TYPE

#define NG_MPPC_NODE_TYPE   "mppc"

Definition at line 48 of file ng_mppc.h.

◆ NGM_MPPC_COOKIE

#define NGM_MPPC_COOKIE   942886745

Definition at line 49 of file ng_mppc.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NGM_MPPC_CONFIG_COMP 
NGM_MPPC_CONFIG_DECOMP 
NGM_MPPC_RESETREQ 

Definition at line 78 of file ng_mppc.h.