chiark / gitweb /
sd-dhcp6: support custom DUID's up to the size specified in the RFC
authorTom Gundersen <teg@jklm.no>
Thu, 2 Oct 2014 14:00:55 +0000 (16:00 +0200)
committerTom Gundersen <teg@jklm.no>
Thu, 2 Oct 2014 17:07:30 +0000 (19:07 +0200)
src/libsystemd-network/sd-dhcp6-client.c

index 130fe43cf26b40a2588e74ef3fb47c24f111ab77..ad6c5eb4d86fd0b76c29271e8ec7958d5a79839e 100644 (file)
 #define SYSTEMD_PEN 43793
 #define HASH_KEY SD_ID128_MAKE(80,11,8c,c2,fe,4a,03,ee,3e,d6,0c,6f,36,39,14,09)
 
-#define MAX_DUID_LEN 32
+/* RFC 3315 section 9.1:
+ *      A DUID can be no more than 128 octets long (not including the type code).
+ */
+#define MAX_DUID_LEN 128
 
 struct sd_dhcp6_client {
         RefCount n_ref;