Don't reset packet length on transmission, in case of retransmission.

This commit is contained in:
Simon Kelley committed 2016-07-22 20:59:16 +01:00
1 parent fa78573778
commit 6b1c464d6d
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ time_t periodic_slaac(time_t now, struct dhcp_lease *leases)
addr.sin6_port = htons(IPPROTO_ICMPV6);
addr.sin6_addr = slaac->addr;
if (sendto(daemon->icmp6fd, daemon->outpacket.iov_base, save_counter(0), 0,
if (sendto(daemon->icmp6fd, daemon->outpacket.iov_base, save_counter(-1), 0,
(struct sockaddr *)&addr, sizeof(addr)) == -1 &&
errno == EHOSTUNREACH)
slaac->ping_time = 0; /* Give up */