summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2003-01-06 09:06:34 -0800
committerDavid S. Miller <davem@kernel.bkbits.net>2003-01-06 09:06:34 -0800
commit4f85bc95dedb42855fe6ea88ec0353497997f964 (patch)
treee085c810ee0cea03102c67d5d6c4724a42635fa2 /include
parentae4d98378f651581ece95d133fd65a811e5bb8d5 (diff)
[NET]: Increase MAX_ADDR_LEN.
- Add ARPHRD_INFINIBAND - Increase MAX_ADDR_LEN to 32 from 8 - Add suitable length protection to SIOCGIFHWADDR and friends. - Add RTM_SETLINK for portably setting larger hw addrs.
Diffstat (limited to 'include')
-rw-r--r--include/linux/if_arp.h1
-rw-r--r--include/linux/netdevice.h2
-rw-r--r--include/linux/rtnetlink.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/if_arp.h b/include/linux/if_arp.h
index dd936fe6180e..77906e130efd 100644
--- a/include/linux/if_arp.h
+++ b/include/linux/if_arp.h
@@ -40,6 +40,7 @@
#define ARPHRD_METRICOM 23 /* Metricom STRIP (new IANA id) */
#define ARPHRD_IEEE1394 24 /* IEEE 1394 IPv4 - RFC 2734 */
#define ARPHRD_EUI64 27 /* EUI-64 */
+#define ARPHRD_INFINIBAND 32 /* InfiniBand */
/* Dummy types for non ARP hardware */
#define ARPHRD_SLIP 256
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 513b89ca7836..b3026b172369 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -65,7 +65,7 @@ struct vlan_group;
#endif
-#define MAX_ADDR_LEN 8 /* Largest hardware address length */
+#define MAX_ADDR_LEN 32 /* Largest hardware address length */
/*
* Compute the worst case header length according to the protocols
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 57296f48dc02..40ceec333586 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -17,6 +17,7 @@
#define RTM_NEWLINK (RTM_BASE+0)
#define RTM_DELLINK (RTM_BASE+1)
#define RTM_GETLINK (RTM_BASE+2)
+#define RTM_SETLINK (RTM_BASE+3)
#define RTM_NEWADDR (RTM_BASE+4)
#define RTM_DELADDR (RTM_BASE+5)