23#include "NetworkingHelper.h"
24#include "DobbyRdkPluginUtils.h"
48 bool set(
const std::shared_ptr<DobbyRdkPluginUtils> &utils,
49 const std::shared_ptr<Netfilter> &netfilter,
50 const std::shared_ptr<NetworkingHelper> &helper,
51 const std::string &rootfsPath,
52 const std::string &containerId,
53 const NetworkType networkType);
55 bool removeRules(
const std::shared_ptr<Netfilter> &netfilter,
56 const std::shared_ptr<NetworkingHelper> &helper,
57 const std::string &containerId);
Sets up iptables routing to allow apps within a network namespace to talk to the dnsmasq server runni...
bool set(const std::shared_ptr< DobbyRdkPluginUtils > &utils, const std::shared_ptr< Netfilter > &netfilter, const std::shared_ptr< NetworkingHelper > &helper, const std::string &rootfsPath, const std::string &containerId, const NetworkType networkType)
Add iptables rules and create the /etc/resolv.conf file.
Definition DnsmasqSetup.cpp:173
bool removeRules(const std::shared_ptr< Netfilter > &netfilter, const std::shared_ptr< NetworkingHelper > &helper, const std::string &containerId)
Deletes dnsmasq rules for the container.
Definition DnsmasqSetup.cpp:256