FreeBSD kernel netgraph code
ng_tag.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_tag_hookin
 
struct  ng_tag_hookout
 

Macros

#define NG_TAG_NODE_TYPE   "tag"
 
#define NGM_TAG_COOKIE   1149771193
 
#define NG_TAG_HOOKIN_SIZE(taglen)    (sizeof(struct ng_tag_hookin) + (taglen))
 
#define NG_TAG_HOOKOUT_SIZE(taglen)    (sizeof(struct ng_tag_hookout) + (taglen))
 
#define NG_TAG_HOOKIN_TYPE_INFO(tdtype)
 
#define NG_TAG_HOOKOUT_TYPE_INFO(tdtype)
 

Enumerations

enum  { NGM_TAG_SET_HOOKIN = 1 , NGM_TAG_GET_HOOKIN , NGM_TAG_SET_HOOKOUT , NGM_TAG_GET_HOOKOUT }
 

Macro Definition Documentation

◆ NG_TAG_HOOKIN_SIZE

#define NG_TAG_HOOKIN_SIZE (   taglen)     (sizeof(struct ng_tag_hookin) + (taglen))

Definition at line 66 of file ng_tag.h.

◆ NG_TAG_HOOKIN_TYPE_INFO

#define NG_TAG_HOOKIN_TYPE_INFO (   tdtype)
Value:
{ \
{ "thisHook", &ng_parse_hookbuf_type }, \
{ "ifMatch", &ng_parse_hookbuf_type }, \
{ "ifNotMatch", &ng_parse_hookbuf_type }, \
{ "strip", &ng_parse_uint8_type }, \
{ "tag_cookie", &ng_parse_uint32_type }, \
{ "tag_id", &ng_parse_uint16_type }, \
{ "tag_len", &ng_parse_uint16_type }, \
{ "tag_data", (tdtype) }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint16_type
Definition: ng_parse.c:509
const struct ng_parse_type ng_parse_uint32_type
Definition: ng_parse.c:608
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 73 of file ng_tag.h.

◆ NG_TAG_HOOKOUT_SIZE

#define NG_TAG_HOOKOUT_SIZE (   taglen)     (sizeof(struct ng_tag_hookout) + (taglen))

Definition at line 69 of file ng_tag.h.

◆ NG_TAG_HOOKOUT_TYPE_INFO

#define NG_TAG_HOOKOUT_TYPE_INFO (   tdtype)
Value:
{ \
{ "thisHook", &ng_parse_hookbuf_type }, \
{ "tag_cookie", &ng_parse_uint32_type }, \
{ "tag_id", &ng_parse_uint16_type }, \
{ "tag_len", &ng_parse_uint16_type }, \
{ "tag_data", (tdtype) }, \
{ NULL } \
}

Definition at line 85 of file ng_tag.h.

◆ NG_TAG_NODE_TYPE

#define NG_TAG_NODE_TYPE   "tag"

Definition at line 36 of file ng_tag.h.

◆ NGM_TAG_COOKIE

#define NGM_TAG_COOKIE   1149771193

Definition at line 37 of file ng_tag.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NGM_TAG_SET_HOOKIN 
NGM_TAG_GET_HOOKIN 
NGM_TAG_SET_HOOKOUT 
NGM_TAG_GET_HOOKOUT 

Definition at line 120 of file ng_tag.h.