Lines Matching refs:handle
48 int get_u32_handle(__u32 *handle, const char *str)
55 return get_u32(handle, str, 16);
79 *handle = (htid<<20)|(hash<<12)|nodeid;
83 char * sprint_u32_handle(__u32 handle, char *buf)
86 __u32 htid = TC_U32_HTID(handle);
87 __u32 hash = TC_U32_HASH(handle);
88 __u32 nodeid = TC_U32_NODE(handle);
91 if (handle == 0) {
113 snprintf(b, bsize, "[%08x] ", handle);
975 static int u32_parse_opt(struct filter_util *qu, char *handle,
991 if (handle && get_u32_handle(&t->tcm_handle, handle)) {
1027 unsigned handle;
1029 if (get_tc_classid(&handle, *argv)) {
1033 addattr_l(n, MAX_MSG, TCA_U32_CLASSID, &handle, 4);
1052 unsigned handle;
1054 if (get_u32_handle(&handle, *argv)) {
1058 if (handle && TC_U32_NODE(handle)) {
1062 addattr_l(n, MAX_MSG, TCA_U32_LINK, &handle, 4);
1064 unsigned handle;
1066 if (get_u32_handle(&handle, *argv)) {
1070 if (handle && TC_U32_NODE(handle)) {
1075 htid = (htid&0xFF000)|(handle&0xFFF00000);
1077 htid = (handle&0xFFFFF000);
1158 fprintf(stderr, "\"order\" contradicts \"handle\"\n");
1174 __u32 handle)
1185 if (handle) {
1187 fprintf(f, "fh %s ", sprint_u32_handle(handle, b1));
1189 if (TC_U32_NODE(handle)) {
1190 fprintf(f, "order %d ", TC_U32_NODE(handle));