tstest/natlab: add unix address to writer for dgram mode

updates tailcale/corp#22371

For dgram mode, we need to store the write addresses of
the client socket(s) alongside the writer functions and
the write operation needs to use WriteToUnix.

Unix also has multiple clients writing to the same socket,
so the serve method is modified to handle packets from
multiple mac addresses.

Cleans up a bit of cruft from the initial tailmac tooling
commit.

Now all the macOS packets are belong to us.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
This commit is contained in:
Jonathan Nobels
2024-08-22 09:36:24 -04:00
committed by Brad Fitzpatrick
parent 743d296073
commit 1191eb0e3d
3 changed files with 82 additions and 129 deletions

View File

@@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8F87D51C26C34111000EADA4"
BuildableName = "TailMac.app"
BuildableName = "Host.app"
BlueprintName = "host"
ReferencedContainer = "container:TailMac.xcodeproj">
</BuildableReference>
@@ -45,7 +45,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8F87D51C26C34111000EADA4"
BuildableName = "TailMac.app"
BuildableName = "Host.app"
BlueprintName = "host"
ReferencedContainer = "container:TailMac.xcodeproj">
</BuildableReference>
@@ -62,7 +62,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8F87D51C26C34111000EADA4"
BuildableName = "TailMac.app"
BuildableName = "Host.app"
BlueprintName = "host"
ReferencedContainer = "container:TailMac.xcodeproj">
</BuildableReference>