DHCPv6 IAID should be of unsigned type. It is derived from strtoul() in lease.c:read_leases() and already now interpreted as unsigned in helper.c:276 and outpacket.c:put_opt6_long(). RFC3315 (section 22.4) shows that the IAID is 4 bytes long so we do not need to go up to unsigned long.

Signed-off-by: Dominik DL6ER <dl6er@dl6er.de>
This commit is contained in:
Dominik DL6ER authored and Simon Kelley committed 2019-10-25 22:00:35 +01:00
1 parent 157d8cfd6a
commit 456a319775
5 files changed
+17 -12

No files matched your search

+2 -1
View File
@@ -66,7 +66,8 @@ struct script_data
#endif
struct in6_addr addr6;
#ifdef HAVE_DHCP6
int iaid, vendorclass_count;
int vendorclass_count;
unsigned int iaid;
#endif
unsigned char hwaddr[DHCP_CHADDR_MAX];
char interface[IF_NAMESIZE];