netdev
[Top] [All Lists]

[Fwd: [PATCH] accept ARP's with HW Type of 1 from IEEE802 devices]

To: netdev@xxxxxxxxxxx
Subject: [Fwd: [PATCH] accept ARP's with HW Type of 1 from IEEE802 devices]
From: Noah Romer <nromer@xxxxxxxx>
Date: Wed, 10 Jan 2001 08:38:56 -0500
Cc: "Romer, Noah" <noah.romer@xxxxxxxx>
Organization: LSI Logic
Sender: owner-netdev@xxxxxxxxxxx
Well it appears that my message never made it to the list the first time (not
in the list archive for December, and no response), so I'm trying again. The
patch applies cleanly to the 2.4.0 kernel (2 line fuzz reported by patch). So,
as long as nothing major has changed in the arp handling while I was on
vacation, it should still be Ok.

-------- Original Message --------
Subject: [PATCH] accept ARP's with HW Type of 1 from IEEE802 devices
Date: Wed, 20 Dec 2000 11:46:32 -0500
From: Noah Romer <nromer@xxxxxxxx>
Organization: LSI Logic
To: netdev@xxxxxxxxxxx
CC: noah.romer@xxxxxxxx

Patch against linux/net/ipv4/arp.c to accept ARP's with HW Type of 1 from
IEEE802 devices (specifically, Fibre Channel devices). This has been tested
with linux-2.4.0-test9 and linux-2.4.0-test12.

---
diff -u arp.c~ arp.c
--- arp.c~      Tue Oct  3 09:24:41 2000
+++ arp.c       Wed Dec 20 16:05:36 2000
@@ -647,6 +647,20 @@
                        goto out;
                break;
 #endif
+#ifdef CONFIG_NET_FC
+       case ARPHRD_IEEE802:
+               /*
+                * According to RFC 2625, Fibre Channel devices (which are IEEE
+                * 802 devices) should accept ARP hardware types of 6 (IEEE
802)
+                * and 1 (Ethernet).
+                */
+               if (arp->ar_hrd != __constant_htons(ARPHRD_ETHER) &&
+                   arp->ar_hrd != __constant_htons(ARPHRD_IEEE802))
+                       goto out;
+               if (arp->ar_pro != __constant_htons(ETH_P_IP))
+                       goto out;
+               break;
+#endif
 #if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
        case ARPHRD_AX25:
                if (arp->ar_pro != __constant_htons(AX25_P_IP))

<Prev in Thread] Current Thread [Next in Thread>