-
Thomas Haller authored
The netlink code for WG_CMD_SET_DEVICE is strongly inspired by WireGuard ([1]) and systemd ([2]). Currently, nm_platform_link_wireguard_change() always aims to reset all peers and allowed-ips settings. I think that should be improved in the future, to support only partial updates. [1] https://git.zx2c4.com/WireGuard/tree/contrib/examples/embeddable-wg-library/wireguard.c?id=5e99a6d43fe2351adf36c786f5ea2086a8fe7ab8#n1073 [2] https://github.com/systemd/systemd/blob/04ca4d191b13e79e5701ed22dc972f08628d7bcc/src/network/netdev/wireguard.c#L48
a5c894c3