Commit 5de565ba authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[3322] IfaceMgrTestConfig destructor restores default PktFilterInet6

parent 59ff338f
......@@ -14,6 +14,7 @@
#include <dhcp/pkt_filter.h>
#include <dhcp/pkt_filter_inet.h>
#include <dhcp/pkt_filter_inet6.h>
#include <dhcp/tests/iface_mgr_test_config.h>
#include <dhcp/tests/pkt_filter_test_stub.h>
#include <dhcp/tests/pkt_filter6_test_stub.h>
......@@ -42,6 +43,7 @@ IfaceMgrTestConfig::~IfaceMgrTestConfig() {
IfaceMgr::instance().closeSockets();
IfaceMgr::instance().clearIfaces();
IfaceMgr::instance().setPacketFilter(PktFilterPtr(new PktFilterInet()));
IfaceMgr::instance().setPacketFilter(PktFilter6Ptr(new PktFilterInet6()));
IfaceMgr::instance().detectIfaces();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment