From 7027b5ba057bac04b83c891efd102155173b773b Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Mon, 8 Sep 2014 22:01:58 +0200 Subject: [PATCH] comment about IP_ADAPTER_ADDRESS_DNS_ELIGIBLE (should we use it?) --- src/iface-windows.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/iface-windows.c b/src/iface-windows.c index 729e3c4..5ad1460 100644 --- a/src/iface-windows.c +++ b/src/iface-windows.c @@ -74,6 +74,10 @@ static void ip_adapter_unicast_address(CattaInterfaceMonitor *m, } // set global scope flag + // XXX should we use the IP_ADAPTER_ADDRESS_DNS_ELIGIBLE flag for this? + // it looks like it gets set for IPv4 addresses that are not localhost + // and for IPv6 addresses with global scope. not sure about multicast + // addresses. if(addr.proto == CATTA_PROTO_INET6) ifaddr->global_scope = !(IN6_IS_ADDR_LINKLOCAL((struct in6_addr *)addr.data.data) || IN6_IS_ADDR_MULTICAST((struct in6_addr *)addr.data.data)); -- 2.39.5