From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: IPX networking Date: Mon, 28 Oct 2002 19:16:50 +0300 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <3DBD62F2.5060109@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030108060601060607040802" Return-path: List-Id: To: linux-msdos@vger.kernel.org This is a multi-part message in MIME format. --------------030108060601060607040802 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello. Sergey Suleymanov wrote: > When I run dosemu without root privs, it says: (here 333 is > internal net of the native NetWare server) > ERROR: IPX: Failure adding route <00000333 through > 00000111:000000000001> > Is this ok? Doesn't look healthy to me. Does this patch help? Patch is completely untested, but it compiles:) --------------030108060601060607040802 Content-Type: text/plain; name="ipx_route.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ipx_route.diff" --- src/dosext/net/net/ipxglt.c Sun Oct 27 17:35:39 2002 +++ src/dosext/net/net/ipxglt.c Mon Oct 28 19:03:27 2002 @@ -109,8 +109,20 @@ sscanf(proc_str, "%s %s", proc_net, proc_node); close_proc_scan(); - if (strcmp(buf_net, proc_net) || strcmp(buf_node, proc_node)) - return 0; + if (strcmp(buf_net, proc_net) || strcmp(buf_node, proc_node)) { + open_proc_scan("/proc/net/ipx_interface"); + proc_str = get_proc_string_by_key(buf_net); + if (!proc_str) { + close_proc_scan(); + return 0; + } + if (!strstr(proc_str, "Internal")) { + close_proc_scan(); + return 0; + } + close_proc_scan(); + /* fall through */ + } return 1; } --------------030108060601060607040802--