Skip to content

Commit 7f55b75

Browse files
committed
netlink: allow force remove on pinned delete from route binary
Taken from: https://reviews.freebsd.org/D46301
1 parent 5fa0a9e commit 7f55b75

File tree

1 file changed

+2
-1
lines changed
  • sys/netlink/route

1 file changed

+2
-1
lines changed

sys/netlink/route/rt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,8 @@ rtnl_handle_delroute(struct nlmsghdr *hdr, struct nlpcb *nlp,
10131013
}
10141014

10151015
error = rib_del_route_px(attrs.rta_table, attrs.rta_dst,
1016-
attrs.rtm_dst_len, path_match_func, &attrs, 0, &rc);
1016+
attrs.rtm_dst_len, path_match_func, &attrs,
1017+
(attrs.rta_rtflags & RTF_PINNED) ? RTM_F_FORCE : 0, &rc);
10171018
if (error == 0)
10181019
report_operation(attrs.rta_table, &rc, nlp, hdr);
10191020
return (error);

0 commit comments

Comments
 (0)