summaryrefslogtreecommitdiffstats
path: root/dnsdist-backend.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:29:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:29:59 +0000
commitfead91cfb1835d16049c615e1f1c87caa606ff06 (patch)
tree0d7fbbff7ff88b0873a99ead502d6ebb12beb6d6 /dnsdist-backend.cc
parentAdding debian version 1.9.5-1. (diff)
downloaddnsdist-fead91cfb1835d16049c615e1f1c87caa606ff06.tar.xz
dnsdist-fead91cfb1835d16049c615e1f1c87caa606ff06.zip
Merging upstream version 1.9.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dnsdist-backend.cc')
-rw-r--r--dnsdist-backend.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/dnsdist-backend.cc b/dnsdist-backend.cc
index 7f56034..d59a5df 100644
--- a/dnsdist-backend.cc
+++ b/dnsdist-backend.cc
@@ -905,10 +905,9 @@ void DownstreamState::registerXsk(std::vector<std::shared_ptr<XskSocket>>& xsks)
d_config.sourceMACAddr = d_xskSockets.at(0)->getSourceMACAddress();
for (auto& xsk : d_xskSockets) {
- auto xskInfo = XskWorker::create();
+ auto xskInfo = XskWorker::create(XskWorker::Type::Bidirectional, xsk->sharedEmptyFrameOffset);
d_xskInfos.push_back(xskInfo);
xsk->addWorker(xskInfo);
- xskInfo->sharedEmptyFrameOffset = xsk->sharedEmptyFrameOffset;
}
reconnect(false);
}