parent
fc78a8e98d
commit
60a383ae5f
|
|
@ -201,11 +201,10 @@ parse_egress(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, str
|
||||||
if (mirred_d)
|
if (mirred_d)
|
||||||
fprintf(stdout, "Action %d device %s ifindex %d\n",p.action, d,p.ifindex);
|
fprintf(stdout, "Action %d device %s ifindex %d\n",p.action, d,p.ifindex);
|
||||||
|
|
||||||
tail = (struct rtattr *) (((void *) n) + NLMSG_ALIGN(n->nlmsg_len));
|
tail = NLMSG_TAIL(n);
|
||||||
addattr_l(n, MAX_MSG, tca_id, NULL, 0);
|
addattr_l(n, MAX_MSG, tca_id, NULL, 0);
|
||||||
addattr_l(n, MAX_MSG, TCA_MIRRED_PARMS, &p, sizeof (p));
|
addattr_l(n, MAX_MSG, TCA_MIRRED_PARMS, &p, sizeof (p));
|
||||||
tail->rta_len =
|
tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
|
||||||
(((void *) n) + NLMSG_ALIGN(n->nlmsg_len)) - (void *) tail;
|
|
||||||
|
|
||||||
*argc_p = argc;
|
*argc_p = argc;
|
||||||
*argv_p = argv;
|
*argv_p = argv;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue