diff options
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_main.c')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c index 208ae47ca..87efb21a5 100644 --- a/openbsc/src/gprs/gb_proxy_main.c +++ b/openbsc/src/gprs/gb_proxy_main.c @@ -185,6 +185,14 @@ static void handle_options(int argc, char **argv) extern void *tall_msgb_ctx; +extern int bsc_vty_go_parent(struct vty *vty); + +static struct vty_app_info vty_info = { + .name = "Osmocom Gb Proxy", + .version = PACKAGE_VERSION, + .go_parent_cb = bsc_vty_go_parent, +}; + int main(int argc, char **argv) { struct gsm_network dummy_network; @@ -204,7 +212,8 @@ int main(int argc, char **argv) log_add_target(stderr_target); log_set_all_filter(stderr_target, 1); - vty_init("Osmocom Gb Proxy", PACKAGE_VERSION, openbsc_copyright); + vty_info.copyright = openbsc_copyright; + vty_init(&vty_info); logging_vty_add_cmds(); gbproxy_vty_init(); |