tailscale/net
Josh Bleecher Snyder a16a793605 net/interfaces: use syscalls to find private gateway IP address
iOS doesn't let you run subprocesses,
which means we can't use netstat to get routing information.
Instead, use syscalls and grub around in the results.
We keep the old netstat version around,
both for use in non-cgo builds,
and for use testing the syscall-based version.

Note that iOS doesn't ship route.h,
so we include a copy here from the macOS 10.15 SDK
(which is itself unchanged from the 10.14 SDK).

I have tested manually that this yields the correct
gateway IP address on my own macOS and iOS devices.
More coverage would be most welcome.

Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
2020-08-04 15:45:56 -07:00
..
dnscache net/dnscache: remove unnecessary lint warning. 2020-04-30 20:31:44 -07:00
interfaces net/interfaces: use syscalls to find private gateway IP address 2020-08-04 15:45:56 -07:00
netcheck net/netcheck: lower the hairpin check timeout to 100ms. 2020-07-27 14:09:54 -07:00
netns wgengine/router: switch packet marks to avoid conflict with Weave Net. 2020-07-22 01:24:46 +00:00
nettest scripts: add a license header checker. 2020-03-17 21:34:44 -07:00
stun wgengine/magicsock, tstest/natlab: start hooking up natlab to magicsock 2020-07-10 14:32:58 -07:00
tlsdial net/tlsdial, derp/derphttp: finish DERPNode.CertName validation 2020-06-01 09:01:37 -07:00
tsaddr all: dns refactor, add Proxied and PerDomain flags from control (#615) 2020-07-31 16:27:09 -04:00