1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/linux/netns.hpp
2018-12-12 02:53:01 +00:00

17 lines
400 B
C++

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