summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-10-02 16:00:55 +0200
committerTom Gundersen <teg@jklm.no>2014-10-02 19:07:30 +0200
commit9547267dc56d5bf84b8119dfcb8e101202fac7d3 (patch)
tree04b9c90a738a0d1d8aa33576eefaee4ab6448ace
parent66eac1201a9c1596f5901f8dbbf24bda7e350878 (diff)
sd-dhcp6: support custom DUID's up to the size specified in the RFC
-rw-r--r--src/libsystemd-network/sd-dhcp6-client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c
index 130fe43cf2..ad6c5eb4d8 100644
--- a/src/libsystemd-network/sd-dhcp6-client.c
+++ b/src/libsystemd-network/sd-dhcp6-client.c
@@ -39,7 +39,10 @@
#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;