You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
dnscache net/dnscache: remove unnecessary lint warning. 5 years ago
interfaces net/interfaces: use syscalls to find private gateway IP address 4 years ago
netcheck net/netcheck: lower the hairpin check timeout to 100ms. 4 years ago
netns wgengine/router: switch packet marks to avoid conflict with Weave Net. 4 years ago
nettest scripts: add a license header checker. 5 years ago
stun wgengine/magicsock, tstest/natlab: start hooking up natlab to magicsock 4 years ago
tlsdial net/tlsdial, derp/derphttp: finish DERPNode.CertName validation 4 years ago
tsaddr all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago