<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-apple/Sources/WireGuardKit/WireGuardAdapter.swift, branch am/codable-ipaddress-range</title>
<subtitle>iOS and macOS apps for WireGuard</subtitle>
<id>https://git.zx2c4.com/wireguard-apple/atom/Sources/WireGuardKit/WireGuardAdapter.swift?h=am%2Fcodable-ipaddress-range</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-apple/atom/Sources/WireGuardKit/WireGuardAdapter.swift?h=am%2Fcodable-ipaddress-range'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/'/>
<updated>2021-06-17T14:56:46Z</updated>
<entry>
<title>Global: bump copyright year</title>
<updated>2021-06-17T14:56:46Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2021-06-17T14:56:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=13b720442d47b67a18d6841aa34569633a22b458'/>
<id>urn:sha1:13b720442d47b67a18d6841aa34569633a22b458</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>Kit: add missing import for WireGuardKitC</title>
<updated>2021-06-17T13:15:41Z</updated>
<author>
<name>Andrej Mihajlov</name>
<email>and@mullvad.net</email>
</author>
<published>2021-06-17T11:23:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=c1f509d65bba1c00c6b6ef93826f658ff36a0761'/>
<id>urn:sha1:c1f509d65bba1c00c6b6ef93826f658ff36a0761</id>
<content type='text'>
Signed-off-by: Andrej Mihajlov &lt;and@mullvad.net&gt;
</content>
</entry>
<entry>
<title>Kit: Adapter: use more reliable utun detection technique</title>
<updated>2021-06-16T15:40:12Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2021-06-16T15:09:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=23bf3cfccb5a6fa9faf85c35ca24ec4c3e29c3fe'/>
<id>urn:sha1:23bf3cfccb5a6fa9faf85c35ca24ec4c3e29c3fe</id>
<content type='text'>
Rather than hoping that the AF_SYSTEM fd is of type utun, and then
calling "2" on it to get the name -- which could be defined as something
else for a different AF_SYSTEM socket type -- instead simply query the
AF_SYSTEM control socket ID with getpeername. This has one catch, which
is that the ID is dynamically allocated, so we resolve it using the
qualified name. Normally we'd make a new AF_SYSTEM socket for this, but
since that's not allowed in the sandbox, we reuse the AF_SYSTEM socket
that we're checking. At this point in the flow, we know that it's a
proper AF_SYSTEM one, based on the first sockaddr member; we just don't
know that it's a utun variety.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>Kit: Adapter: iterate through all FDs to find UTUN</title>
<updated>2021-06-16T13:56:21Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2021-06-16T13:56:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=7f5ad3e503f231893dc5d298f703c4b72b83bdb9'/>
<id>urn:sha1:7f5ad3e503f231893dc5d298f703c4b72b83bdb9</id>
<content type='text'>
This is a bit of a kludge, until I find something better. We simply
iterate through all FDs, and call getsockopt on each one until we find
the utun FD. This works, and completes rather quickly (fd is usually 6
or 7). Rather than maintain the old path for older kernels, just use
this for all versions, to get more coverage. Other techniques involve
undocumented APIs; this one has the advantage of using nothing
undocumented.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>SPM: update exclude rules</title>
<updated>2021-06-16T13:23:11Z</updated>
<author>
<name>Andrej Mihajlov</name>
<email>and@mullvad.net</email>
</author>
<published>2021-06-15T13:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=820fa55380b529704945b32e5d990f690c03b2e2'/>
<id>urn:sha1:820fa55380b529704945b32e5d990f690c03b2e2</id>
<content type='text'>
Fixes missing excluded file warning in Xcode. api-ios.go was renamed to api-apple.go.

Signed-off-by: Andrej Mihajlov &lt;and@mullvad.net&gt;
</content>
</entry>
<entry>
<title>Kit: Go: bump to latest API</title>
<updated>2021-03-09T16:10:04Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2021-03-08T19:29:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=b7f69d20b6c6560b6cdced961bed428e68c66719'/>
<id>urn:sha1:b7f69d20b6c6560b6cdced961bed428e68c66719</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>Kit: Adapter: do not treat NE settings timeouts as fatal</title>
<updated>2020-12-16T23:26:00Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2020-12-16T23:24:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=db4e2915f33aa561fff2401e05319e1b5241fdf8'/>
<id>urn:sha1:db4e2915f33aa561fff2401e05319e1b5241fdf8</id>
<content type='text'>
The general Network Extension framework is incredibly buggy, and a
timeout when setting the network settings does not necessarily imply
that the whole operation failed. Simply log the condition and move on.
This restores the app's old behavior.

Reported-by: Filipe Mendonça &lt;cfilipem@gmail.com&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>WireGuardKitGo: update to latest wireguard-go tag</title>
<updated>2020-12-15T12:16:52Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2020-12-15T12:16:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=27b32e60b29712c7bb9bc877b9409bbe63c63554'/>
<id>urn:sha1:27b32e60b29712c7bb9bc877b9409bbe63c63554</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>WireGuardKit: Let wireguard-go backend run in offline on macOS</title>
<updated>2020-12-11T10:56:05Z</updated>
<author>
<name>Andrej Mihajlov</name>
<email>and@mullvad.net</email>
</author>
<published>2020-12-11T10:49:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=d414cec9aa57fdf1c4266c02e0f8e6d547543175'/>
<id>urn:sha1:d414cec9aa57fdf1c4266c02e0f8e6d547543175</id>
<content type='text'>
Signed-off-by: Andrej Mihajlov &lt;and@mullvad.net&gt;
</content>
</entry>
<entry>
<title>WireGuardKit: Conditionally turn on/off wireguard-go</title>
<updated>2020-12-11T10:15:22Z</updated>
<author>
<name>Andrej Mihajlov</name>
<email>and@mullvad.net</email>
</author>
<published>2020-12-01T10:18:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-apple/commit/?id=9f8d0e24df53cecca0ff38382e7eae9cd2692898'/>
<id>urn:sha1:9f8d0e24df53cecca0ff38382e7eae9cd2692898</id>
<content type='text'>
Signed-off-by: Andrej Mihajlov &lt;and@mullvad.net&gt;
</content>
</entry>
</feed>
