Netlink API returns wrong attribute ID for peers on Ubuntu 19.10

David Leung david at davidslab.com
Thu Apr 16 17:26:07 CEST 2020


Hello,

I've been using the Netlink Generic API to get a WireGuard device's
peer endpoints successfully on NixOS.

When I run the same program on Ubuntu 19.10 (running wireguard version
v1.0.20200206), the peers attribute returned is 32776 instead of 8.
This doesn't match what's defined in
https://git.zx2c4.com/wireguard-tools/tree/contrib/embeddable-wg-library/wireguard.c.

I wonder if it's caused by a decoding mistake on my end, or if there's
something strange happening with the Ubuntu package.


Best,
David


More information about the WireGuard mailing list