aboutsummaryrefslogtreecommitdiff
path: root/sbin/routed/if.c
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2000-08-10 07:48:06 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2000-08-10 07:48:06 +0000
commit8b336df137952a0496f5e8d30747d009c939724e (patch)
tree58eef3fe97fd02c55eac96231a9f56e0cf48b9f6 /sbin/routed/if.c
parentf7434bbd426c21f1c43d81bdb6323110b29955b9 (diff)
downloadsrc-8b336df137952a0496f5e8d30747d009c939724e.tar.gz
src-8b336df137952a0496f5e8d30747d009c939724e.zip
Import routed-2.22.vendor/SGI/vjs_20000806
Notes
Notes: svn path=/vendor/SGI/dist_v_2_21/; revision=64480 svn path=/vendor/SGI/vjs_20000806/; revision=64482; tag=vendor/SGI/vjs_20000806
Diffstat (limited to 'sbin/routed/if.c')
-rw-r--r--sbin/routed/if.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/routed/if.c b/sbin/routed/if.c
index 54228ce24aa8..c72c10ed4804 100644
--- a/sbin/routed/if.c
+++ b/sbin/routed/if.c
@@ -40,7 +40,7 @@ static char sccsid[] __attribute__((unused)) = "@(#)if.c 8.1 (Berkeley) 6/5/93";
#include <sys/cdefs.h>
__RCSID("$NetBSD$");
#endif
-#ident "$Revision: 2.17 $"
+#ident "$Revision: 2.22 $"
struct interface *ifnet; /* all interfaces */
@@ -1126,6 +1126,9 @@ ifinit(void)
continue;
if (ifp1->int_dstaddr == RIP_DEFAULT)
continue;
+ /* ignore aliases on the right network */
+ if (!strcmp(ifp->int_name, ifp1->int_name))
+ continue;
if (on_net(ifp->int_dstaddr,
ifp1->int_net, ifp1->int_mask)
|| on_net(ifp1->int_dstaddr,