FreeBSD kernel netgraph code
ng_source.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_source_stats
 
struct  ng_source_embed_info
 
struct  ng_source_embed_cnt_info
 

Macros

#define NG_SOURCE_NODE_TYPE   "source"
 
#define NGM_SOURCE_COOKIE   1110646684
 
#define NG_SOURCE_HOOK_INPUT   "input"
 
#define NG_SOURCE_HOOK_OUTPUT   "output"
 
#define NG_SOURCE_STATS_TYPE_INFO
 
#define NGM_SOURCE_EMBED_ENABLE   0x01 /* enable embedding */
 
#define NGM_SOURCE_INC_CNT_PER_LIST   0x02 /* increment once per list */
 
#define NG_SOURCE_EMBED_TYPE_INFO
 
#define NG_SOURCE_COUNTERS   4
 
#define NG_SOURCE_EMBED_CNT_TYPE_INFO
 

Enumerations

enum  {
  NGM_SOURCE_GET_STATS = 1 , NGM_SOURCE_CLR_STATS , NGM_SOURCE_GETCLR_STATS , NGM_SOURCE_START ,
  NGM_SOURCE_STOP , NGM_SOURCE_CLR_DATA , NGM_SOURCE_SETIFACE , NGM_SOURCE_SETPPS ,
  NGM_SOURCE_SET_TIMESTAMP , NGM_SOURCE_GET_TIMESTAMP , NGM_SOURCE_SET_COUNTER , NGM_SOURCE_GET_COUNTER
}
 

Variables

const struct ng_parse_type ng_source_timeval_type
 

Macro Definition Documentation

◆ NG_SOURCE_COUNTERS

#define NG_SOURCE_COUNTERS   4

Definition at line 98 of file ng_source.h.

◆ NG_SOURCE_EMBED_CNT_TYPE_INFO

#define NG_SOURCE_EMBED_CNT_TYPE_INFO
Value:
{ \
{ "offset", &ng_parse_hint16_type }, \
{ "flags", &ng_parse_hint8_type }, \
{ "width", &ng_parse_uint8_type }, \
{ "next_val", &ng_parse_uint32_type }, \
{ "min_val", &ng_parse_uint32_type }, \
{ "max_val", &ng_parse_uint32_type }, \
{ "increment", &ng_parse_int32_type }, \
{ "index", &ng_parse_uint8_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_int32_type
Definition: ng_parse.c:598
const struct ng_parse_type ng_parse_hint8_type
Definition: ng_parse.c:418
const struct ng_parse_type ng_parse_uint32_type
Definition: ng_parse.c:608
const struct ng_parse_type ng_parse_uint8_type
Definition: ng_parse.c:413
const struct ng_parse_type ng_parse_hint16_type
Definition: ng_parse.c:514

Definition at line 111 of file ng_source.h.

◆ NG_SOURCE_EMBED_TYPE_INFO

#define NG_SOURCE_EMBED_TYPE_INFO
Value:
{ \
{ "offset", &ng_parse_hint16_type }, \
{ "flags", &ng_parse_hint8_type }, \
{ NULL } \
}

Definition at line 91 of file ng_source.h.

◆ NG_SOURCE_HOOK_INPUT

#define NG_SOURCE_HOOK_INPUT   "input"

Definition at line 50 of file ng_source.h.

◆ NG_SOURCE_HOOK_OUTPUT

#define NG_SOURCE_HOOK_OUTPUT   "output"

Definition at line 51 of file ng_source.h.

◆ NG_SOURCE_NODE_TYPE

#define NG_SOURCE_NODE_TYPE   "source"

Definition at line 46 of file ng_source.h.

◆ NG_SOURCE_STATS_TYPE_INFO

#define NG_SOURCE_STATS_TYPE_INFO
Value:
{ \
{ "outOctets", &ng_parse_uint64_type }, \
{ "outFrames", &ng_parse_uint64_type }, \
{ "queueOctets", &ng_parse_uint32_type }, \
{ "queueFrames", &ng_parse_uint32_type }, \
{ "maxPps", &ng_parse_uint32_type }, \
{ "startTime", &ng_source_timeval_type }, \
{ "endTime", &ng_source_timeval_type }, \
{ "elapsedTime", &ng_source_timeval_type }, \
{ "lastTime", &ng_source_timeval_type }, \
{ NULL } \
}
const struct ng_parse_type ng_parse_uint64_type
Definition: ng_parse.c:703
const struct ng_parse_type ng_source_timeval_type
Definition: ng_source.c:140

Definition at line 68 of file ng_source.h.

◆ NGM_SOURCE_COOKIE

#define NGM_SOURCE_COOKIE   1110646684

Definition at line 47 of file ng_source.h.

◆ NGM_SOURCE_EMBED_ENABLE

#define NGM_SOURCE_EMBED_ENABLE   0x01 /* enable embedding */

Definition at line 87 of file ng_source.h.

◆ NGM_SOURCE_INC_CNT_PER_LIST

#define NGM_SOURCE_INC_CNT_PER_LIST   0x02 /* increment once per list */

Definition at line 88 of file ng_source.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NGM_SOURCE_GET_STATS 
NGM_SOURCE_CLR_STATS 
NGM_SOURCE_GETCLR_STATS 
NGM_SOURCE_START 
NGM_SOURCE_STOP 
NGM_SOURCE_CLR_DATA 
NGM_SOURCE_SETIFACE 
NGM_SOURCE_SETPPS 
NGM_SOURCE_SET_TIMESTAMP 
NGM_SOURCE_GET_TIMESTAMP 
NGM_SOURCE_SET_COUNTER 
NGM_SOURCE_GET_COUNTER 

Definition at line 124 of file ng_source.h.

Variable Documentation

◆ ng_source_timeval_type

const struct ng_parse_type ng_source_timeval_type
extern

Definition at line 140 of file ng_source.c.