\doxysection{include/osmocom/core/netns.h File Reference}
\label{netns_8h}\index{include/osmocom/core/netns.h@{include/osmocom/core/netns.h}}


Network namespace convenience functions.  


{\ttfamily \#include $<$signal.\+h$>$}\newline
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ osmo\+\_\+netns\+\_\+switch\+\_\+state}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ osmo\+\_\+netns\+\_\+open\+\_\+fd} (const char $\ast$\textbf{ name})
\begin{DoxyCompactList}\small\item\em Open a file descriptor for the network namespace with provided name. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+netns\+\_\+switch\+\_\+enter} (int nsfd, struct \textbf{ osmo\+\_\+netns\+\_\+switch\+\_\+state} $\ast$state)
\begin{DoxyCompactList}\small\item\em switch to a (non-\/default) namespace, store existing signal mask in oldmask. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+netns\+\_\+switch\+\_\+exit} (struct \textbf{ osmo\+\_\+netns\+\_\+switch\+\_\+state} $\ast$state)
\begin{DoxyCompactList}\small\item\em switch back to the previous namespace, restoring signal mask. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Network namespace convenience functions. 

