Re: 2.3.30 net_init.c Token Ring Bug -Reply

Mike Phillips (phillim@amtrak.com)
Wed, 08 Dec 1999 13:08:20 -0500


This is a MIME message. If you are reading this text, you may want to
consider changing to a mail reader or gateway that understands how to
properly handle MIME multipart messages.

--=_D188AA52.DABBDDB3
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

> Fix ifconfig.

OK, here are the two patches required to fix ifconfig, ntoolstr.pat is the =
fix in net-tools (against 1.53). if_arp.pat is the fix for /usr/include/if_=
arp.h

Mike

=20

--=_D188AA52.DABBDDB3
Content-Type: text/plain
Content-Disposition: attachment; filename="IF_ARP.PAT"
Content-Description: WordPerfect 4.2

--- if_arp.h.orig Wed Dec 8 13:49:06 1999
+++ if_arp.h Wed Dec 8 13:47:02 1999
@@ -119,6 +119,8 @@
#define ARPHRD_FCPL 786 /* Fibrechanel public loop. */
#define ARPHRD_FCPFABRIC 787 /* Fibrechanel fabric. */

+#define ARPHRD_IEEE802_TR 800 /* Magic type ident for TR */
+
/* ARP ioctl request. */
struct arpreq
{

--=_D188AA52.DABBDDB3
Content-Type: text/plain
Content-Disposition: attachment; filename="NTOOLSTR.PAT"
Content-Description: WordPerfect 4.2

--- tr.c.orig Wed Dec 8 13:41:17 1999
+++ tr.c Wed Dec 8 13:45:47 1999
@@ -19,7 +19,7 @@
#include <asm/types.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <net/if_arp.h>
+#include <net/if_arp.h>
#include <linux/if_tr.h>
#include <stdlib.h>
#include <stdio.h>
@@ -129,7 +129,7 @@

struct hwtype tr_hwtype =
{
- "tr", NULL /* "16/4 Mbps Token Ring" */, ARPHRD_IEEE802, TR_ALEN,
+ "tr", NULL /* "16/4 Mbps Token Ring" */, ARPHRD_IEEE802_TR, TR_ALEN,
pr_tr, pr_str, in_tr, NULL
};

--=_D188AA52.DABBDDB3--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/