diff options
Diffstat (limited to 'tc/m_nat.c')
-rw-r--r-- | tc/m_nat.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -129,10 +129,9 @@ parse_nat(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, struct } } - tail = NLMSG_TAIL(n); - addattr_l(n, MAX_MSG, tca_id, NULL, 0); + tail = addattr_nest(n, MAX_MSG, tca_id); addattr_l(n, MAX_MSG, TCA_NAT_PARMS, &sel, sizeof(sel)); - tail->rta_len = (char *)NLMSG_TAIL(n) - (char *)tail; + addattr_nest_end(n, tail); *argc_p = argc; *argv_p = argv; |