WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
730 stars 85 forks source link

wireguardnl: coalesce peers on large get calls #2

Closed mdlayher closed 5 years ago

mdlayher commented 6 years ago

Source: https://lists.zx2c4.com/pipermail/wireguard/2018-July/003148.html

Something to consider with this is the chunking.

... Similar in the get call, we coalesce peers that span
multiple messages:

https://git.zx2c4.com/WireGuard/tree/src/tools/ipc.c#n899
https://git.zx2c4.com/WireGuard/tree/src/tools/ipc.c#n877
mdlayher commented 5 years ago

A tip from Jason on how to make this happen: https://github.com/WireGuard/WireGuard/blob/master/src/tests/netns.sh#L397.