]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use duid_len rather than a fixed size.
authorRoy Marples <roy@marples.name>
Thu, 30 May 2013 08:04:24 +0000 (08:04 +0000)
committerRoy Marples <roy@marples.name>
Thu, 30 May 2013 08:04:24 +0000 (08:04 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 1d8be510dbfe7986906d76c5cfc66c049ba97580..0e65e22ba565b7724188b935302d3f41d6f698a7 100644 (file)
--- 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);