Ignore kernel routes with the RTF_WASCLONED flag set. This is a slight
modification of a patch which was already applied for BSD/OS in the Rhyolite.com sources; this file is already off the vendor branch. PR: bin/57484 Submitted by: Richard Perini
This commit is contained in:
parent
5a57a7f095
commit
0529700abc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130498
@ -1110,10 +1110,10 @@ flush_kern(void)
|
||||
if (rtm->rtm_flags & RTF_LLINFO)
|
||||
continue;
|
||||
|
||||
#if defined(RTF_CLONED) && defined(__bsdi__)
|
||||
#if defined(RTF_WASCLONED) && defined(__FreeBSD__)
|
||||
/* ignore cloned routes
|
||||
*/
|
||||
if (rtm->rtm_flags & RTF_CLONED)
|
||||
if (rtm->rtm_flags & RTF_WASCLONED)
|
||||
continue;
|
||||
#endif
|
||||
|
||||
@ -1267,8 +1267,8 @@ read_rt(void)
|
||||
continue;
|
||||
}
|
||||
|
||||
#if defined(RTF_CLONED) && defined(__bsdi__)
|
||||
if (m.r.rtm.rtm_flags & RTF_CLONED) {
|
||||
#if defined(RTF_WASCLONED) && defined(__FreeBSD__)
|
||||
if (m.r.rtm.rtm_flags & RTF_WASCLONED) {
|
||||
trace_act("ignore cloned %s", str);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user