Development discussion of WireGuard
 help / color / mirror / Atom feed
* Wintun NeighborDiscoverySupported
@ 2021-09-09 14:32 Brad Spencer
  2021-09-09 17:42 ` Jason A. Donenfeld
  0 siblings, 1 reply; 6+ messages in thread
From: Brad Spencer @ 2021-09-09 14:32 UTC (permalink / raw)
  To: WireGuard mailing list

We have noticed that Windows seems to try to send ARP requests over 
Wintun interfaces.  In our configurations, these don't go anywhere and 
get no responses, but the ARP table fills up with addresses.  For example:

$  arp -a -N 10.0.0.100 |wc -l
387

Our Wintun interfaces are created with these properties:

PS C:\> Get-NetIPInterface -InterfaceIndex 69 |Select-Object -Property 
AddressFamily,NeighborDiscoverySupported,NeighborUnreachabilityDetection |fl

AddressFamily                   : IPv6
NeighborDiscoverySupported      : Yes
NeighborUnreachabilityDetection : Enabled

AddressFamily                   : IPv4
NeighborDiscoverySupported      : Yes
NeighborUnreachabilityDetection : Enabled

We _think_ that the NeighborDiscoverySupported property being Yes means 
that Windows issues ARP requests for addresses on the Wintun interface.  
(The second property controls another neighbour behaviour that perhaps 
could also be disabled for Wintun interfaces.)

Microsoft's documentation for SetIpInterfaceEntry() claims that these 
properties are set "by the network stack", but offers no hint as to what 
part of the network stack does this.  It does not seem possible to 
change these properties on an existing interface.

Are these properties that either the Wintun driver or user-space API is 
able to control?  Should they be set to No and Disabled?  I don't see 
any use of the driver variant of SetIpInterfaceEntry() or 
MIB_IPINTERFACE_ROW in Wintun's driver or API code, so I'm not sure when 
these properties get determined.

-- 
Brad Spencer


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-10 20:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09 14:32 Wintun NeighborDiscoverySupported Brad Spencer
2021-09-09 17:42 ` Jason A. Donenfeld
2021-09-09 18:15   ` Brad Spencer
2021-09-09 20:23     ` Alan Graham
2021-09-10 17:19       ` Brad Spencer
2021-09-10 20:56         ` Alan Graham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).