Commit Graph

13 Commits

Author SHA1 Message Date
arehbein ad15cf4397 osmo-e1d: Transition to use of 'telnet_init_default'
Related: OS#5809
Change-Id: I68fafc519d7c7ca9788bfcad7be1fadbb208cebe
2022-12-19 22:34:39 +01:00
Harald Welte 7f204ac42a osmo-e1d: Add the usual '-V' / '--version' command line argument
Change-Id: Ie2d79c44e580ffa6555f87b969206047ffb7eb6f
2022-11-03 10:18:54 +01:00
Harald Welte b22bcd2059 Fix stats exporter
We called osmo_stats_vty_add_cmds() but we didn't call
osmo_stats_init(), resulting in the user being able to configure stats
reporting, but osmo-e1d would simply never generate the related UDP
packets :(

With this commit, osmo-e1d starts to generate the related packets.

Change-Id: Ic373d3056d044af797664215b08ba0880675ae53
2022-04-18 19:31:36 +02:00
Harald Welte 973ce5c507 Make use of libosmcoore cpu_sched_vty
osmo-e1d automatically uses SCHED_RR already, but for consistency it
actually makes sense to add this, so people can configure the scheduler
priority and/or the cpu affinity this way.

The existing call to SCHED_RR is left in place for backwards
compatibility.  The new VTY commands can just override that, if needed.

Change-Id: I1b8021e6dc864af6e301fced427e24c8bb21ca2f
2022-04-17 12:57:24 +02:00
Harald Welte e324507676 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
2022-03-28 12:26:09 +02:00
Harald Welte 9d6dab8992 update copyright statement
Change-Id: I1b4817207369e572a2b070443475289cc527c317
2022-01-31 14:49:31 +00:00
Harald Welte 3fd3df13b5 make rate_counters work
if we don't call rate_ctr_init(), the rate counter internal timer will
not tick,a nd we will never get the per-s/per-m/per-h averages.

Change-Id: Ib5b66c72079330ac161756bcf562d27536d7ce44
2022-01-31 14:49:26 +00:00
Harald Welte 1923b4d832 move usb.c function declarations to newly-created usb.h
Change-Id: Icab91d73e37119960ca3c953bf91c2ec9d821311
2020-12-20 11:45:54 +01:00
Harald Welte c5c5a1e7c5 add missing call to logging_vty_add_cmds() during startup
Otherwise, the usual logging related VTY commands are absent.

Change-Id: I07038dfb204301bb1696ca312b2ec29671b86ae5
2020-07-09 20:57:01 +00:00
Harald Welte 54e9773d34 proto.h: Share default socket path between client and daemon
This way clients and daemon don't have to be manually configured
to use the same default socket path.

Change-Id: Ibc5bc1bc59056ebaf0f6072de0ff08c2f3bb5457
2020-06-29 22:14:05 +02:00
Harald Welte 9144ba0373 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
2020-06-29 22:12:42 +02:00
Harald Welte 8db1624323 port to new libosmousb
libosmousb, recently introduced to libosmocore.git, is taking care
of main loop integration of libusb into osmo_select_main().  This
means we don't need to do any polling here anymore.

Change-Id: I3f3b61dfa217d6ef8c17970b2cf1cc627bb13bbe
2020-01-06 17:37:07 +01:00
Sylvain Munaut cf189940be Initial code import
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-05-11 22:31:12 +02:00