Skip to contentSkip to conversation

IPX networking

DISCUSSION Stas Sergeev 2 participants 2 messages Oct 28, 2002 – Oct 29, 2002

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 4 lines · Sergey Suleymanov

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

dosext/net/net/ipxglt.c +14 -2
@@ -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;
 }
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

Signature · 1 line
  Sergey Suleymanov