blob: a6cd012e207aa4284e2de8b0cc9c8ab9a6f7b77d [file] [log] [blame]
Neels Hofmeyr17518fe2017-06-20 04:35:06 +02001/*! \file control_vty.h */
2
Neels Hofmeyrf81eb322016-02-24 00:10:41 +01003#pragma once
4
Max3f79ce82022-12-03 17:59:19 +03005#include <stdint.h>
6
Neels Hofmeyrf81eb322016-02-24 00:10:41 +01007/* Add the 'ctrl' section to VTY, containing the 'bind' command. */
8int ctrl_vty_init(void *ctx);
9
10/* Obtain the IP address configured by the 'ctrl'/'bind A.B.C.D' VTY command.
11 * This should be fed to ctrl_interface_setup() once the configuration has been
12 * read. */
13const char *ctrl_vty_get_bind_addr(void);
Max3f79ce82022-12-03 17:59:19 +030014
15/* Returns configured port passed to the 'line ctrl'/'bind' command or default_port. */
16uint16_t ctrl_vty_get_bind_port(uint16_t default_port);