]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Support link-level address retrieval for IPv6 as well
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 28 Apr 2022 12:45:22 +0000 (14:45 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 28 Apr 2022 12:45:22 +0000 (14:45 +0200)
commitab7cf5f0f5f9d8974e86b312843b0ab6cecd4de6
tree501f5d36a1a11fdd33c627c2933465c761c9cae3
parent91a4c43f42d9f8fd4fe116732ea6416fbc5c9d44
dnsdist: Support link-level address retrieval for IPv6 as well

The existing implementation used /proc/net/arp which only contains
MAC addresses for IPv4 addresses. Switching to netlink provides
support for IPv6 addresses as well, and roughly the same performance
(it seems a tiny bit faster but the difference is in the error margin).
pdns/misc.cc