\doxysection{control\+\_\+vty.\+h}
\label{control__vty_8h_source}\index{include/osmocom/ctrl/control\_vty.h@{include/osmocom/ctrl/control\_vty.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{6 }
\DoxyCodeLine{7 \textcolor{comment}{/* Add the 'ctrl' section to VTY, containing the 'bind' command. */}}
\DoxyCodeLine{8 \textcolor{keywordtype}{int} ctrl\_vty\_init(\textcolor{keywordtype}{void} *ctx);}
\DoxyCodeLine{9 }
\DoxyCodeLine{10 \textcolor{comment}{/* Obtain the IP address configured by the 'ctrl'/'bind A.B.C.D' VTY command.}}
\DoxyCodeLine{11 \textcolor{comment}{ * This should be fed to ctrl\_interface\_setup() once the configuration has been}}
\DoxyCodeLine{12 \textcolor{comment}{ * read. */}}
\DoxyCodeLine{13 \textcolor{keyword}{const} \textcolor{keywordtype}{char} *ctrl\_vty\_get\_bind\_addr(\textcolor{keywordtype}{void});}
\DoxyCodeLine{14 }
\DoxyCodeLine{15 \textcolor{comment}{/* Returns configured port passed to the 'line ctrl'/'bind' command or default\_port. */}}
\DoxyCodeLine{16 uint16\_t ctrl\_vty\_get\_bind\_port(uint16\_t default\_port);}

\end{DoxyCode}
