FreeBSD kernel netgraph code
ng_ppp.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_ppp_mp_state
 
struct  ng_ppp_link_conf
 
struct  ng_ppp_bund_conf
 
struct  ng_ppp_node_conf
 
struct  ng_ppp_link_stat
 
struct  ng_ppp_link_stat64
 

Macros

#define NG_PPP_NODE_TYPE   "ppp"
 
#define NGM_PPP_COOKIE   940897795
 
#define NG_PPP_STATS64
 
#define NG_PPP_MAX_LINKS   16
 
#define NG_PPP_BUNDLE_LINKNUM   0xffff
 
#define NG_PPP_MAX_LATENCY   1000 /* 1 second */
 
#define NG_PPP_MAX_BANDWIDTH   125000 /* 10 Mbits / second */
 
#define NG_PPP_HOOK_BYPASS   "bypass" /* unknown protocols */
 
#define NG_PPP_HOOK_COMPRESS   "compress" /* outgoing compression */
 
#define NG_PPP_HOOK_DECOMPRESS   "decompress" /* incoming decompression */
 
#define NG_PPP_HOOK_ENCRYPT   "encrypt" /* outgoing encryption */
 
#define NG_PPP_HOOK_DECRYPT   "decrypt" /* incoming decryption */
 
#define NG_PPP_HOOK_VJC_IP   "vjc_ip" /* VJC raw IP */
 
#define NG_PPP_HOOK_VJC_COMP   "vjc_vjcomp" /* VJC compressed TCP */
 
#define NG_PPP_HOOK_VJC_UNCOMP   "vjc_vjuncomp" /* VJC uncompressed TCP */
 
#define NG_PPP_HOOK_VJC_VJIP   "vjc_vjip" /* VJC uncompressed IP */
 
#define NG_PPP_HOOK_INET   "inet" /* IP packet data */
 
#define NG_PPP_HOOK_ATALK   "atalk" /* AppleTalk packet data */
 
#define NG_PPP_HOOK_IPX   "ipx" /* IPX packet data */
 
#define NG_PPP_HOOK_IPV6   "ipv6" /* IPv6 packet data */
 
#define NG_PPP_HOOK_LINK_PREFIX   "link" /* append decimal link number */
 
#define NG_PPP_MP_STATE_TYPE_INFO(atype)
 
#define NG_PPP_LINK_TYPE_INFO
 
#define NG_PPP_BUND_TYPE_INFO
 
#define NG_PPP_CONFIG_TYPE_INFO(bctype, arytype)
 
#define NG_PPP_STATS_TYPE_INFO
 
#define NG_PPP_STATS64_TYPE_INFO
 

Enumerations

enum  { NG_PPP_COMPRESS_NONE = 0 , NG_PPP_COMPRESS_SIMPLE , NG_PPP_COMPRESS_FULL }
 
enum  { NG_PPP_DECOMPRESS_NONE = 0 , NG_PPP_DECOMPRESS_SIMPLE , NG_PPP_DECOMPRESS_FULL }
 
enum  {
  NGM_PPP_SET_CONFIG = 1 , NGM_PPP_GET_CONFIG , NGM_PPP_GET_MP_STATE , NGM_PPP_GET_LINK_STATS ,
  NGM_PPP_CLR_LINK_STATS , NGM_PPP_GETCLR_LINK_STATS , NGM_PPP_GET_LINK_STATS64 , NGM_PPP_GETCLR_LINK_STATS64
}
 

Macro Definition Documentation

◆ NG_PPP_BUND_TYPE_INFO

