FreeBSD kernel netgraph code
|
Go to the source code of this file.
Data Structures | |
struct | ng_mesg |
struct | ng_mesg::ng_msghdr |
struct | ngm_mkpeer |
struct | ngm_connect |
struct | ngm_name |
struct | ngm_rmhook |
struct | nodeinfo |
struct | linkinfo |
struct | hooklist |
struct | namelist |
struct | typeinfo |
struct | typelist |
struct | ngm_bandwidth |
struct | ngm_queue_state |
struct | flow_manager |
Macros | |
#define | NG_TYPESIZ 32 /* max type name len (including null) */ |
#define | NG_HOOKSIZ 32 /* max hook name len (including null) */ |
#define | NG_NODESIZ 32 /* max node name len (including null) */ |
#define | NG_PATHSIZ 512 /* max path len (including null) */ |
#define | NG_CMDSTRSIZ 32 /* max command string (including null) */ |
#define | NG_TEXTRESPONSE 1024 /* allow this length for a text response */ |
#define | NGM_READONLY 0x10000000 |
#define | NGM_HASREPLY 0x20000000 |
#define | NG_GENERIC_NG_MESG_INFO(dtype) |
#define | NG_VERSION 8 |
#define | NGF_ORIG 0x00000000 /* the msg is the original request */ |
#define | NGF_RESP 0x00000001 /* the message is a response */ |
#define | ng_ID_t uint32_t |
#define | NGM_GENERIC_COOKIE 1137070366 |
#define | NGM_FLOW_COOKIE 851672669 /* temp for debugging */ |
#define | NGM_LINK_IS_UP 32 /* e.g. carrier found - no data */ |
#define | NGM_LINK_IS_DOWN 33 /* carrier lost, includes queue state */ |
#define | NGM_HIGH_WATER_PASSED 34 /* includes queue state */ |
#define | NGM_LOW_WATER_PASSED 35 /* includes queue state */ |
#define | NGM_SYNC_QUEUE_STATE 36 /* sync response from sending packet */ |
#define | NGM_DROP_LINK 41 /* drop DTR, etc. - stay in the graph */ |
#define | NGM_RAISE_LINK 42 /* if you previously dropped it */ |
#define | NGM_FLUSH_QUEUE 43 /* no data */ |
#define | NGM_GET_BANDWIDTH (44|NGM_READONLY) /* either real or measured */ |
#define | NGM_SET_XMIT_Q_LIMITS 45 /* includes queue state */ |
#define | NGM_GET_XMIT_Q_LIMITS (46|NGM_READONLY) /* returns queue state */ |
#define | NGM_MICROMANAGE |
#define | NGM_SET_FLOW_MANAGER 48 /* send flow control here */ |
#define | NG_GENERIC_MKPEER_INFO() |
#define | NG_GENERIC_CONNECT_INFO() |
#define | NG_GENERIC_NAME_INFO() |
#define | NG_GENERIC_RMHOOK_INFO() |
#define | NG_GENERIC_NODEINFO_INFO() |
#define | NG_GENERIC_LINKINFO_INFO(nitype) |
#define | NG_GENERIC_HOOKLIST_INFO(nitype, litype) |
#define | NG_GENERIC_LISTNODES_INFO(niarraytype) |
#define | NG_GENERIC_TYPEINFO_INFO() |
#define | NG_GENERIC_TYPELIST_INFO(tiarraytype) |
#define | NG_GENERIC_BANDWIDTH_INFO() |
#define | NG_GENERIC_QUEUE_INFO() |
#define | NG_GENERIC_FLOW_MANAGER_INFO() |
#define | NGIOCGINFO _IOR('N', 40, struct nodeinfo) /* get node info */ |
#define | NGIOCSETNAME _IOW('N', 41, struct ngm_name) /* set node name */ |
#define | NG_MKMESSAGE(msg, cookie, cmdid, len, how) |
#define | NG_MKRESPONSE(rsp, msg, len, how) |
#define | NG_COPYMESSAGE(copy, msg, how) |
Enumerations | |
enum | { NGM_SHUTDOWN = 1 , NGM_MKPEER = 2 , NGM_CONNECT = 3 , NGM_NAME = 4 , NGM_RMHOOK = 5 , NGM_NODEINFO = (6|NGM_READONLY|NGM_HASREPLY) , NGM_LISTHOOKS = (7|NGM_READONLY|NGM_HASREPLY) , NGM_LISTNAMES = (8|NGM_READONLY|NGM_HASREPLY) , NGM_LISTNODES = (9|NGM_READONLY|NGM_HASREPLY) , NGM_LISTTYPES = (10|NGM_READONLY|NGM_HASREPLY) , NGM_TEXT_STATUS = (11|NGM_READONLY|NGM_HASREPLY) , NGM_BINARY2ASCII = (12|NGM_READONLY|NGM_HASREPLY) , NGM_ASCII2BINARY = (13|NGM_READONLY|NGM_HASREPLY) , NGM_TEXT_CONFIG = 14 } |
#define NG_CMDSTRSIZ 32 /* max command string (including null) */ |
Definition at line 52 of file ng_message.h.
#define NG_COPYMESSAGE | ( | copy, | |
msg, | |||
how | |||
) |
Definition at line 415 of file ng_message.h.
#define NG_GENERIC_BANDWIDTH_INFO | ( | ) |
Definition at line 312 of file ng_message.h.
#define NG_GENERIC_CONNECT_INFO | ( | ) |
Definition at line 193 of file ng_message.h.
#define NG_GENERIC_FLOW_MANAGER_INFO | ( | ) |
Definition at line 355 of file ng_message.h.
#define NG_GENERIC_HOOKLIST_INFO | ( | nitype, | |
litype | |||
) |
Definition at line 260 of file ng_message.h.
#define NG_GENERIC_LINKINFO_INFO | ( | nitype | ) |
Definition at line 247 of file ng_message.h.
#define NG_GENERIC_LISTNODES_INFO | ( | niarraytype | ) |
Definition at line 273 of file ng_message.h.
#define NG_GENERIC_MKPEER_INFO | ( | ) |
Definition at line 178 of file ng_message.h.
#define NG_GENERIC_NAME_INFO | ( | ) |
Definition at line 206 of file ng_message.h.
#define NG_GENERIC_NG_MESG_INFO | ( | dtype | ) |
Definition at line 78 of file ng_message.h.
#define NG_GENERIC_NODEINFO_INFO | ( | ) |
Definition at line 231 of file ng_message.h.
#define NG_GENERIC_QUEUE_INFO | ( | ) |
Definition at line 340 of file ng_message.h.
#define NG_GENERIC_RMHOOK_INFO | ( | ) |
Definition at line 217 of file ng_message.h.
#define NG_GENERIC_TYPEINFO_INFO | ( | ) |
Definition at line 286 of file ng_message.h.
#define NG_GENERIC_TYPELIST_INFO | ( | tiarraytype | ) |
Definition at line 298 of file ng_message.h.
#define NG_HOOKSIZ 32 /* max hook name len (including null) */ |
Definition at line 49 of file ng_message.h.
#define ng_ID_t uint32_t |
Definition at line 104 of file ng_message.h.
#define NG_MKMESSAGE | ( | msg, | |
cookie, | |||
cmdid, | |||
len, | |||
how | |||
) |
Definition at line 378 of file ng_message.h.
#define NG_MKRESPONSE | ( | rsp, | |
msg, | |||
len, | |||
how | |||
) |
Definition at line 396 of file ng_message.h.
#define NG_NODESIZ 32 /* max node name len (including null) */ |
Definition at line 50 of file ng_message.h.
#define NG_PATHSIZ 512 /* max path len (including null) */ |
Definition at line 51 of file ng_message.h.
#define NG_TEXTRESPONSE 1024 /* allow this length for a text response */ |
Definition at line 54 of file ng_message.h.
Definition at line 48 of file ng_message.h.
#define NG_VERSION 8 |
Definition at line 97 of file ng_message.h.
#define NGF_ORIG 0x00000000 /* the msg is the original request */ |
Definition at line 100 of file ng_message.h.
#define NGF_RESP 0x00000001 /* the message is a response */ |
Definition at line 101 of file ng_message.h.
#define NGIOCGINFO _IOR('N', 40, struct nodeinfo) /* get node info */ |
Definition at line 369 of file ng_message.h.
Definition at line 370 of file ng_message.h.
#define NGM_DROP_LINK 41 /* drop DTR, etc. - stay in the graph */ |
Definition at line 162 of file ng_message.h.
#define NGM_FLOW_COOKIE 851672669 /* temp for debugging */ |
Definition at line 152 of file ng_message.h.
#define NGM_FLUSH_QUEUE 43 /* no data */ |
Definition at line 164 of file ng_message.h.
#define NGM_GENERIC_COOKIE 1137070366 |
Definition at line 113 of file ng_message.h.
#define NGM_GET_BANDWIDTH (44|NGM_READONLY) /* either real or measured */ |
Definition at line 165 of file ng_message.h.
#define NGM_GET_XMIT_Q_LIMITS (46|NGM_READONLY) /* returns queue state */ |
Definition at line 167 of file ng_message.h.
#define NGM_HASREPLY 0x20000000 |
Definition at line 75 of file ng_message.h.
#define NGM_HIGH_WATER_PASSED 34 /* includes queue state */ |
Definition at line 157 of file ng_message.h.
#define NGM_LINK_IS_DOWN 33 /* carrier lost, includes queue state */ |
Definition at line 156 of file ng_message.h.
#define NGM_LINK_IS_UP 32 /* e.g. carrier found - no data */ |
Definition at line 155 of file ng_message.h.
#define NGM_LOW_WATER_PASSED 35 /* includes queue state */ |
Definition at line 158 of file ng_message.h.
#define NGM_MICROMANAGE |
Definition at line 168 of file ng_message.h.
#define NGM_RAISE_LINK 42 /* if you previously dropped it */ |
Definition at line 163 of file ng_message.h.
#define NGM_READONLY 0x10000000 |
Definition at line 73 of file ng_message.h.
#define NGM_SET_FLOW_MANAGER 48 /* send flow control here */ |
Definition at line 169 of file ng_message.h.
#define NGM_SET_XMIT_Q_LIMITS 45 /* includes queue state */ |
Definition at line 166 of file ng_message.h.
#define NGM_SYNC_QUEUE_STATE 36 /* sync response from sending packet */ |
Definition at line 159 of file ng_message.h.
anonymous enum |
Definition at line 116 of file ng_message.h.