[systemd-commits] src/libsystemd-network
Lennart Poettering
lennart at kemper.freedesktop.org
Sun Apr 12 11:55:37 PDT 2015
src/libsystemd-network/sd-dhcp-client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit dd168445f851adc196125b98d59961b2085ff763
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Apr 12 20:15:08 2015 +0200
dhcp: yes, infiniband has the larger MAC address length, but let the compuler figure that out...
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c
index c44392e..0193e42 100644
--- a/src/libsystemd-network/sd-dhcp-client.c
+++ b/src/libsystemd-network/sd-dhcp-client.c
@@ -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;
More information about the systemd-commits
mailing list