diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-06-23 23:34:03 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-06-23 23:34:03 +0000 |
commit | 288c486de3f6be0db40a265fe43f75eef0cb3075 (patch) | |
tree | a18ac6c6589ab524cca14384255d4d8dbdb86326 /usr.sbin/ospfd/kroute.c | |
parent | cb691adbb31405ba1956b5dc6a20e771258dc7dd (diff) |
127/8 is INADDR_LOOPBACK & IN_CLASSA_NET the kroute code does not
automagicaly mask the addresses. While there kill a #ifdef that no
longer makes sense since it is the least problem for portable versions.
Diffstat (limited to 'usr.sbin/ospfd/kroute.c')
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index d95bad201de..d35289d4d64 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.82 2010/06/23 04:26:51 dlg Exp $ */ +/* $OpenBSD: kroute.c,v 1.83 2010/06/23 23:34:02 claudio Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -907,7 +907,7 @@ protect_lo(void) log_warn("protect_lo"); return (-1); } - kr->r.prefix.s_addr = htonl(INADDR_LOOPBACK); + kr->r.prefix.s_addr = htonl(INADDR_LOOPBACK & IN_CLASSA_NET); kr->r.prefixlen = 8; kr->r.flags = F_KERNEL|F_CONNECTED; @@ -1354,10 +1354,8 @@ rtmsg_process(char *buf, int len) if (rtm->rtm_flags & RTF_LLINFO) /* arp cache */ continue; -#ifdef RTF_MPATH if (rtm->rtm_flags & RTF_MPATH) mpath = 1; -#endif prio = rtm->rtm_priority; flags = (prio == RTP_OSPF) ? F_OSPFD_INSERTED : F_KERNEL; |