mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
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>
This commit is contained in:
parent
d468daa7d2
commit
23b29a7c5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43712
@ -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) {
|
||||
|
@ -33,7 +33,7 @@
|
||||
*
|
||||
* @(#)ipx_pcb.c
|
||||
*
|
||||
* $Id: ipx_pcb.c,v 1.13 1997/10/28 15:58:56 bde Exp $
|
||||
* $Id: ipx_pcb.c,v 1.14 1998/02/09 06:10:23 eivind Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -169,7 +169,6 @@ ipx_pcbconnect(ipxp, nam, p)
|
||||
if (ro->ro_rt != NULL)
|
||||
RTFREE(ro->ro_rt);
|
||||
ro->ro_rt = NULL;
|
||||
ipxp->ipxp_laddr.x_net = ipx_zeronet;
|
||||
}
|
||||
}/* else cached route is ok; do nothing */
|
||||
ipxp->ipxp_lastdst = sipx->sipx_addr;
|
||||
|
@ -33,7 +33,7 @@
|
||||
*
|
||||
* @(#)ipx_usrreq.c
|
||||
*
|
||||
* $Id: ipx_usrreq.c,v 1.20 1998/08/23 03:07:15 wollman Exp $
|
||||
* $Id: ipx_usrreq.c,v 1.21 1998/12/07 21:58:42 archie Exp $
|
||||
*/
|
||||
|
||||
#include "opt_ipx.h"
|
||||
@ -560,8 +560,7 @@ ipx_send(so, flags, m, nam, control, p)
|
||||
if (nam != NULL) {
|
||||
ipx_pcbdisconnect(ipxp);
|
||||
splx(s);
|
||||
ipxp->ipxp_laddr.x_host = laddr.x_host;
|
||||
ipxp->ipxp_laddr.x_port = laddr.x_port;
|
||||
ipxp->ipxp_laddr = laddr;
|
||||
}
|
||||
|
||||
send_release:
|
||||
|
Loading…
Reference in New Issue
Block a user