Loading...
Searching...
No Matches
control_vty.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
/* Add the 'ctrl' section to VTY, containing the 'bind' command. */
int ctrl_vty_init(void *ctx);
/* Obtain the IP address configured by the 'ctrl'/'bind A.B.C.D' VTY command.
* This should be fed to ctrl_interface_setup() once the configuration has been
* read. */
const char *ctrl_vty_get_bind_addr(void);
/* Returns configured port passed to the 'line ctrl'/'bind' command or default_port. */
uint16_t ctrl_vty_get_bind_port(uint16_t default_port);
ctrl_vty_init
int ctrl_vty_init(void *ctx)
Definition control_vty.c:87
ctrl_vty_get_bind_port
uint16_t ctrl_vty_get_bind_port(uint16_t default_port)
Definition control_vty.c:53
ctrl_vty_get_bind_addr
const char * ctrl_vty_get_bind_addr(void)
Definition control_vty.c:46