aboutsummaryrefslogtreecommitdiffstats
path: root/src/octoi/octoi_vty.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-01-19 21:10:52 +0100
committerHarald Welte <laforge@osmocom.org>2022-03-28 12:26:09 +0200
commite3245076760d08255a601db7fe7172d25e48bd28 (patch)
tree29e1b945aa63e8cfcfbb516205754722ab4c525e /src/octoi/octoi_vty.h
parent8ec461ebe8aa4cb40b4a5358724e1c9d004b7b93 (diff)
OCTOI: initial support for E1oIP forwarding
This introduces initial support for operation as OCTOI (Osmocom Community TDMoIP) server and client operation. Various features are still absent (user authentication, support for re-ordered packets), but this version is already able to provide services to clients with dynamic IP addresses as well as servers. The bulk of the OCTOI / E1oIP code is implemented as a shared library, to facilitate the development of other servers and clients in the future, and also to minimize the impact on the existing osmo-e1d code base. More information is available at https://osmocom.org/projects/octoi/wiki Change-Id: I05f5ff697ca8f7dccdcf89660f12089babfcc92e
Diffstat (limited to 'src/octoi/octoi_vty.h')
-rw-r--r--src/octoi/octoi_vty.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/octoi/octoi_vty.h b/src/octoi/octoi_vty.h
new file mode 100644
index 0000000..6f18802
--- /dev/null
+++ b/src/octoi/octoi_vty.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <osmocom/vty/command.h>
+
+#include "octoi.h"
+
+extern struct cmd_element cfg_account_mode_cmd;
+extern struct cmd_element cfg_account_ice1_serno_cmd;
+extern struct cmd_element cfg_account_ice1_line_cmd;
+
+struct octoi_account *octoi_client_account_create(struct octoi_client *clnt, const char *user_id);
+
+void octoi_vty_write_one_account(struct vty *vty, const struct octoi_account *acc);
+
+void vty_show_octoi_sock(struct vty *vty, struct octoi_sock *sock);