From c0c75eded63da537bf30fdf0176f27070c8d6c7a Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 1 Apr 2021 22:13:45 +0200 Subject: WIP: debug --- src/dhcpv6-ia.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dhcpv6-ia.c') diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index bb13b9f..2f0ce61 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -754,6 +754,8 @@ static bool assign_na(struct interface *iface, struct dhcp_assignment *a, bool i counter++; + syslog(LOG_INFO, "DHCPV6 result %ld %ld %d %lx %zx", sizeof(int), sizeof(long), iface->dhcpv6_hostid_len, mask, try); + if (try < 0x100) continue; @@ -1129,6 +1131,9 @@ static size_t build_ia(uint8_t *buf, size_t buflen, uint16_t status, o_ia.len = htons(ia_len - 4); memcpy(buf, &o_ia, ia_hdr_len); + + syslog(LOG_INFO, "DHCPV6 build_ia %d %d %d %zd %zd %zd %zd %zd %d", DHCPV6_OPT_IA_TA, ia->type, o_ia.type, sizeof(o_ia), sizeof(o_ia.t1), sizeof(o_ia.t2), ia_hdr_len, ia_len, o_ia.len); + return ia_len; } -- cgit v1.2.3