<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-go/tun, branch fw/codeQuality</title>
<subtitle>Go implementation of WireGuard</subtitle>
<id>https://git.zx2c4.com/wireguard-go/atom/tun?h=fw%2FcodeQuality</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-go/atom/tun?h=fw%2FcodeQuality'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/'/>
<updated>2020-05-02T08:08:26Z</updated>
<entry>
<title>global: update header comments and modules</title>
<updated>2020-05-02T08:08:26Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2020-05-02T08:08:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=db0aa39b765243c6a4ac9a2e348311df9517c0bf'/>
<id>urn:sha1:db0aa39b765243c6a4ac9a2e348311df9517c0bf</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>wintun: make remaining HWID comparisons case insensitive</title>
<updated>2020-05-02T07:50:47Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2020-05-02T06:49:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=fdba6c183aa8d4c19680f436517624038a6f3be5'/>
<id>urn:sha1:fdba6c183aa8d4c19680f436517624038a6f3be5</id>
<content type='text'>
c85e4a410f27986a2967a49c0155633c716bf3ca introduced preliminary HWID
checking to speed up Wintun adapter enumeration. However, all HWID are
case insensitive by Windows convention.

Furthermore, a device might have multiple HWIDs. When DevInfo's
DeviceRegistryProperty(SPDRP_HARDWAREID) method returns []string, all
strings returned should be checked against given hardware ID.

This issue was discovered when researching Wintun and wireguard-go on
Windows 10 ARM64. The Wintun adapter was created using devcon.exe
utility with "wintun" hardware ID, causing wireguard-go fail to
enumerate the adapter properly.

Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
<entry>
<title>setupapi: extend struct size constant definitions for arm(64)</title>
<updated>2020-05-02T07:50:47Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2020-05-01T04:57:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=250b9795f3670981f5e276773307e9638ec0aee2'/>
<id>urn:sha1:250b9795f3670981f5e276773307e9638ec0aee2</id>
<content type='text'>
Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
<entry>
<title>tun: return a better error message if /dev/net/tun doesn't exist</title>
<updated>2020-05-02T07:50:47Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@tailscale.com</email>
</author>
<published>2020-03-18T20:23:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=2fb0a712f0ca2f9a922cdc4f1f47b88c3ee70048'/>
<id>urn:sha1:2fb0a712f0ca2f9a922cdc4f1f47b88c3ee70048</id>
<content type='text'>
It was just returning "no such file or directory" (the String of the
syscall.Errno returned by CreateTUN).

Signed-off-by: Brad Fitzpatrick &lt;bradfitz@tailscale.com&gt;
</content>
</entry>
<entry>
<title>tun: NetlinkListener: don't send EventDown before sending EventUp</title>
<updated>2020-05-02T07:46:42Z</updated>
<author>
<name>Avery Pennarun</name>
<email>apenwarr@tailscale.com</email>
</author>
<published>2019-11-06T08:28:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=c76b8184663e4b80ff8c26aafe9ec0ec91ff9116'/>
<id>urn:sha1:c76b8184663e4b80ff8c26aafe9ec0ec91ff9116</id>
<content type='text'>
This works around a startup race condition when competing with
HackListener, which is trying to do the same job. If HackListener
detects that the tundev is running while there is still an event in the
netlink queue that says it isn't running, then the device receives a
string of events like
	EventUp (HackListener)
	EventDown (NetlinkListener)
	EventUp (NetlinkListener)
Unfortunately, after the first EventDown, the device stops itself,
thinking incorrectly that the administrator has downed its tundev.

The device is ignoring the initial EventDown anyway, so just don't emit
it.

Signed-off-by: Avery Pennarun &lt;apenwarr@tailscale.com&gt;
</content>
</entry>
<entry>
<title>tuntest: split out testing package</title>
<updated>2020-05-02T07:46:42Z</updated>
<author>
<name>David Crawshaw</name>
<email>crawshaw@tailscale.com</email>
</author>
<published>2020-01-07T15:43:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=1a1c3d096888816c94cf1eb7c2747e83f008549f'/>
<id>urn:sha1:1a1c3d096888816c94cf1eb7c2747e83f008549f</id>
<content type='text'>
This code is useful to other packages writing tests.

Signed-off-by: David Crawshaw &lt;crawshaw@tailscale.com&gt;
</content>
</entry>
<entry>
<title>tun: fix data race on name field</title>
<updated>2020-05-02T07:46:42Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@tailscale.com</email>
</author>
<published>2020-02-28T17:10:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=85a45a9651d2b38e3616a7899800601656cf143e'/>
<id>urn:sha1:85a45a9651d2b38e3616a7899800601656cf143e</id>
<content type='text'>
Signed-off-by: Brad Fitzpatrick &lt;bradfitz@tailscale.com&gt;
</content>
</entry>
<entry>
<title>tun: remove unused isUp method</title>
<updated>2020-05-02T07:46:42Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@tailscale.com</email>
</author>
<published>2020-02-28T16:53:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=abd287159e7eb7d20ee46c03d1a8cb9a645735e4'/>
<id>urn:sha1:abd287159e7eb7d20ee46c03d1a8cb9a645735e4</id>
<content type='text'>
Signed-off-by: Brad Fitzpatrick &lt;bradfitz@tailscale.com&gt;
</content>
</entry>
<entry>
<title>wintun: split error message for create vs open namespace.</title>
<updated>2020-05-02T07:44:58Z</updated>
<author>
<name>Avery Pennarun</name>
<email>apenwarr@tailscale.com</email>
</author>
<published>2019-10-23T04:08:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=6aefb61355c9da539383dd0c2bc5f2bb3dbb3963'/>
<id>urn:sha1:6aefb61355c9da539383dd0c2bc5f2bb3dbb3963</id>
<content type='text'>
Signed-off-by: Avery Pennarun &lt;apenwarr@tailscale.com&gt;
</content>
</entry>
<entry>
<title>global: use RTMGRP_* consts from x/sys/unix</title>
<updated>2020-03-18T05:07:11Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2020-03-04T16:21:54Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-go/commit/?id=b33219c2cfd430215f2230c15fc4c2f888a081c2'/>
<id>urn:sha1:b33219c2cfd430215f2230c15fc4c2f888a081c2</id>
<content type='text'>
Update the golang.org/x/sys/unix dependency and use the newly introduced
RTMGRP_* consts instead of using the corresponding RTNLGRP_* const to
create a mask.

Signed-off-by: Tobias Klauser &lt;tklauser@distanz.ch&gt;
</content>
</entry>
</feed>
