diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-12 20:15:08 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-12 20:15:08 +0200 |
commit | dd168445f851adc196125b98d59961b2085ff763 (patch) | |
tree | b636cce24953d4ee9481a0b0fda9a854b3b95459 /src/libsystemd-network | |
parent | 3d8dcaf1dad40c1287daa0a8a5fdf1ab8841d056 (diff) |
dhcp: yes, infiniband has the larger MAC address length, but let the compuler figure that out...
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c index c44392eb81..0193e42d65 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; |