Skip to contentSkip to conversation

buen dia

DISCUSSION Stas Sergeev 4 participants 4 messages Apr 24, 2004 – Apr 26, 2004

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 2 lines · Enrique Baraibar

The question is how can I redirect it so it looks for ipx_route in proc/net/ipx instead of /proc/net

This is hardcoded in ipxglt.c - just change that file and recompile. This was changed between 2.4 and 2.6 kernel series, and now dosemu needs a runtime check.

#1 lore raw
Quoted 5 lines · On Sat, 24 Apr 2004 17:33:30 +0400 Stas Sergeev <[email protected]> wrote:

Hello.

Quoted 2 lines · Enrique Baraibar

The question is how can I redirect it so it looks for ipx_route in proc/net/ipx instead of /proc/net

Quoted 9 lines

This is hardcoded in ipxglt.c - just
change that file and recompile.
This was changed between 2.4 and 2.6
kernel series, and now dosemu needs
a runtime check.
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Gerardo, traduzco lo que dijo Stas:

Esto está fijado en ipxglt.c - sólo cambia ese archivo y recompila. Esto fue cambiado entre las series 2.4 y 2.6 del kernel, y ahora dosemu necesita una revisión del runtime.

Signature · 6 lines
Enrique Baraibar

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to Stas Sergeev

On Sat, Apr 24, 2004 at 05:33:30PM +0400, Stas Sergeev wrote

Quoted 11 lines

Hello.

Quoted 2 lines · Enrique Baraibar

The question is how can I redirect it so it looks for ipx_route in proc/net/ipx instead of /proc/net

This is hardcoded in ipxglt.c - just change that file and recompile. This was changed between 2.4 and 2.6 kernel series, and now dosemu needs a runtime check.

Michael Karcher wrote a runtimecheck I'm using now. cvs diff returns the following for src/dosext/net/net/ipxglt.c:
< open_proc_scan("/proc/net/ipx_route");
---

Quoted 6 lines
      if(access("/proc/net/ipx/route",R_OK) == 0)
              open_proc_scan("/proc/net/ipx/route");
      else if(access("/proc/net/ipx_route",R_OK) == 0)
              open_proc_scan("/proc/net/ipx_route");
      else
              return 0;

Reinhard

#3 lore raw
Quoted 12 lines · Reinhard Karcher

On Sat, Apr 24, 2004 at 05:33:30PM +0400, Stas Sergeev wrote

Quoted 11 lines

Hello.

Quoted 2 lines · Enrique Baraibar

The question is how can I redirect it so it looks for ipx_route in proc/net/ipx instead of /proc/net

This is hardcoded in ipxglt.c - just change that file and recompile. This was changed between 2.4 and 2.6 kernel series, and now dosemu needs a runtime check.

Quoted 10 lines

Michael Karcher wrote a runtimecheck I'm using now. cvs diff returns the following for src/dosext/net/net/ipxglt.c:
< open_proc_scan("/proc/net/ipx_route");
---

Quoted 6 lines
      if(access("/proc/net/ipx/route",R_OK) == 0)
              open_proc_scan("/proc/net/ipx/route");
      else if(access("/proc/net/ipx_route",R_OK) == 0)
              open_proc_scan("/proc/net/ipx_route");
      else
              return 0;

thanks! I was going to do something like this but now I know it's tested as well. "cvs diff -u" would have been nicer by the way.

Bart

Index: ipxglt.c
===================================================================
RCS file: /cvsroot/dosemu/dosemu/src/dosext/net/net/ipxglt.c,v retrieving revision 1.2

ipxglt.c +6 -1
diff -u -r1.2 ipxglt.c
@@ -81,7 +81,12 @@
 	sprintf(buf_node, "%02X%02X%02X%02X%02X%02X", node[0], node[1],
                      node[2], node[3], node[4], node[5]);
 
-	open_proc_scan("/proc/net/ipx_route");
+	if(access("/proc/net/ipx/route",R_OK) == 0)
+		open_proc_scan("/proc/net/ipx/route");
+	else if(access("/proc/net/ipx_route",R_OK) == 0)
+		open_proc_scan("/proc/net/ipx_route");
+	else
+		return 0;
 	proc_str = get_proc_string_by_key(buf_targ);
 
 	if (!proc_str) {