Lines Matching +full:sync +full:- +full:token
5 /*-
6 * Copyright (c) 1996-1999 Whistle Communications, Inc.
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
66 u_int32_t token; /* match with reply */ member
78 /* Keep this in sync with the above structure definition */
86 { "token", &ng_parse_uint32_type }, \
156 #define NGM_LINK_IS_UP 32 /* e.g. carrier found - no data */
160 #define NGM_SYNC_QUEUE_STATE 36 /* sync response from sending packet */
163 #define NGM_DROP_LINK 41 /* drop DTR, etc. - stay in the graph */
169 #define NGM_MICROMANAGE 47 /* We want sync. queue state
179 /* Keep this in sync with the above structure definition */
194 /* Keep this in sync with the above structure definition */
207 /* Keep this in sync with the above structure definition */
218 /* Keep this in sync with the above structure definition */
232 /* Keep this in sync with the above structure definition */
248 /* Keep this in sync with the above structure definition */
261 /* Keep this in sync with the above structure definition */
274 /* Keep this in sync with the above structure definition */
287 /* Keep this in sync with the above structure definition */
299 /* Keep this in sync with the above structure definition */
313 /* Keep this in sync with the above structure definition */
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*/
341 /* Keep this in sync with the above structure definition */
356 /* Keep this in sync with the above structure definition */
378 * Does not initialize token.
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); \