34#ifndef _NETGRAPH_NG_VLAN_H_
35#define _NETGRAPH_NG_VLAN_H_
38#define NG_VLAN_USE_OLD_VLAN_NAME 1
41#define NG_VLAN_NODE_TYPE "vlan"
42#define NGM_VLAN_COOKIE 1068486472
45#define NG_VLAN_HOOK_DOWNSTREAM "downstream"
46#define NG_VLAN_HOOK_NOMATCH "nomatch"
62#define VLAN_ENCAP_FROM_FILTER 0x00000001
63#define VLAN_ENCAP_FROM_NOMATCH 0x00000002
68#ifdef NG_VLAN_USE_OLD_VLAN_NAME
77#ifdef NG_VLAN_USE_OLD_VLAN_NAME
78#define NG_VLAN_FILTER_FIELDS { \
79 { "hook", &ng_parse_hookbuf_type }, \
80 { "vlan", &ng_parse_uint16_type }, \
81 { "vid", &ng_parse_uint16_type }, \
82 { "pcp", &ng_parse_uint8_type }, \
83 { "cfi", &ng_parse_uint8_type }, \
87#define NG_VLAN_FILTER_FIELDS { \
88 { "hook", &ng_parse_hookbuf_type }, \
89 { "vid", &ng_parse_uint16_type }, \
90 { "pcp", &ng_parse_uint8_type }, \
91 { "cfi", &ng_parse_uint8_type }, \
103#define NG_VLAN_TABLE_FIELDS { \
104 { "n", &ng_parse_uint32_type }, \
105 { "filter", &ng_vlan_table_array_type }, \
@ NGM_VLAN_GET_ENCAP_PROTO
@ NGM_VLAN_SET_ENCAP_PROTO
char hook_name[NG_HOOKSIZ]