Home | History | Annotate | Download | only in tc

Lines Matching refs:argv

39 static int route_parse_opt(struct filter_util *qu, char *handle, int argc, char **argv, struct nlmsghdr *n)
63 if (matches(*argv, "to") == 0) {
66 if (rtnl_rtrealm_a2n(&id, *argv)) {
73 } else if (matches(*argv, "from") == 0) {
76 if (rtnl_rtrealm_a2n(&id, *argv)) {
83 } else if (matches(*argv, "fromif") == 0) {
87 if ((id=ll_name_to_index(*argv)) <= 0) {
94 } else if (matches(*argv, "classid") == 0 ||
95 strcmp(*argv, "flowid") == 0) {
98 if (get_tc_classid(&handle, *argv)) {
103 } else if (matches(*argv, "police") == 0) {
105 if (parse_police(&argc, &argv, TCA_ROUTE4_POLICE, n)) {
110 } else if (matches(*argv, "order") == 0) {
112 if (get_u32(&order, *argv, 0)) {
116 } else if (strcmp(*argv, "help") == 0) {
120 fprintf(stderr, "What is \"%s\"?\n", *argv);
124 argc--; argv++;