Lines Matching +full:cmd +full:- +full:max +full:- +full:name
5 /*-
6 * Copyright (c) 1996-1999 Whistle Communications, Inc.
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
49 #define NG_TYPESIZ 32 /* max type name len (including null) */
50 #define NG_HOOKSIZ 32 /* max hook name len (including null) */
51 #define NG_NODESIZ 32 /* max node name len (including null) */
52 #define NG_PATHSIZ 512 /* max path len (including null) */
53 #define NG_CMDSTRSIZ 32 /* max command string (including null) */
64 u_int32_t cmd; /* command identifier */ member
68 u_char cmdstr[NG_CMDSTRSIZ]; /* cmd string + \0 */
84 { "cmd", &ng_parse_uint32_type }, \
121 NGM_NAME = 4, /* Give a node a name. */
156 #define NGM_LINK_IS_UP 32 /* e.g. carrier found - no data */
163 #define NGM_DROP_LINK 41 /* drop DTR, etc. - stay in the graph */
175 char ourhook[NG_HOOKSIZ]; /* hook name */
176 char peerhook[NG_HOOKSIZ]; /* peer hook name */
190 char ourhook[NG_HOOKSIZ]; /* hook name */
191 char peerhook[NG_HOOKSIZ]; /* peer hook name */
204 char name[NG_NODESIZ]; /* node name */ member
209 { "name", &ng_parse_nodebuf_type }, \
215 char ourhook[NG_HOOKSIZ]; /* hook name */
226 char name[NG_NODESIZ]; /* node name (if any) */ member
234 { "name", &ng_parse_nodebuf_type }, \
243 char ourhook[NG_HOOKSIZ]; /* hook name */
283 char type_name[NG_TYPESIZ]; /* name of type */
329 * we should have the priority of that queue be real (and not -1)
333 u_int queue_priority; /* maybe only low-pri is full. -1 = all*/
366 * structure and for assigning a name (if there isn't one already).
372 #define NGIOCSETNAME _IOW('N', 41, struct ngm_name) /* set node name */
386 (msg)->header.version = NG_VERSION; \
387 (msg)->header.typecookie = (cookie); \
388 (msg)->header.cmd = (cmdid); \
389 (msg)->header.arglen = (len); \
390 strncpy((msg)->header.cmdstr, #cmdid, \
391 sizeof((msg)->header.cmdstr) - 1); \
404 (rsp)->header.version = NG_VERSION; \
405 (rsp)->header.arglen = (len); \
406 (rsp)->header.token = (msg)->header.token; \
407 (rsp)->header.typecookie = (msg)->header.typecookie; \
408 (rsp)->header.cmd = (msg)->header.cmd; \
409 bcopy((msg)->header.cmdstr, (rsp)->header.cmdstr, \
410 sizeof((rsp)->header.cmdstr)); \
411 (rsp)->header.flags |= NGF_RESP; \
420 + (msg)->header.arglen, M_NETGRAPH_MSG, (how) | M_ZERO); \
423 (copy)->header.version = NG_VERSION; \
424 (copy)->header.arglen = (msg)->header.arglen; \
425 (copy)->header.token = (msg)->header.token; \
426 (copy)->header.typecookie = (msg)->header.typecookie; \
427 (copy)->header.cmd = (msg)->header.cmd; \
428 (copy)->header.flags = (msg)->header.flags; \
429 bcopy((msg)->header.cmdstr, (copy)->header.cmdstr, \
430 sizeof((copy)->header.cmdstr)); \
431 if ((msg)->header.arglen > 0) \
432 bcopy((msg)->data, (copy)->data, (msg)->header.arglen); \