summaryrefslogtreecommitdiff
path: root/sbin/routed/if.c
diff options
context:
space:
mode:
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 54228ce24aa81..c72c10ed48046 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,