On Mon, 26 Apr 2004, Reinhard Karcher wrote:

> On Sat, Apr 24, 2004 at 05:33:30PM +0400, Stas Sergeev wrote
> > Hello.
> >
> > Enrique Baraibar wrote:
> > >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");
> ---
> >       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
diff -u -r1.2 ipxglt.c
--- ipxglt.c    16 Jan 2004 20:50:30 -0000      1.2
+++ ipxglt.c    26 Apr 2004 08:31:07 -0000
@@ -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) {

-
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

Reply via email to