tcpdump mailing list archives

[PATCH] updates print-arp.c for Infiniband


From: Darren Reed <darren.reed () oracle com>
Date: Thu, 14 Jul 2011 18:01:14 +0200

This is a trivial patch to update print-arp.c to know about the mapping between hardware type having a value of 32 and the name Infiniband. The value of 32 is as according to RFC 4391.

Darren

--- print-arp.c.dist    Thu Mar 11 17:56:44 2010
+++ print-arp.c Thu Jul 14 08:56:12 2011
@@ -62,6 +62,7 @@
         u_char  ar_hln;         /* length of hardware address */
         u_char  ar_pln;         /* length of protocol address */
         u_short ar_op;          /* one of: */
+#define        ARPHRD_IB       32      /* Infiniband RFC 4391 */
 #define ARPOP_REQUEST   1       /* request to resolve address */
 #define ARPOP_REPLY     2       /* response to previous request */
 #define ARPOP_REVREQUEST 3      /* request protocol address given hardware */
@@ -118,6 +119,7 @@
     { ARPHRD_STRIP, "Strip" },
     { ARPHRD_IEEE1394, "IEEE 1394" },
     { ARPHRD_ATM2225, "ATM" },
+    { ARPHRD_IB, "Infiniband" },
     { 0, NULL }
 };
 
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Current thread: