Home | History | Annotate | Download | only in route

Lines Matching full:handle

189 	char handle[32], parent[32];
204 nl_dump(p, "handle %s parent %s",
205 rtnl_tc_handle2str(g->tc_handle, handle, sizeof(handle)),
254 diff |= TC_DIFF(HANDLE, a->tc_handle != b->tc_handle);
275 void tca_set_handle(struct rtnl_tca *t, uint32_t handle)
277 t->tc_handle = handle;
469 * @name Traffic Control Handle Translations
474 * Convert a traffic control handle to a character string (Reentrant).
475 * @arg handle traffic control handle
479 * Converts a tarffic control handle to a character string in the
485 char * rtnl_tc_handle2str(uint32_t handle, char *buf, size_t len)
487 if (TC_H_ROOT == handle)
489 else if (TC_H_UNSPEC == handle)
491 else if (0 == TC_H_MAJ(handle))
492 snprintf(buf, len, ":%02x", TC_H_MIN(handle));
493 else if (0 == TC_H_MIN(handle))
494 snprintf(buf, len, "%02x:", TC_H_MAJ(handle) >> 16);
497 TC_H_MAJ(handle) >> 16, TC_H_MIN(handle));
503 * Convert a charactering strint to a traffic control handle
504 * @arg name traffic control handle as character string
508 * control handle to the corresponding numeric value.
510 * The handle must be provided in one of the following formats: