diff options
author | Harald Welte <laforge@osmocom.org> | 2020-06-29 16:57:09 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-06-29 22:12:42 +0200 |
commit | 9144ba03738504d770a8cf3a644f64a14ebd7e8b (patch) | |
tree | f935808384ed4f7c7075e645b63f0887828f4907 /src/ctl.c | |
parent | 0b621b43e75f45a9c64eef42b5aae83f248a42d5 (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.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |