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
@ -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