diff options
author | phk <phk@FreeBSD.org> | 1999-07-20 13:20:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-07-20 13:20:00 +0000 |
commit | 6a35227f8b66852e659fae438045ba6084646408 (patch) | |
tree | 81b306d0d92a709ad2ba4adfd4ed71701f1ff48a /net/gated | |
parent | b0f37f31d9847d8c8c3f8f2cff15274271d50b27 (diff) | |
download | FreeBSD-ports-6a35227f8b66852e659fae438045ba6084646408.zip FreeBSD-ports-6a35227f8b66852e659fae438045ba6084646408.tar.gz |
Fix the same problem for OSPF as -ag does for RIP: non 127/8 addresses on
a loopback interface are ok.
Diffstat (limited to 'net/gated')
-rw-r--r-- | net/gated/files/patch-ah | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/gated/files/patch-ah b/net/gated/files/patch-ah new file mode 100644 index 0000000..f2db1d0 --- /dev/null +++ b/net/gated/files/patch-ah @@ -0,0 +1,13 @@ +diff -urb work.ref/gated-3-5-10/src/ospf_rt.c work/gated-3-5-10/src/ospf_rt.c +--- src/ospf_rt.c Tue Aug 18 20:08:47 1998 ++++ src/ospf_rt.c Tue Jul 20 15:10:21 1999 +@@ -1124,7 +1124,8 @@ + /* Ignore pseudo interface routes and interfaces running OSPF */ + if (BIT_TEST(new_rt->rt_state, RTS_NOTINSTALL) || + IF_INTF(RT_IFAP(new_rt)) || +- BIT_TEST(RT_IFAP(new_rt)->ifa_state, IFS_LOOPBACK)) { ++ (BIT_TEST(RT_IFAP(new_rt)->ifa_state, IFS_LOOPBACK) ++ && BIT_TEST(inet_class_flags(RT_IFAP(new_rt)->ifa_addr_local), INET_CLASSF_LOOPBACK))) { + new_rt = (rt_entry *) 0; + } + break; |