17#ifndef ALLOCD_NET_NFT_NAT_TABLE_H_
18#define ALLOCD_NET_NFT_NAT_TABLE_H_
24#include "absl/strings/string_view.h"
37 absl::string_view name,
38 const std::vector<std::string>& masquerade_sources);
40 std::unique_ptr<NfnetlinkSocket> socket, absl::string_view name,
41 const std::vector<std::string>& masquerade_sources);
55 NftNatTable(std::unique_ptr<NfnetlinkSocket> socket, absl::string_view name);
Definition: nfnetlink_socket.h:27
Definition: nft_nat_table.h:33
NftNatTable(const NftNatTable &t)=delete
static Result< NftNatTable > Create(absl::string_view name, const std::vector< std::string > &masquerade_sources)
Definition: nft_nat_table.cc:47
~NftNatTable()
Definition: nft_nat_table.cc:85
std::unique_ptr< NfnetlinkSocket > socket_
Definition: nft_nat_table.h:58
static Result< bool > Exists(absl::string_view name)
Definition: nft_nat_table.cc:67
std::string name_
Definition: nft_nat_table.h:59
NftNatTable & operator=(const NftNatTable &t)=delete
NftNatTable & operator=(NftNatTable &&t)=delete
NftNatTable(NftNatTable &&t) noexcept=default
Definition: alloc_driver.h:21
tl::expected< T, StackTraceError< E > > Result
Definition: result_type.h:30