Lines Matching refs:cls
2 * src/nl-cls-add.c Add classifier
11 #include "cls/utils.h"
18 "Usage: nl-cls-add [OPTION]... [CLASSIFIER] TYPE [TYPE OPTIONS]...\n"
38 struct rtnl_cls *cls;
52 cls = nlt_alloc_cls();
82 case 'd': parse_dev(cls, link_cache, optarg); break;
83 case 'p': parse_parent(cls, optarg); break;
84 case ARG_PRIO: parse_prio(cls, optarg); break;
85 case ARG_ID: parse_handle(cls, optarg); break;
86 case ARG_PROTO: parse_proto(cls, optarg); break;
96 if ((err = rtnl_cls_set_kind(cls, kind)) < 0)
99 ops = rtnl_cls_get_ops(cls);
103 mod->parse_argv(cls, argc, argv);
106 nl_object_dump(OBJ_CAST(cls), &dp);
108 if ((err = rtnl_cls_add(sock, cls, nlflags)) < 0)
113 nl_object_dump(OBJ_CAST(cls), &dp);