<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wintun/api, branch 0.10.2</title>
<subtitle>Layer 3 TUN Driver for Windows</subtitle>
<id>https://git.zx2c4.com/wintun/atom/api?h=0.10.2</id>
<link rel='self' href='https://git.zx2c4.com/wintun/atom/api?h=0.10.2'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/'/>
<updated>2021-02-16T03:19:21Z</updated>
<entry>
<title>api: upgrade logging</title>
<updated>2021-02-16T03:19:21Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2021-02-02T12:12:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=bc5cde89160e706789ec9cdadd06be8127d086f9'/>
<id>urn:sha1:bc5cde89160e706789ec9cdadd06be8127d086f9</id>
<content type='text'>
Log runtime information to quickly check whether the values are sane
when analyzing error logs sent in by users.

Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
<entry>
<title>api: tighten function parameter code analysis annotations</title>
<updated>2021-02-04T18:00:17Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2021-02-02T11:53:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=542a281808a7ae6eddab0b2e977d519ef37e162f'/>
<id>urn:sha1:542a281808a7ae6eddab0b2e977d519ef37e162f</id>
<content type='text'>
Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
<entry>
<title>api: truncate long log lines with …</title>
<updated>2021-02-04T17:39:10Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2021-02-02T08:20:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=41b77964ca2bcfadd412b12e133b053d61cafcac'/>
<id>urn:sha1:41b77964ca2bcfadd412b12e133b053d61cafcac</id>
<content type='text'>
Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
<entry>
<title>api: unify NetCfgInstanceId registry retrieval</title>
<updated>2021-02-04T17:39:10Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2021-02-01T09:41:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=7a6bab7f044bd8a4aa197b12e78fc6853fbc015d'/>
<id>urn:sha1:7a6bab7f044bd8a4aa197b12e78fc6853fbc015d</id>
<content type='text'>
Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
<entry>
<title>api: ensure that device object exists before returning from open/create</title>
<updated>2021-02-03T21:36:41Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2021-02-03T21:32:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=fb416747dcfb6e53df5d249d07123989e4ddc796'/>
<id>urn:sha1:fb416747dcfb6e53df5d249d07123989e4ddc796</id>
<content type='text'>
Some users are seeing errors like this after rebooting from Windows
Update:

2021-01-28 18:39:45.220197: [TUN] Creating Wintun interface
2021-01-28 18:39:49.420116: [TUN] [Wintun] CreateAdapter: Creating adapter
2021-01-28 18:39:53.704007: [TUN] [Wintun] OpenDeviceObject: Failed to connect to adapter: The system cannot find the path specified. (Code 0x00000003)
2021-01-28 18:39:53.704007: [TUN] [Wintun] WintunStartSession: Failed to open adapter device object
2021-01-28 18:39:54.097037: [TUN] Unable to create Wintun interface: Error starting session: The system cannot find the path specified.

It appears that creation of the device object file might happen
asynchronously, so this commit polls for it.

Reported-by: Artem Kuroptev &lt;artem@kuroptev.com&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>global: bump copyright</title>
<updated>2021-01-30T15:45:26Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2021-01-30T15:45:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=2628412d71a6caf22368cd6d7cf441ded139db4f'/>
<id>urn:sha1:2628412d71a6caf22368cd6d7cf441ded139db4f</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>api: use custom devpkey for pool</title>
<updated>2021-01-30T15:41:16Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2021-01-30T15:39:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=49b7692d5becd86d4ff4854ed089ddd4c3d93b15'/>
<id>urn:sha1:49b7692d5becd86d4ff4854ed089ddd4c3d93b15</id>
<content type='text'>
It seems like the friendly name is still getting reset sometimes. Rather
than swimming upstream, it turns out we can just use a custom devpkey
that, according to msdn, is respected.

https://docs.microsoft.com/en-us/windows-hardware/drivers/install/creating-custom-device-properties

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>api: close private namespace when unloading DLL</title>
<updated>2020-12-17T18:00:25Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2020-12-17T18:00:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=7710ff187b5079d9f2573608b6cb33b15262b2b8'/>
<id>urn:sha1:7710ff187b5079d9f2573608b6cb33b15262b2b8</id>
<content type='text'>
Prior, people making calls to LoadLibrary/FreeLibrary would experience
a failure to create or open adapters, because the private namespace was
already loaded into the process and not cleaned up on DLL detachment.
While this pattern is probably a misuse of the library, we should still
support cleaning that up. This commit makes the right calls to free the
boundary descriptor and close the private namespace. It does not,
however, destroy the private namespace using the flag on the second
parameter, in case of races with other processes.

Reported-by: Brad Spencer &lt;bspencer@blackberry.com&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>api: delay load remaining dlls to work around forwarder gotchas</title>
<updated>2020-11-27T13:52:03Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2020-11-26T16:26:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=a3a1fa8931da5e9e5f2e47e83d854a36a7737952'/>
<id>urn:sha1:a3a1fa8931da5e9e5f2e47e83d854a36a7737952</id>
<content type='text'>
RtlGenRandom forwards to cryptbase.dll, which is not in KnownDlls.
Therefore it's not a good idea to link to advapi32.dll at link time. How
many other gotchas of unusual forwarded functions are there? I don't
really want to find out. Therefore, delay load everything else.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>api: skip notifying driver when there are no receive packets yet</title>
<updated>2020-11-27T13:52:03Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2020-11-18T16:35:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wintun/commit/?id=ecf70261da7b42db080df5047685850ab39b58fe'/>
<id>urn:sha1:ecf70261da7b42db080df5047685850ab39b58fe</id>
<content type='text'>
Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
</feed>
