continue;
} else if (matches(*argv, "classid") == 0 ||
strcmp(*argv, "flowid") == 0) {
- unsigned int handle;
+ unsigned int classid;
NEXT_ARG();
- if (get_tc_classid(&handle, *argv)) {
+ if (get_tc_classid(&classid, *argv)) {
fprintf(stderr, "Illegal \"classid\"\n");
return -1;
}
- addattr_l(n, MAX_MSG, TCA_BASIC_CLASSID, &handle, 4);
+ addattr_l(n, MAX_MSG, TCA_BASIC_CLASSID, &classid, 4);
} else if (matches(*argv, "action") == 0) {
NEXT_ARG();
if (parse_action(&argc, &argv, TCA_BASIC_ACT, n)) {
bpf_uds_name = cfg.uds;
} else if (matches(*argv, "classid") == 0 ||
matches(*argv, "flowid") == 0) {
- unsigned int handle;
+ unsigned int classid;
NEXT_ARG();
- if (get_tc_classid(&handle, *argv)) {
+ if (get_tc_classid(&classid, *argv)) {
fprintf(stderr, "Illegal \"classid\"\n");
return -1;
}
- addattr32(n, MAX_MSG, TCA_BPF_CLASSID, handle);
+ addattr32(n, MAX_MSG, TCA_BPF_CLASSID, classid);
} else if (matches(*argv, "direct-action") == 0 ||
matches(*argv, "da") == 0) {
bpf_flags |= TCA_BPF_FLAG_ACT_DIRECT;
while (argc > 0) {
if (matches(*argv, "classid") == 0 ||
matches(*argv, "flowid") == 0) {
- unsigned int handle;
+ unsigned int classid;
NEXT_ARG();
- ret = get_tc_classid(&handle, *argv);
+ ret = get_tc_classid(&classid, *argv);
if (ret) {
fprintf(stderr, "Illegal \"classid\"\n");
return -1;
}
- addattr_l(n, MAX_MSG, TCA_FLOWER_CLASSID, &handle, 4);
+ addattr_l(n, MAX_MSG, TCA_FLOWER_CLASSID, &classid, 4);
} else if (matches(*argv, "hw_tc") == 0) {
- unsigned int handle;
+ unsigned int classid;
__u32 tc;
char *end;
fprintf(stderr, "TC index exceeds max range\n");
return -1;
}
- handle = TC_H_MAKE(TC_H_MAJ(t->tcm_parent),
+ classid = TC_H_MAKE(TC_H_MAJ(t->tcm_parent),
TC_H_MIN(tc + TC_H_MIN_PRIORITY));
- addattr_l(n, MAX_MSG, TCA_FLOWER_CLASSID, &handle,
- sizeof(handle));
+ addattr_l(n, MAX_MSG, TCA_FLOWER_CLASSID, &classid,
+ sizeof(classid));
} else if (matches(*argv, "ip_flags") == 0) {
NEXT_ARG();
ret = flower_parse_matching_flags(*argv,
while (argc > 0) {
if (matches(*argv, "classid") == 0 ||
matches(*argv, "flowid") == 0) {
- unsigned int handle;
+ unsigned int classid;
NEXT_ARG();
- if (get_tc_classid(&handle, *argv)) {
+ if (get_tc_classid(&classid, *argv)) {
fprintf(stderr, "Illegal \"classid\"\n");
return -1;
}
- addattr_l(n, 4096, TCA_FW_CLASSID, &handle, 4);
+ addattr_l(n, 4096, TCA_FW_CLASSID, &classid, 4);
} else if (matches(*argv, "police") == 0) {
NEXT_ARG();
if (parse_police(&argc, &argv, TCA_FW_POLICE, n)) {
while (argc > 0) {
if (matches(*argv, "classid") == 0 ||
strcmp(*argv, "flowid") == 0) {
- unsigned int handle;
+ unsigned int classid;
NEXT_ARG();
- if (get_tc_classid(&handle, *argv)) {
+ if (get_tc_classid(&classid, *argv)) {
fprintf(stderr, "Illegal \"classid\"\n");
return -1;
}
- addattr_l(n, MAX_MSG, TCA_MATCHALL_CLASSID, &handle, 4);
+ addattr_l(n, MAX_MSG, TCA_MATCHALL_CLASSID, &classid, 4);
} else if (matches(*argv, "action") == 0) {
NEXT_ARG();
if (parse_action(&argc, &argv, TCA_MATCHALL_ACT, n)) {
fh |= (0x8000|id)<<16;
} else if (matches(*argv, "classid") == 0 ||
strcmp(*argv, "flowid") == 0) {
- unsigned int handle;
+ unsigned int classid;
NEXT_ARG();
- if (get_tc_classid(&handle, *argv)) {
+ if (get_tc_classid(&classid, *argv)) {
fprintf(stderr, "Illegal \"classid\"\n");
return -1;
}
- addattr_l(n, 4096, TCA_ROUTE4_CLASSID, &handle, 4);
+ addattr_l(n, 4096, TCA_ROUTE4_CLASSID, &classid, 4);
} else if (matches(*argv, "police") == 0) {
NEXT_ARG();
if (parse_police(&argc, &argv, TCA_ROUTE4_POLICE, n)) {
pinfo_ok++;
} else if (matches(*argv, "classid") == 0 ||
strcmp(*argv, "flowid") == 0) {
- unsigned int handle;
+ unsigned int classid;
NEXT_ARG();
- if (get_tc_classid(&handle, *argv)) {
+ if (get_tc_classid(&classid, *argv)) {
fprintf(stderr, "Illegal \"classid\"\n");
return -1;
}
- addattr_l(n, 4096, TCA_RSVP_CLASSID, &handle, 4);
+ addattr_l(n, 4096, TCA_RSVP_CLASSID, &classid, 4);
} else if (strcmp(*argv, "tunnelid") == 0) {
unsigned int tid;