summaryrefslogtreecommitdiffstats
path: root/tc/f_rsvp.c
diff options
context:
space:
mode:
author4!tgraf <4!tgraf>2005-01-18 01:24:18 +0000
committer4!tgraf <4!tgraf>2005-01-18 01:24:18 +0000
commit228569c3ff79468f4c7580fd88b0d6a34ebdc311 (patch)
tree4e19554398028b51514c8f215674cb363aa7c357 /tc/f_rsvp.c
parent60a383ae5f0f8a53db93e474a2b4eb839ef2e214 (diff)
Use NLMSG_TAIL
(Logical change 1.127)
Diffstat (limited to 'tc/f_rsvp.c')
-rw-r--r--tc/f_rsvp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tc/f_rsvp.c b/tc/f_rsvp.c
index 3f33696d..8faa22e7 100644
--- a/tc/f_rsvp.c
+++ b/tc/f_rsvp.c
@@ -189,7 +189,7 @@ static int rsvp_parse_opt(struct filter_util *qu, char *handle, int argc, char *
if (argc == 0)
return 0;
- tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
+ tail = NLMSG_TAIL(n);
addattr_l(n, 4096, TCA_OPTIONS, NULL, 0);
while (argc > 0) {
@@ -282,7 +282,7 @@ static int rsvp_parse_opt(struct filter_util *qu, char *handle, int argc, char *
if (pinfo_ok)
addattr_l(n, 4096, TCA_RSVP_PINFO, &pinfo, sizeof(pinfo));
- tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
+ tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
return 0;
}