Home | History | Annotate | Download | only in tc

Lines Matching refs:argv

62 static int flow_parse_keys(__u32 *keys, __u32 *nkeys, char *argv)
69 s = argv;
97 static int get_addend(__u32 *addend, char *argv, __u32 keys)
103 if (*argv == '-') {
105 argv++;
108 if (get_u32(&tmp, argv, 0) == 0)
113 get_addr(&addr, argv, AF_UNSPEC) == 0) {
133 int argc, char **argv, struct nlmsghdr *n)
156 if (matches(*argv, "map") == 0) {
158 } else if (matches(*argv, "hash") == 0) {
160 } else if (matches(*argv, "keys") == 0) {
162 if (flow_parse_keys(&keys, &nkeys, *argv))
165 } else if (matches(*argv, "and") == 0) {
167 if (get_u32(&tmp, *argv, 0)) {
172 } else if (matches(*argv, "or") == 0) {
174 if (get_u32(&tmp, *argv, 0)) {
179 } else if (matches(*argv, "xor") == 0) {
181 if (get_u32(&tmp, *argv, 0)) {
186 } else if (matches(*argv, "rshift") == 0) {
188 if (get_u32(&tmp, *argv, 0)) {
193 } else if (matches(*argv, "addend") == 0) {
195 if (get_addend(&tmp, *argv, keys)) {
200 } else if (matches(*argv, "divisor") == 0) {
202 if (get_u32(&tmp, *argv, 0)) {
207 } else if (matches(*argv, "baseclass") == 0) {
209 if (get_tc_classid(&tmp, *argv) || TC_H_MIN(tmp) == 0) {
214 } else if (matches(*argv, "perturb") == 0) {
216 if (get_u32(&tmp, *argv, 0)) {
221 } else if (matches(*argv, "police") == 0) {
223 if (parse_police(&argc, &argv, TCA_FLOW_POLICE, n)) {
228 } else if (matches(*argv, "action") == 0) {
230 if (parse_action(&argc, &argv, TCA_FLOW_ACT, n)) {
235 } else if (matches(*argv, "match") == 0) {
237 if (parse_ematch(&argc, &argv, TCA_FLOW_EMATCHES, n)) {
242 } else if (matches(*argv, "help") == 0) {
246 fprintf(stderr, "What is \"%s\"?\n", *argv);
250 argv++, argc--;