Netlink: Fix bug in RTA_PRIORITY handling
This commit is contained in:
parent
ef57b70fa5
commit
d1b8fe93f0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue