public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* IPX networking
@ 2002-10-28 13:25 Sergey Suleymanov
  0 siblings, 0 replies; 3+ messages in thread
From: Sergey Suleymanov @ 2002-10-28 13:25 UTC (permalink / raw)
  To: Linux-MSDOS Mailing list


        These are my IPX nets: 

solt:~# cat /proc/net/ipx_interface 
Network    Node_Address   Primary  Device     Frame_Type
00000111   000000000001   Yes      Internal   None
00000777   00A0D216FF6B   No       eth1       802.3
00000555   00C026A1AA2A   No       eth2       802.3
00000666   00104B386E81   No       eth0       802.3
00000999   00A0D216FF6B   No       eth1       EtherII
solt:~# cat /proc/net/ipx_route 
Network    Router_Net   Router_Node
00000333   00000777     00C095E809B5
00000999   Directly     Connected
00000666   Directly     Connected
00000555   Directly     Connected
00000777   Directly     Connected
00000111   Directly     Connected

        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? Why not <00000777:00C095E809B5>?

-- 
  Sergey Suleymanov


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: IPX networking
@ 2002-10-28 16:16 Stas Sergeev
  2002-10-29  5:29 ` Sergey Suleymanov
  0 siblings, 1 reply; 3+ messages in thread
From: Stas Sergeev @ 2002-10-28 16:16 UTC (permalink / raw)
  To: linux-msdos

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

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:)

[-- Attachment #2: ipx_route.diff --]
[-- Type: text/plain, Size: 653 bytes --]

--- 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;
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: IPX networking
  2002-10-28 16:16 IPX networking Stas Sergeev
@ 2002-10-29  5:29 ` Sergey Suleymanov
  0 siblings, 0 replies; 3+ messages in thread
From: Sergey Suleymanov @ 2002-10-29  5:29 UTC (permalink / raw)
  To: Linux-MSDOS Mailing list

>>>>> Stas Sergeev writes:

 Stas> Doesn't look healthy to me.  Does this patch help?  

        It does. Thanks.

 Stas> Patch is completely untested, but it compiles:) 

        Well, it has tested now. :)

-- 
  Sergey Suleymanov


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-29  5:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 16:16 IPX networking Stas Sergeev
2002-10-29  5:29 ` Sergey Suleymanov
  -- strict thread matches above, loose matches on Subject: below --
2002-10-28 13:25 Sergey Suleymanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox