Telnet interface towards Osmocom VTY.
More...
|
| file | telnet_interface.h |
| | minimalistic telnet/network interface it might turn into a wire interface
|
| |
| file | telnet_interface.c |
| | minimalistic telnet/network interface it might turn into a wire interface
|
| |
Telnet interface towards Osmocom VTY.
This module contains the code implementing a telnet server for VTY access. This telnet server gets linked into each libosmovty-using process in order to enable interactive command-line introspection, interaction and configuration.
| static int client_data |
( |
struct osmo_fd * |
fd, |
|
|
unsigned int |
what |
|
) |
| |
|
static |
References BSC_FD_READ, BSC_FD_WRITE, BUFFER_EMPTY, buffer_flush_all(), osmo_fd::data, osmo_fd::fd, telnet_connection::fd, vty::obuf, telnet_connection::vty, vty_read(), and osmo_fd::when.
Referenced by telnet_new_connection().
| LLIST_HEAD |
( |
active_connections |
| ) |
|
| int telnet_close_client |
( |
struct osmo_fd * |
fd | ) |
|
| void telnet_exit |
( |
void |
| ) |
|
| int telnet_init |
( |
void * |
tall_ctx, |
|
|
void * |
priv, |
|
|
int |
port |
|
) |
| |
Initialize telnet based VTY interface listening to 127.0.0.1.
- Parameters
-
| [in] | tall_ctx | talloc context |
| [in] | priv | private data to be passed to callback |
| [in] | port | UDP port number |
References telnet_init_dynif().
| int telnet_init_dynif |
( |
void * |
tall_ctx, |
|
|
void * |
priv, |
|
|
const char * |
ip, |
|
|
int |
port |
|
) |
| |
| static int telnet_new_connection |
( |
struct osmo_fd * |
fd, |
|
|
unsigned int |
what |
|
) |
| |
|
static |
References BSC_FD_READ, osmo_fd::cb, client_data(), osmo_fd::data, telnet_connection::entry, osmo_fd::fd, telnet_connection::fd, llist_add_tail(), LOGL_ERROR, LOGP, osmo_fd_register(), telnet_connection::priv, tall_telnet_ctx, telnet_connection::vty, vty_create(), and osmo_fd::when.
callback from core VTY code about VTY related events
References BSC_FD_READ, BSC_FD_WRITE, vty_signal_data::event, telnet_connection::fd, osmo_signal_dispatch(), vty::priv, S_VTY_EVENT, vty_signal_data::sock, SS_L_VTY, telnet_close_client(), vty::type, vty_signal_data::vty, VTY_CLOSED, VTY_READ, VTY_TERM, VTY_WRITE, and osmo_fd::when.
Referenced by vty_close(), vty_create(), vty_out(), and vty_read().
Initial value:= {
.priv_nr = 0,
}
static int telnet_new_connection(struct osmo_fd *fd, unsigned int what)
Definition: telnet_interface.c:149