20#ifndef NETWORKINGHELPER_H
21#define NETWORKINGHELPER_H
23#include <netinet/in.h>
26#include "NetworkingPluginCommon.h"
39 in_addr_t ipv4Addr()
const;
40 std::string ipv4AddrStr()
const;
43 struct in6_addr ipv6Addr() const;
44 std::string ipv6AddrStr()
const;
46 std::string vethName()
const;
47 std::array<uint8_t, 6> vethPeerMac()
const;
55 std::string mIpv4AddrStr;
58 struct in6_addr mIpv6Addr;
59 std::string mIpv6AddrStr;
61 std::string mVethName;
62 std::array<uint8_t, 6> mVethPeerMac;
Definition NetworkingHelper.h:29
bool storeContainerInterface(in_addr_t addr, const std::string &vethName)
Constructs addresses for the container based on input address. Also stores the veth device used for t...
Definition NetworkingHelper.cpp:102
static struct in6_addr in6addrCreate(const in_addr_t inaddr)
Constructs an IPv6 address to be used by Dobby.
Definition NetworkingHelper.cpp:157
bool storeContainerVethPeerMac(const std::array< uint8_t, 6 > &mac)
Simply stores the MAC address of eth0 within the container.
Definition NetworkingHelper.cpp:137