This commit is contained in:
stubbfel
2015-08-12 00:29:54 +02:00
commit 48991fcdf7
9 changed files with 486 additions and 0 deletions

28
src/map/natmap.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef NATMAP_H
#define NATMAP_H
#include <vector>
#include <tins/tins.h>
namespace otonat
{
class NatMap
{
public:
NatMap();
NatMap(std::vector<Tins::NetworkInterface> interfaceList);
virtual ~NatMap();
NatMap(const NatMap& other);
NatMap& operator=(const NatMap& other);
std::vector<Tins::NetworkInterface> interfaces;
static const Tins::IPv4Address mapIPv4Address(const Tins::IPv4Address & ip, const Tins::NetworkInterface::Info & interfaceInfo);
protected:
private:
};
}
#endif // NATMAP_H