diff options
Diffstat (limited to 'dnsdist-backend.cc')
-rw-r--r-- | dnsdist-backend.cc | 3 |
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); } |