summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_outputfl.c
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1999-02-06 10:48:11 +0000
committerjhay <jhay@FreeBSD.org>1999-02-06 10:48:11 +0000
commit44b567482e8c3da75ed3a19998b014b842e36ad7 (patch)
treee65a376d24d8a83c1481e0bcf3ed270388ac69df /sys/netipx/ipx_outputfl.c
parent263576a9fc3b774ced351c2c66aceede13ddf62d (diff)
downloadFreeBSD-src-44b567482e8c3da75ed3a19998b014b842e36ad7.zip
FreeBSD-src-44b567482e8c3da75ed3a19998b014b842e36ad7.tar.gz
Make it possible to use lo0 as an internal IPX network. This is usefull
for mars_nwe server and nwfs. PR: 9871 Submitted by: Boris Popov <bp@butya.kz>
Diffstat (limited to 'sys/netipx/ipx_outputfl.c')
-rw-r--r--sys/netipx/ipx_outputfl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netipx/ipx_outputfl.c b/sys/netipx/ipx_outputfl.c
index c540aa7..794b0df 100644
--- a/sys/netipx/ipx_outputfl.c
+++ b/sys/netipx/ipx_outputfl.c
@@ -33,7 +33,7 @@
*
* @(#)ipx_outputfl.c
*
- * $Id: ipx_outputfl.c,v 1.9 1997/07/01 00:22:49 bde Exp $
+ * $Id: ipx_outputfl.c,v 1.10 1998/02/09 06:10:21 eivind Exp $
*/
#include <sys/param.h>
@@ -118,7 +118,7 @@ gotif:
* such a packet.
*/
if (dst->sipx_addr.x_host.c_host[0]&1) {
- if ((ifp->if_flags & IFF_BROADCAST) == 0) {
+ if ((ifp->if_flags & (IFF_BROADCAST | IFF_LOOPBACK)) == 0) {
error = EADDRNOTAVAIL;
goto bad;
}
@@ -126,6 +126,7 @@ gotif:
error = EACCES;
goto bad;
}
+ m0->m_flags |= M_BCAST;
}
if (htons(ipx->ipx_len) <= ifp->if_mtu) {
OpenPOWER on IntegriCloud