#define NG_PPP_BUND_TYPE_INFO
Value:
{ \
{ "mrru", &ng_parse_uint16_type }, \
{ "enableMultilink", &ng_parse_uint8_type }, \
{ "recvShortSeq", &ng_parse_uint8_type }, \
{ "xmitShortSeq", &ng_parse_uint8_type }, \
{ "enableRoundRobin", &ng_parse_uint8_type }, \
{ "enableIP", &ng_parse_uint8_type }, \
{ "enableIPv6", &ng_parse_uint8_type }, \
{ "enableAtalk", &ng_parse_uint8_type }, \
{ "enableIPX", &ng_parse_uint8_type }, \
{ "enableCompression", &ng_parse_uint8_type }, \
{ "enableDecompression", &ng_parse_uint8_type }, \
{ "enableEncryption", &ng_parse_uint8_type }, \
{ "enableDecryption", &ng_parse_uint8_type }, \
{ "enableVJCompression", &ng_parse_uint8_type }, \
{ "enableVJDecompression", &ng_parse_uint8_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint16_type
Definition: ng_parse.c:509
const struct ng_parse_type ng_parse_uint8_type
Definition: ng_parse.c:413

Definition at line 163 of file ng_ppp.h.

◆ NG_PPP_BUNDLE_LINKNUM

#define NG_PPP_BUNDLE_LINKNUM   0xffff

Definition at line 58 of file ng_ppp.h.

◆ NG_PPP_CONFIG_TYPE_INFO

#define NG_PPP_CONFIG_TYPE_INFO (   bctype,
  arytype 
)
Value:
{ \
{ "bund", (bctype) }, \
{ "links", (arytype) }, \
{ NULL } \
}

Definition at line 189 of file ng_ppp.h.

◆ NG_PPP_HOOK_ATALK

#define NG_PPP_HOOK_ATALK   "atalk" /* AppleTalk packet data */

Definition at line 75 of file ng_ppp.h.

◆ NG_PPP_HOOK_BYPASS

#define NG_PPP_HOOK_BYPASS   "bypass" /* unknown protocols */

Definition at line 65 of file ng_ppp.h.

◆ NG_PPP_HOOK_COMPRESS

#define NG_PPP_HOOK_COMPRESS   "compress" /* outgoing compression */

Definition at line 66 of file ng_ppp.h.

◆ NG_PPP_HOOK_DECOMPRESS

#define NG_PPP_HOOK_DECOMPRESS   "decompress" /* incoming decompression */

Definition at line 67 of file ng_ppp.h.

◆ NG_PPP_HOOK_DECRYPT

#define NG_PPP_HOOK_DECRYPT   "decrypt" /* incoming decryption */

Definition at line 69 of file ng_ppp.h.

◆ NG_PPP_HOOK_ENCRYPT

#define NG_PPP_HOOK_ENCRYPT   "encrypt" /* outgoing encryption */

Definition at line 68 of file ng_ppp.h.

◆ NG_PPP_HOOK_INET

#define NG_PPP_HOOK_INET   "inet" /* IP packet data */

Definition at line 74 of file ng_ppp.h.

◆ NG_PPP_HOOK_IPV6

#define NG_PPP_HOOK_IPV6   "ipv6" /* IPv6 packet data */

Definition at line 77 of file ng_ppp.h.

◆ NG_PPP_HOOK_IPX

#define NG_PPP_HOOK_IPX   "ipx" /* IPX packet data */

Definition at line 76 of file ng_ppp.h.

◆ NG_PPP_HOOK_LINK_PREFIX

#define NG_PPP_HOOK_LINK_PREFIX   "link" /* append decimal link number */

Definition at line 79 of file ng_ppp.h.

◆ NG_PPP_HOOK_VJC_COMP

#define NG_PPP_HOOK_VJC_COMP   "vjc_vjcomp" /* VJC compressed TCP */

Definition at line 71 of file ng_ppp.h.

◆ NG_PPP_HOOK_VJC_IP

#define NG_PPP_HOOK_VJC_IP   "vjc_ip" /* VJC raw IP */

Definition at line 70 of file ng_ppp.h.

◆ NG_PPP_HOOK_VJC_UNCOMP

#define NG_PPP_HOOK_VJC_UNCOMP   "vjc_vjuncomp" /* VJC uncompressed TCP */

Definition at line 72 of file ng_ppp.h.

◆ NG_PPP_HOOK_VJC_VJIP

#define NG_PPP_HOOK_VJC_VJIP   "vjc_vjip" /* VJC uncompressed IP */

Definition at line 73 of file ng_ppp.h.

◆ NG_PPP_LINK_TYPE_INFO

#define NG_PPP_LINK_TYPE_INFO
Value:
{ \
{ "enableLink", &ng_parse_uint8_type }, \
{ "enableProtoComp", &ng_parse_uint8_type }, \
{ "enableACFComp", &ng_parse_uint8_type }, \
{ "mru", &ng_parse_uint16_type }, \
{ "latency", &ng_parse_uint32_type }, \
{ "bandwidth", &ng_parse_uint32_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint32_type
Definition: ng_parse.c:608

Definition at line 133 of file ng_ppp.h.

◆ NG_PPP_MAX_BANDWIDTH

#define NG_PPP_MAX_BANDWIDTH   125000 /* 10 Mbits / second */

Definition at line 62 of file ng_ppp.h.

◆ NG_PPP_MAX_LATENCY

#define NG_PPP_MAX_LATENCY   1000 /* 1 second */

Definition at line 61 of file ng_ppp.h.

◆ NG_PPP_MAX_LINKS

#define NG_PPP_MAX_LINKS   16

Definition at line 55 of file ng_ppp.h.

◆ NG_PPP_MP_STATE_TYPE_INFO

#define NG_PPP_MP_STATE_TYPE_INFO (   atype)
Value:
{ \
{ "rseq", (atype) }, \
{ "mseq", &ng_parse_hint32_type }, \
{ "xseq", &ng_parse_hint32_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_hint32_type
Definition: ng_parse.c:613

Definition at line 115 of file ng_ppp.h.

◆ NG_PPP_NODE_TYPE

#define NG_PPP_NODE_TYPE   "ppp"

Definition at line 48 of file ng_ppp.h.

◆ NG_PPP_STATS64

#define NG_PPP_STATS64

Definition at line 52 of file ng_ppp.h.

◆ NG_PPP_STATS64_TYPE_INFO

#define NG_PPP_STATS64_TYPE_INFO
Value:
{ \
{ "xmitFrames", &ng_parse_uint64_type }, \
{ "xmitOctets", &ng_parse_uint64_type }, \
{ "recvFrames", &ng_parse_uint64_type }, \
{ "recvOctets", &ng_parse_uint64_type }, \
{ "badProtos", &ng_parse_uint64_type }, \
{ "runts", &ng_parse_uint64_type }, \
{ "dupFragments", &ng_parse_uint64_type }, \
{ "dropFragments", &ng_parse_uint64_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint64_type
Definition: ng_parse.c:703

Definition at line 233 of file ng_ppp.h.

◆ NG_PPP_STATS_TYPE_INFO

#define NG_PPP_STATS_TYPE_INFO
Value:
{ \
{ "xmitFrames", &ng_parse_uint32_type }, \
{ "xmitOctets", &ng_parse_uint32_type }, \
{ "recvFrames", &ng_parse_uint32_type }, \
{ "recvOctets", &ng_parse_uint32_type }, \
{ "badProtos", &ng_parse_uint32_type }, \
{ "runts", &ng_parse_uint32_type }, \
{ "dupFragments", &ng_parse_uint32_type }, \
{ "dropFragments", &ng_parse_uint32_type }, \
{ NULL } \
}

Definition at line 208 of file ng_ppp.h.

◆ NGM_PPP_COOKIE

#define NGM_PPP_COOKIE   940897795

Definition at line 49 of file ng_ppp.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NG_PPP_COMPRESS_NONE 
NG_PPP_COMPRESS_SIMPLE 
NG_PPP_COMPRESS_FULL 

Definition at line 82 of file ng_ppp.h.

◆ anonymous enum

anonymous enum
Enumerator
NG_PPP_DECOMPRESS_NONE 
NG_PPP_DECOMPRESS_SIMPLE 
NG_PPP_DECOMPRESS_FULL 

Definition at line 89 of file ng_ppp.h.

◆ anonymous enum

anonymous enum
Enumerator
NGM_PPP_SET_CONFIG 
NGM_PPP_GET_CONFIG 
NGM_PPP_GET_MP_STATE 
NGM_PPP_GET_LINK_STATS 
NGM_PPP_CLR_LINK_STATS 
NGM_PPP_GETCLR_LINK_STATS 
NGM_PPP_GET_LINK_STATS64 
NGM_PPP_GETCLR_LINK_STATS64 

Definition at line 96 of file ng_ppp.h.