]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dhcp: yes, infiniband has the larger MAC address length, but let the compuler figure...
authorLennart Poettering <lennart@poettering.net>
Sun, 12 Apr 2015 18:15:08 +0000 (20:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 12 Apr 2015 18:15:08 +0000 (20:15 +0200)
src/libsystemd-network/sd-dhcp-client.c

index c44392eb81d26682a72ff3a7cecaf9afc0897874..0193e42d6511125f7f926c93ed31a2bf95525256 100644 (file)
@@ -38,7 +38,7 @@
 #include "sd-dhcp-client.h"
 
 #define MAX_CLIENT_ID_LEN (sizeof(uint32_t) + MAX_DUID_LEN)  /* Arbitrary limit */
-#define MAX_MAC_ADDR_LEN INFINIBAND_ALEN
+#define MAX_MAC_ADDR_LEN CONST_MAX(INFINIBAND_ALEN, ETH_ALEN)
 
 struct sd_dhcp_client {
         RefCount n_ref;