mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
netlink: allow force remove on pinned delete from route binary
Taken from: https://reviews.freebsd.org/D46301
This commit is contained in:
parent
305b65589a
commit
b588ace010
1 changed files with 2 additions and 1 deletions
|
|
@ -1013,7 +1013,8 @@ rtnl_handle_delroute(struct nlmsghdr *hdr, struct nlpcb *nlp,
|
|||
}
|
||||
|
||||
error = rib_del_route_px(attrs.rta_table, attrs.rta_dst,
|
||||
attrs.rtm_dst_len, path_match_func, &attrs, 0, &rc);
|
||||
attrs.rtm_dst_len, path_match_func, &attrs,
|
||||
(attrs.rta_rtflags & RTF_PINNED) ? RTM_F_FORCE : 0, &rc);
|
||||
if (error == 0)
|
||||
report_operation(attrs.rta_table, &rc, nlp, hdr);
|
||||
return (error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue