mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
route(8): make it possible to manually delete pinned route
Reported by: Andreas Longwitz <longwitz@incore.de> Approved by: avg (mentor) MFC after: 1 week
This commit is contained in:
parent
59d3150b58
commit
0d41f9c9f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329930
|
@ -1519,8 +1519,10 @@ rtmsg(int cmd, int flags, int fib)
|
|||
so[RTAX_IFP].ss_len = sizeof(struct sockaddr_dl);
|
||||
rtm_addrs |= RTA_IFP;
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
cmd = RTM_DELETE;
|
||||
flags |= RTF_PINNED;
|
||||
}
|
||||
#define rtm m_rtmsg.m_rtm
|
||||
rtm.rtm_type = cmd;
|
||||
rtm.rtm_flags = flags;
|
||||
|
|
Loading…
Reference in a new issue