Module Name: src
Committed By: christos
Date: Mon Feb 24 16:52:39 UTC 2025
Modified Files:
src/external/bsd/dhcpcd/dist/src: dhcp6.c
Log Message:
PR/59098: Christos Zoulas: new dhcpcd broken for ipv6, thanks roy@
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/external/bsd/dhcpcd/dist/src/dhcp6.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/dist/src/dhcp6.c
diff -u src/external/bsd/dhcpcd/dist/src/dhcp6.c:1.35 src/external/bsd/dhcpcd/dist/src/dhcp6.c:1.36
--- src/external/bsd/dhcpcd/dist/src/dhcp6.c:1.35 Wed Feb 12 14:23:13 2025
+++ src/external/bsd/dhcpcd/dist/src/dhcp6.c Mon Feb 24 11:52:39 2025
@@ -331,8 +331,9 @@ dhcp6_makevendor(void *data, const struc
p += vivco->len;
}
} else if (ifo->vendorclassid[0] != '\0') {
+ optlen = sizeof(uint32_t) + sizeof(uint16_t) + vlen;
o.code = htons(D6_OPTION_VENDOR_CLASS);
- o.len = htons((uint16_t)len);
+ o.len = htons((uint16_t)optlen);
memcpy(p, &o, sizeof(o));
p += sizeof(o);
pen = htonl(DHCPCD_IANA_PEN);