dhcpd and infiniband (address type 32)

Bryan Green bryan.d.green at nasa.gov
Fri Jun 13 06:09:15 UTC 2008


Hello,

I have a question about using dhcpd with IPoIB.

I've found that dhcpd on an IPoIB interface does not work because the
hardware address type 32 is not recognized by dhcpd.

At startup, I get the message:
ib0: unknown hardware address type 32

A simple patch provided by OFED (www.openfabrics.org) solves the problem.
I have tested it myself with dhcpd version 3.1.0, but have checked more
recent releases of dhcpd and see that the patch has yet to be applied.

It would be great if a version of dhcpd were released that had this IPoIB
support.  Is there a chance of that happening?

The patch can be found in this tarball:
http://www.openfabrics.org/downloads/OFED/ofed-1.3.1/OFED-1.3.1.tgz
as the file 'docs/dhcp/dhcp-3.0.4.patch'

This is the patch itself:

============================================================================
--- dhcp-3.0.4.orig/common/discover.c   2006-02-23 00:43:27.000000000 +0200
+++ dhcp-3.0.4/common/discover.c        2006-05-23 11:45:16.000000000 +0300
@@ -532,6 +532,12 @@ void discover_interfaces (state)
            break;
 #endif
 
+                     case ARPHRD_INFINIBAND:
+                       tmp -> hw_address.hlen = 1;
+                       tmp -> hw_address.hbuf [0] = ARPHRD_INFINIBAND;
+                       memcpy (&tmp -> hw_address.hbuf [1], sa.sa_data,
20);
+                       break;
+
              default:
            log_error ("%s: unknown hardware address type %d",
                   ifr.ifr_name, sa.sa_family);
============================================================================

Thanks,
-Bryan



More information about the dhcp-users mailing list