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:
parent
ef57b70fa5
commit
d1b8fe93f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user