Add snooping of DHCPv6 prefix delegation to the DHCP-relay function.

This commit is contained in:
Simon Kelley committed 2021-12-30 21:20:37 +00:00
1 parent 1c8855ed10
commit d242cbffa4
8 files changed
+177 -15

No files matched your search

+1 -2
View File
@@ -135,9 +135,8 @@ void dhcp6_packet(time_t now)
if (!indextoname(daemon->dhcp6fd, if_index, ifr.ifr_name))
return;
if ((port = relay_reply6(&from, sz, ifr.ifr_name)) != 0)
if (relay_reply6(&from, sz, ifr.ifr_name))
{
from.sin6_port = htons(port);
while (retry_send(sendto(daemon->dhcp6fd, daemon->outpacket.iov_base,
save_counter(-1), 0, (struct sockaddr *)&from,
sizeof(from))));