Lines Matching refs:cls
42 struct rtnl_cls *cls = (struct rtnl_cls *) obj; in delete_cb() local
52 if ((err = rtnl_cls_delete(sock, cls, 0)) < 0) in delete_cb()
67 struct rtnl_cls *cls; in main() local
73 cls = nlt_alloc_cls(); in main()
107 case 'd': nf++; parse_dev(cls, link_cache, optarg); break; in main()
108 case 'p': nf++; parse_parent(cls, optarg); break; in main()
109 case ARG_PRIO: nf++; parse_prio(cls, optarg); break; in main()
110 case ARG_ID: nf++; parse_handle(cls, optarg); break; in main()
111 case ARG_PROTO: nf++; parse_proto(cls, optarg); break; in main()
121 err = rtnl_cls_alloc_cache(sock, rtnl_cls_get_ifindex(cls), in main()
122 rtnl_cls_get_parent(cls), &cls_cache); in main()
127 nl_cache_foreach_filter(cls_cache, OBJ_CAST(cls), delete_cb, NULL); in main()