Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dyyu
openairinterface5G
Commits
ade874e7
Commit
ade874e7
authored
Oct 03, 2017
by
frtabu
Browse files
add process related telnet command
parent
8b662d7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/utils/telnetsrv/telnetsrv_proccmd.c
View file @
ade874e7
...
...
@@ -216,11 +216,15 @@ int s = sscanf(buf,"%*s %i-%i",&idx1,&idx2);
{
set_glog_onlinelog
(
0
);
}
if
(
strcasestr
(
buf
,
"show"
)
!=
NULL
)
{
proccmd_show
(
"loglvl"
,
debug
,
prnt
);
}
return
0
;
}
/*-------------------------------------------------------------------------------------*/
void
add_softmodem_cmds
()
{
add_telnetcmd
(
"softmodem"
,
NULL
,
proc_cmdarray
);
add_telnetcmd
(
"softmodem"
,
proc_vardef
,
proc_cmdarray
);
}
common/utils/telnetsrv/telnetsrv_proccmd.h
View file @
ade874e7
...
...
@@ -42,6 +42,9 @@ extern int proccmd_show(char *buf, int debug, telnet_printfunc_t prnt);
extern
int
proccmd_thread
(
char
*
buf
,
int
debug
,
telnet_printfunc_t
prnt
);
extern
int
proccmd_exit
(
char
*
buf
,
int
debug
,
telnet_printfunc_t
prnt
);
extern
int
proccmd_log
(
char
*
buf
,
int
debug
,
telnet_printfunc_t
prnt
);
telnetshell_vardef_t
proc_vardef
[]
=
{
{
""
,
0
,
NULL
}
};
telnetshell_cmddef_t
proc_cmdarray
[]
=
{
{
"show"
,
"loglvl|thread"
,
proccmd_show
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment