diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-03-28 16:05:40 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-03-28 16:05:40 +0200 |
commit | d1b8fe93f018fb272c3a423df1ab13d86c159f00 (patch) | |
tree | 06d0cfc6c50db121df546c868e043baf3b65b712 /sysdep/linux/netlink.c | |
parent | ef57b70fa51687865e5823c0af2df2c6de338215 (diff) |
Netlink: Fix bug in RTA_PRIORITY handling
Diffstat (limited to 'sysdep/linux/netlink.c')
-rw-r--r-- | sysdep/linux/netlink.c | 2 |
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) |