Seems that this was fixed in ipx_connect and ipx_recvmsg in 2.2.0-pre8, but
not in ipx_sendmsg. I'm not sure this is right, but it follows what
ipx_connect and ipx_recvmsg do, and it stops it from oops'ing. *shrug*
-- Daniel Drown <abob@dpd130.rh.psu.edu>--ELM918684534-6513-0_ Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: attachment; filename=ipx_sendmsg.patch Content-Description: patch to ipx_sendmsg in /usr/src/linux/net/ipx/af_ipx.c Content-Transfer-Encoding: 7bit
--- af_ipx.c.old Wed Feb 10 14:59:10 1999 +++ af_ipx.c Wed Feb 10 17:00:38 1999 @@ -2133,8 +2133,11 @@ uaddr.sipx_port = 0; uaddr.sipx_network = 0L; #ifdef CONFIG_IPX_INTERN - memcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc - ->if_node, IPX_NODE_LEN); + if(sk->protinfo.af_ipx.intrfc) + memcpy(uaddr.sipx_node, sk->protinfo.af_ipx.intrfc + ->if_node,IPX_NODE_LEN); + else + return -ENETDOWN; /* Someone zonked the iface */ #endif ret = ipx_bind(sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
--ELM918684534-6513-0_--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/