]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Cosmetic fixes for XSK
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 19 Jan 2024 14:40:28 +0000 (15:40 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 23 Jan 2024 11:54:29 +0000 (12:54 +0100)
pdns/dnsdistdist/dnsdist-xsk.cc
pdns/xsk.cc

index fbc0313ae76c2a64d7c1f79b6eb00dd73380a1a9..81480a99a179d1d8a1e733da22fba9f4c31454c3 100644 (file)
@@ -25,6 +25,7 @@
 #ifdef HAVE_XSK
 #include <sys/poll.h>
 
+#include "dolog.hh"
 #include "dnsdist-metrics.hh"
 #include "dnsdist-proxy-protocol.hh"
 #include "threadname.hh"
index 0eaf08110614d53bff7c56d78d9251f9d6f3543c..7c6d67e1bd3be92673958744004228c9ae9568ad 100644 (file)
@@ -476,7 +476,8 @@ std::string XskSocket::getMetrics() const
   if (itfIdx == 0) {
     return {};
   }
-  struct bpf_xdp_query_opts info = { .sz = sizeof(info) };
+  bpf_xdp_query_opts info{};
+  info.sz = sizeof(info);
   int ret = bpf_xdp_query(itfIdx, 0, &info);
   if (ret != 0) {
     return {};