aboutsummaryrefslogtreecommitdiffstats
path: root/src/ctl.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-06-29 16:57:09 +0200
committerHarald Welte <laforge@osmocom.org>2020-06-29 22:12:42 +0200
commit9144ba03738504d770a8cf3a644f64a14ebd7e8b (patch)
treef935808384ed4f7c7075e645b63f0887828f4907 /src/ctl.c
parent0b621b43e75f45a9c64eef42b5aae83f248a42d5 (diff)
VTY interface support
Let's add a VTY interface on TCP port 4269. The purpose is - for now - not for configuration storage, but for state introspection. Change-Id: I47b6e4efaad52e68e2b50a7993076f3706f86628
Diffstat (limited to 'src/ctl.c')
-rw-r--r--src/ctl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ctl.c b/src/ctl.c
index 835811f..a70556d 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -38,8 +38,8 @@
#include "e1d.h"
-static struct e1_intf *
-_e1d_find_intf(struct e1_daemon *e1d, uint8_t id)
+struct e1_intf *
+e1d_find_intf(struct e1_daemon *e1d, uint8_t id)
{
struct e1_intf *intf;
@@ -137,7 +137,7 @@ _e1d_ctl_intf_query(void *data, struct msgb *msgb, struct msgb *rmsgb, int *rfd)
/* Process query and find interface */
if (hdr->intf != E1DP_INVALID) {
- intf = _e1d_find_intf(e1d, hdr->intf);
+ intf = e1d_find_intf(e1d, hdr->intf);
n = intf ? 1 : 0;
} else {
n = llist_count(&e1d->interfaces);
@@ -174,7 +174,7 @@ _e1d_ctl_line_query(void *data, struct msgb *msgb, struct msgb *rmsgb, int *rfd)
int n;
/* Process query and find line */
- intf = _e1d_find_intf(e1d, hdr->intf);
+ intf = e1d_find_intf(e1d, hdr->intf);
if (!intf)
return 0;
@@ -216,7 +216,7 @@ _e1d_ctl_ts_query(void *data, struct msgb *msgb, struct msgb *rmsgb, int *rfd)
int n;
/* Process query and find timeslot */
- intf = _e1d_find_intf(e1d, hdr->intf);
+ intf = e1d_find_intf(e1d, hdr->intf);
if (!intf)
return 0;
@@ -262,7 +262,7 @@ _e1d_ctl_ts_open(void *data, struct msgb *msgb, struct msgb *rmsgb, int *rfd)
int ret;
/* Process query and find timeslot */
- intf = _e1d_find_intf(e1d, hdr->intf);
+ intf = e1d_find_intf(e1d, hdr->intf);
if (!intf)
return 0;