Netlink API returns wrong attribute ID for peers on Ubuntu 19.10

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


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

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


More information about the WireGuard mailing list