summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2017-03-28 17:35:57 +0200
committerJan Moskyto Matejka <mq@ucw.cz>2017-03-28 17:35:57 +0200
commit5dbeb87ec96157ca95c84d881e014614dd3164a3 (patch)
tree1f0822827c3d2a8c02b9f941a5b053bb13622129
parent2282030b2a4fb07805a0cd8b82a9aab73b7586d8 (diff)
parentd1b8fe93f018fb272c3a423df1ab13d86c159f00 (diff)
Merge branch 'int-new' of gitlab.labs.nic.cz:labs/bird into int-new
-rw-r--r--sysdep/linux/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index bb85a38b..68d8560c 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -1172,7 +1172,7 @@ nl_send_route(struct krt_proto *p, rte *e, struct ea_list *eattrs, int op, int d
priority = ea->u.data;
if (priority)
- nl_add_attr_u32(&r->h, sizeof(r), RTA_PRIORITY, priority);
+ nl_add_attr_u32(&r->h, rsize, RTA_PRIORITY, priority);
/* For route delete, we do not specify remaining route attributes */
if (op == NL_OP_DELETE)