0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Netlink: Fix bug in RTA_PRIORITY handling

This commit is contained in:
Ondrej Zajicek (work) 2017-03-28 16:05:40 +02:00
parent ef57b70fa5
commit d1b8fe93f0

View File

@ -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; priority = ea->u.data;
if (priority) 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 */ /* For route delete, we do not specify remaining route attributes */
if (op == NL_OP_DELETE) if (op == NL_OP_DELETE)