summaryrefslogtreecommitdiffhomepage
path: root/src/dhcpv6-ia.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-04-01 22:13:45 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2021-09-21 22:27:28 +0200
commitc0c75eded63da537bf30fdf0176f27070c8d6c7a (patch)
tree9fd79e4894873d7d88e2a2edd9c57f0fcd0f6488 /src/dhcpv6-ia.c
parent60f8f6eda17b868216e8e58fd370505502cd80ac (diff)
WIP: debug
Diffstat (limited to 'src/dhcpv6-ia.c')
-rw-r--r--src/dhcpv6-ia.c5
1 files changed, 5 insertions, 0 deletions
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;
}