diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-09-09 20:42:59 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-09-09 20:43:25 +0000 |
commit | ef48951654b4409c5a806ba07657c2c32cda5b56 (patch) | |
tree | 04852e6e715618b2d6034ab4e93e292590c2bf2b | |
parent | props: inverse SDVHacks logic (diff) | |
download | wintun-ef48951654b4409c5a806ba07657c2c32cda5b56.tar.xz wintun-ef48951654b4409c5a806ba07657c2c32cda5b56.zip |
example: disable dad for faster startup
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | example/example.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/example/example.c b/example/example.c index 75eba9c..aef4687 100644 --- a/example/example.c +++ b/example/example.c @@ -351,6 +351,7 @@ main(void) AddressRow.Address.Ipv4.sin_family = AF_INET;
AddressRow.Address.Ipv4.sin_addr.S_un.S_addr = htonl((10 << 24) | (6 << 16) | (7 << 8) | (7 << 0)); /* 10.6.7.7 */
AddressRow.OnLinkPrefixLength = 24; /* This is a /24 network */
+ AddressRow.DadState = IpDadStatePreferred;
LastError = CreateUnicastIpAddressEntry(&AddressRow);
if (LastError != ERROR_SUCCESS && LastError != ERROR_OBJECT_ALREADY_EXISTS)
{
|