summaryrefslogtreecommitdiffstats
path: root/usr.sbin/IPXrouted/startup.c
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1999-02-06 10:52:21 +0000
committerjhay <jhay@FreeBSD.org>1999-02-06 10:52:21 +0000
commitd742c3c52503a8941ead71d7a68cddf07f1e06de (patch)
tree463a520372e4456a161618b54c46faf72da5bc6f /usr.sbin/IPXrouted/startup.c
parent44b567482e8c3da75ed3a19998b014b842e36ad7 (diff)
downloadFreeBSD-src-d742c3c52503a8941ead71d7a68cddf07f1e06de.zip
FreeBSD-src-d742c3c52503a8941ead71d7a68cddf07f1e06de.tar.gz
Teach IPXrouted to handle the internal net properly.
PR: 9871 Submitted by: Boris Popov <bp@butya.kz>
Diffstat (limited to 'usr.sbin/IPXrouted/startup.c')
-rw-r--r--usr.sbin/IPXrouted/startup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/IPXrouted/startup.c b/usr.sbin/IPXrouted/startup.c
index 6261cb7..44f883b 100644
--- a/usr.sbin/IPXrouted/startup.c
+++ b/usr.sbin/IPXrouted/startup.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: startup.c,v 1.6 1997/02/22 16:01:01 peter Exp $
*/
#ifndef lint
@@ -183,6 +183,9 @@ ifinit(void)
}
ifs.int_dstaddr = *brdaddr;
}
+ if (ifs.int_flags & IFF_LOOPBACK) {
+ ifs.int_dstaddr = ifs.int_addr;
+ }
/*
* already known to us?
* what makes a POINTOPOINT if unique is its dst addr,
@@ -193,9 +196,6 @@ ifinit(void)
( ((ifs.int_flags & IFF_POINTOPOINT) == 0) &&
if_ifwithaddr(&ifs.int_addr)))
continue;
- /* no one cares about software loopback interfaces */
- if (ifs.int_flags & IFF_LOOPBACK)
- continue;
ifp = (struct interface *)
malloc(sdl->sdl_nlen + 1 + sizeof(ifs));
if (ifp == 0) {
OpenPOWER on IntegriCloud