diff options
author | 3!tgraf <3!tgraf> | 2005-01-18 01:24:18 +0000 |
---|---|---|
committer | 3!tgraf <3!tgraf> | 2005-01-18 01:24:18 +0000 |
commit | 60a383ae5f0f8a53db93e474a2b4eb839ef2e214 (patch) | |
tree | cb77ddfebb221337ca792c2881fe8ee41f7cced6 /tc | |
parent | fc78a8e98dcb8efad64b06dc65716d97fc99b307 (diff) |
Use NLMSG_TAIL
(Logical change 1.127)
Diffstat (limited to 'tc')
-rw-r--r-- | tc/m_mirred.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tc/m_mirred.c b/tc/m_mirred.c index 91312871..585f674e 100644 --- a/tc/m_mirred.c +++ b/tc/m_mirred.c @@ -201,11 +201,10 @@ parse_egress(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, str if (mirred_d) 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_MIRRED_PARMS, &p, sizeof (p)); - tail->rta_len = - (((void *) n) + NLMSG_ALIGN(n->nlmsg_len)) - (void *) tail; + tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail; *argc_p = argc; *argv_p = argv; |