mirror of https://gerrit.osmocom.org/osmo-pcap
vty: register commands for talloc context introspection
Change-Id: I3774cfd483102993340bd6e96f8512af61085679
This commit is contained in:
parent
52f06fd54b
commit
d59783e601
|
@ -33,6 +33,7 @@
|
|||
#include <osmocom/vty/logging.h>
|
||||
#include <osmocom/vty/telnet_interface.h>
|
||||
#include <osmocom/vty/stats.h>
|
||||
#include <osmocom/vty/misc.h>
|
||||
|
||||
#include <pcap.h>
|
||||
#include <signal.h>
|
||||
|
@ -228,9 +229,11 @@ int main(int argc, char **argv)
|
|||
osmo_init_logging2(tall_cli_ctx, &log_info);
|
||||
|
||||
vty_info.copyright = osmopcap_copyright;
|
||||
vty_info.tall_ctx = tall_cli_ctx;
|
||||
vty_init(&vty_info);
|
||||
logging_vty_add_cmds();
|
||||
osmo_stats_vty_add_cmds();
|
||||
osmo_talloc_vty_add_cmds();
|
||||
vty_client_init(tall_cli_ctx);
|
||||
|
||||
/* parse options */
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <osmocom/vty/logging.h>
|
||||
#include <osmocom/vty/telnet_interface.h>
|
||||
#include <osmocom/vty/stats.h>
|
||||
#include <osmocom/vty/misc.h>
|
||||
|
||||
#include <pcap.h>
|
||||
#include <signal.h>
|
||||
|
@ -241,9 +242,11 @@ int main(int argc, char **argv)
|
|||
osmo_init_logging2(tall_srv_ctx, &log_info);
|
||||
|
||||
vty_info.copyright = osmopcap_copyright;
|
||||
vty_info.tall_ctx = tall_srv_ctx;
|
||||
vty_init(&vty_info);
|
||||
logging_vty_add_cmds();
|
||||
osmo_stats_vty_add_cmds();
|
||||
osmo_talloc_vty_add_cmds();
|
||||
vty_server_init(tall_srv_ctx);
|
||||
|
||||
/* parse options */
|
||||
|
|
Loading…
Reference in New Issue