#else
time_t expires;
#endif
+#ifdef HAVE_TFTP
+ off_t file_len;
+#endif
#ifdef HAVE_DHCP6
struct in6_addr addr6;
int iaid, vendorclass_count;
inet_ntop(AF_INET6, &data.addr6, daemon->addrbuff, ADDRSTRLEN);
#endif
+#ifdef HAVE_TFTP
/* file length */
if (data.action == ACTION_TFTP)
- sprintf(is6 ? daemon->packet : daemon->dhcp_buff, "%u", data.iaid);
-
+ sprintf(is6 ? daemon->packet : daemon->dhcp_buff, "%lu", (unsigned long)data.file_len);
+#endif
+
#ifdef HAVE_LUASCRIPT
if (daemon->luascript)
{
buf->action = ACTION_TFTP;
buf->hostname_len = filename_len;
- buf->iaid = file_len;
+ buf->file_len = file_len;
if ((buf->flags = peer->sa.sa_family) == AF_INET)
buf->addr = peer->in.sin_addr;