19#ifndef INTERCONTAINERROUTING_H
20#define INTERCONTAINERROUTING_H
23#include "NetworkingHelper.h"
24#include "DobbyRdkPluginUtils.h"
25#include <rt_defs_plugins.h>
47 bool addRules(
const std::shared_ptr<Netfilter> &netfilter,
48 const std::shared_ptr<NetworkingHelper> &helper,
49 const std::shared_ptr<DobbyRdkPluginUtils> &utils,
50 rt_defs_plugins_networking_data_inter_container_element *
const *portConfigs,
51 size_t numPortConfigs);
53 bool removeRules(
const std::shared_ptr<Netfilter> &netfilter,
54 const std::shared_ptr<NetworkingHelper> &helper,
55 const std::shared_ptr<DobbyRdkPluginUtils> &utils,
56 rt_defs_plugins_networking_data_inter_container_element *
const *portConfigs,
57 size_t numPortConfigs);
Used to add iptables firewall rules to allow a container to either expose a port to another container...
bool removeRules(const std::shared_ptr< Netfilter > &netfilter, const std::shared_ptr< NetworkingHelper > &helper, const std::shared_ptr< DobbyRdkPluginUtils > &utils, rt_defs_plugins_networking_data_inter_container_element *const *portConfigs, size_t numPortConfigs)
Removes the inter container port forwarding rules from iptables.
Definition InterContainerRouting.cpp:543
bool addRules(const std::shared_ptr< Netfilter > &netfilter, const std::shared_ptr< NetworkingHelper > &helper, const std::shared_ptr< DobbyRdkPluginUtils > &utils, rt_defs_plugins_networking_data_inter_container_element *const *portConfigs, size_t numPortConfigs)
Adds the necessary iptables firewall rules to enable routing of packets to / from one container to an...
Definition InterContainerRouting.cpp:444