From af9f23da9f3ce89353cf06878bf8ab49b405e331 Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 17 Aug 2021 12:07:24 +1000 Subject: Impl full IPv6 support ... * Use different strategy for discovering IPv6 hosts on the network * Multicast IPv6 packet with bogus destination options to get ICMPv6 responses(type 4, code 2) * Send SYN packets to the hosts responds to the packet to confirm that they have target ports open * Add full scope_id support * Fix potential infinite loop when receiving raw packets --- src/protocol.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/protocol.c') diff --git a/src/protocol.c b/src/protocol.c index 5aaccc2..d2bf53d 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -125,6 +125,7 @@ void prne_net_ep_tosin6 ( struct sockaddr_in6 *out) { memcpy(&out->sin6_addr, ep->addr.addr, 16); + out->sin6_scope_id = ep->addr.scope_id; out->sin6_family = AF_INET6; out->sin6_port = htons(ep->port); } -- cgit