summaryrefslogtreecommitdiff
path: root/src/dhcp6.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2021-12-30 21:20:37 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2021-12-30 21:20:37 +0000
commitd242cbffa4f20c9f7472f79b3a9e47008b6fe77c (patch)
tree1459bde62515b258d3061df9740aec64be9f6f2e /src/dhcp6.c
parent1c8855ed10d3923a9a4fd8a89f1c95439d4c8827 (diff)
downloaddnsmasq-dhcpv6-snoop.tar.gz
Add snooping of DHCPv6 prefix delegation to the DHCP-relay function.dhcpv6-snoop
Diffstat (limited to 'src/dhcp6.c')
-rw-r--r--src/dhcp6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dhcp6.c b/src/dhcp6.c
index ae1f5c1..c061879 100644
--- a/src/dhcp6.c
+++ b/src/dhcp6.c
@@ -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))));