From: Roy Marples Date: Thu, 30 May 2013 08:04:24 +0000 (+0000) Subject: Use duid_len rather than a fixed size. X-Git-Tag: v5.99.7~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7630e977280476d115a64f8e0509717840b936a5;p=thirdparty%2Fdhcpcd.git Use duid_len rather than a fixed size. --- diff --git a/dhcp6.c b/dhcp6.c index 1d8be510..0e65e22b 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -391,7 +391,7 @@ dhcp6_makemessage(struct interface *ifp) } len += sizeof(*state->send); - len += sizeof(*o) + 14; /* clientid */ + len += sizeof(*o) + duid_len; len += sizeof(*o) + sizeof(uint16_t); /* elapsed */ #ifdef DHCPCD_IANA_PEN len += sizeof(*o) + dhcp6_makevendor(NULL);