libosmocore 1.13.1.1-afb4 Osmocom core library

Data Structures | Functions
netns.h File Reference

Network namespace convenience functions. More...

`#include <signal.h>`

Go to the source code of this file.

## Data Structures
struct | osmo_netns_switch_state

## Functions
int | osmo_netns_open_fd (const char *name)
| Open a file descriptor for the network namespace with provided name. More...
int | osmo_netns_switch_enter (int nsfd, struct osmo_netns_switch_state *state)
| switch to a (non-default) namespace, store existing signal mask in oldmask. More...
int | osmo_netns_switch_exit (struct osmo_netns_switch_state *state)
| switch back to the previous namespace, restoring signal mask. More...

## Detailed Description

Network namespace convenience functions.