Home | History | Annotate | Download | only in tc

Lines Matching full:argv

63 static int flow_parse_keys(__u32 *keys, __u32 *nkeys, char *argv)
70 s = argv;
98 static int get_addend(__u32 *addend, char *argv, __u32 keys)
104 if (*argv == '-') {
106 argv++;
109 if (get_u32(&tmp, argv, 0) == 0)
114 get_addr(&addr, argv, AF_UNSPEC) == 0) {
134 int argc, char **argv, struct nlmsghdr *n)
157 if (matches(*argv, "map") == 0) {
159 } else if (matches(*argv, "hash") == 0) {
161 } else if (matches(*argv, "keys") == 0) {
163 if (flow_parse_keys(&keys, &nkeys, *argv))
166 } else if (matches(*argv, "and") == 0) {
168 if (get_u32(&tmp, *argv, 0)) {
173 } else if (matches(*argv, "or") == 0) {
175 if (get_u32(&tmp, *argv, 0)) {
180 } else if (matches(*argv, "xor") == 0) {
182 if (get_u32(&tmp, *argv, 0)) {
187 } else if (matches(*argv, "rshift") == 0) {
189 if (get_u32(&tmp, *argv, 0)) {
194 } else if (matches(*argv, "addend") == 0) {
196 if (get_addend(&tmp, *argv, keys)) {
201 } else if (matches(*argv, "divisor") == 0) {
203 if (get_u32(&tmp, *argv, 0)) {
208 } else if (matches(*argv, "baseclass") == 0) {
210 if (get_tc_classid(&tmp, *argv) || TC_H_MIN(tmp) == 0) {
215 } else if (matches(*argv, "perturb") == 0) {
217 if (get_u32(&tmp, *argv, 0)) {
222 } else if (matches(*argv, "police") == 0) {
224 if (parse_police(&argc, &argv, TCA_FLOW_POLICE, n)) {
229 } else if (matches(*argv, "action") == 0) {
231 if (parse_action(&argc, &argv, TCA_FLOW_ACT, n)) {
236 } else if (matches(*argv, "match") == 0) {
238 if (parse_ematch(&argc, &argv, TCA_FLOW_EMATCHES, n)) {
243 } else if (matches(*argv, "help") == 0) {
247 fprintf(stderr, "What is \"%s\"?\n", *argv);
251 argv++, argc--;