FreeBSD kernel netgraph code
ng_vlan.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_vlan_filter
 
struct  ng_vlan_table
 

Macros

#define NG_VLAN_USE_OLD_VLAN_NAME   1
 
#define NG_VLAN_NODE_TYPE   "vlan"
 
#define NGM_VLAN_COOKIE   1068486472
 
#define NG_VLAN_HOOK_DOWNSTREAM   "downstream"
 
#define NG_VLAN_HOOK_NOMATCH   "nomatch"
 
#define VLAN_ENCAP_FROM_FILTER   0x00000001
 
#define VLAN_ENCAP_FROM_NOMATCH   0x00000002
 
#define NG_VLAN_FILTER_FIELDS
 
#define NG_VLAN_TABLE_FIELDS
 

Enumerations

enum  {
  NGM_VLAN_ADD_FILTER = 1 , NGM_VLAN_DEL_FILTER , NGM_VLAN_GET_TABLE , NGM_VLAN_DEL_VID_FLT ,
  NGM_VLAN_GET_DECAP , NGM_VLAN_SET_DECAP , NGM_VLAN_GET_ENCAP , NGM_VLAN_SET_ENCAP ,
  NGM_VLAN_GET_ENCAP_PROTO , NGM_VLAN_SET_ENCAP_PROTO
}
 

Macro Definition Documentation

◆ NG_VLAN_FILTER_FIELDS

#define NG_VLAN_FILTER_FIELDS
Value:
{ \
{ "hook", &ng_parse_hookbuf_type }, \
{ "vlan", &ng_parse_uint16_type }, \
{ "vid", &ng_parse_uint16_type }, \
{ "pcp", &ng_parse_uint8_type }, \
{ "cfi", &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_hookbuf_type
Definition: ng_parse.c:851
const struct ng_parse_type ng_parse_uint8_type
Definition: ng_parse.c:413

Definition at line 78 of file ng_vlan.h.

◆ NG_VLAN_HOOK_DOWNSTREAM

#define NG_VLAN_HOOK_DOWNSTREAM   "downstream"

Definition at line 45 of file ng_vlan.h.

◆ NG_VLAN_HOOK_NOMATCH

#define NG_VLAN_HOOK_NOMATCH   "nomatch"

Definition at line 46 of file ng_vlan.h.

◆ NG_VLAN_NODE_TYPE

#define NG_VLAN_NODE_TYPE   "vlan"

Definition at line 41 of file ng_vlan.h.

◆ NG_VLAN_TABLE_FIELDS

#define NG_VLAN_TABLE_FIELDS
Value:
{ \
{ "n", &ng_parse_uint32_type }, \
{ "filter", &ng_vlan_table_array_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint32_type
Definition: ng_parse.c:608
static const struct ng_parse_type ng_vlan_table_array_type
Definition: ng_vlan.c:98

Definition at line 103 of file ng_vlan.h.

◆ NG_VLAN_USE_OLD_VLAN_NAME

#define NG_VLAN_USE_OLD_VLAN_NAME   1

Definition at line 38 of file ng_vlan.h.

◆ NGM_VLAN_COOKIE

#define NGM_VLAN_COOKIE   1068486472

Definition at line 42 of file ng_vlan.h.

◆ VLAN_ENCAP_FROM_FILTER

#define VLAN_ENCAP_FROM_FILTER   0x00000001

Definition at line 62 of file ng_vlan.h.

◆ VLAN_ENCAP_FROM_NOMATCH

#define VLAN_ENCAP_FROM_NOMATCH   0x00000002

Definition at line 63 of file ng_vlan.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NGM_VLAN_ADD_FILTER 
NGM_VLAN_DEL_FILTER 
NGM_VLAN_GET_TABLE 
NGM_VLAN_DEL_VID_FLT 
NGM_VLAN_GET_DECAP 
NGM_VLAN_SET_DECAP 
NGM_VLAN_GET_ENCAP 
NGM_VLAN_SET_ENCAP 
NGM_VLAN_GET_ENCAP_PROTO 
NGM_VLAN_SET_ENCAP_PROTO 

Definition at line 49 of file ng_vlan.h.