Neels Hofmeyr | 17518fe | 2017-06-20 04:35:06 +0200 | [diff] [blame] | 1 | /*! \file control_vty.h */ |
| 2 | |
Neels Hofmeyr | f81eb32 | 2016-02-24 00:10:41 +0100 | [diff] [blame] | 3 | #pragma once |
| 4 | |
Max | 3f79ce8 | 2022-12-03 17:59:19 +0300 | [diff] [blame] | 5 | #include <stdint.h> |
| 6 | |
Neels Hofmeyr | f81eb32 | 2016-02-24 00:10:41 +0100 | [diff] [blame] | 7 | /* Add the 'ctrl' section to VTY, containing the 'bind' command. */ |
| 8 | int 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. */ |
| 13 | const char *ctrl_vty_get_bind_addr(void); |
Max | 3f79ce8 | 2022-12-03 17:59:19 +0300 | [diff] [blame] | 14 | |
| 15 | /* Returns configured port passed to the 'line ctrl'/'bind' command or default_port. */ |
| 16 | uint16_t ctrl_vty_get_bind_port(uint16_t default_port); |