lokinet/llarp/linux/netns.hpp

18 lines
400 B
C++
Raw Normal View History

2018-08-26 12:51:41 +00:00
#ifndef LLARP_LINUX_NETNS_HPP
#define LLARP_LINUX_NETNS_HPP
#ifdef __linux__
namespace llarp
{
namespace GNULinux
2018-08-26 12:51:41 +00:00
{
/// switch current process to use network namepsace by name
/// returns true if successfully switched otherwise returns false
bool
NetNSSwitch(const char* name);
} // namespace GNULinux
2018-08-26 12:51:41 +00:00
} // namespace llarp
#else
#error "Don't include this file"
#endif
#endif