diff options
author | David Timber <mieabby@gmail.com> | 2021-08-17 12:07:24 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-08-17 12:07:24 +1000 |
commit | af9f23da9f3ce89353cf06878bf8ab49b405e331 (patch) | |
tree | f49c0aaa74ee09ca11c03f0aead5010d41eb18f6 /src/protocol.c | |
parent | a161674bcee21384a73834e3ca16ad3bf1c70cf3 (diff) |
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
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |