]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
conn: store IP_PKTINFO cmsg in StdNetendpoint src
authorJames Tucker <james@tailscale.com>
Wed, 19 Apr 2023 05:29:55 +0000 (22:29 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 27 Jun 2023 15:48:32 +0000 (17:48 +0200)
commit25eb973e00d2a5d69456c4156daafb8db56e7e0a
tree9213fbb3c1f59cafdad6c87ff2790fe43e94a362
parentb7cd547315bed421a648d0a0f1ee5a0fc1b1151e
conn: store IP_PKTINFO cmsg in StdNetendpoint src

Replace the src storage inside StdNetEndpoint with a copy of the raw
control message buffer, to reduce allocation and perform less work on a
per-packet basis.

Signed-off-by: James Tucker <james@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
conn/bind_std.go
conn/sticky_default.go
conn/sticky_linux.go
conn/sticky_linux_test.go