mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
400 B
C++
18 lines
400 B
C++
6 years ago
|
#ifndef LLARP_LINUX_NETNS_HPP
|
||
|
#define LLARP_LINUX_NETNS_HPP
|
||
|
#ifdef __linux__
|
||
|
namespace llarp
|
||
|
{
|
||
6 years ago
|
namespace GNULinux
|
||
6 years ago
|
{
|
||
|
/// switch current process to use network namepsace by name
|
||
|
/// returns true if successfully switched otherwise returns false
|
||
|
bool
|
||
|
NetNSSwitch(const char* name);
|
||
6 years ago
|
} // namespace GNULinux
|
||
6 years ago
|
} // namespace llarp
|
||
|
#else
|
||
|
#error "Don't include this file"
|
||
|
#endif
|
||
|
#endif
|