Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
ade874e7
Commit
ade874e7
authored
Oct 03, 2017
by
frtabu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add process related telnet command
parent
8b662d7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
common/utils/telnetsrv/telnetsrv_proccmd.c
common/utils/telnetsrv/telnetsrv_proccmd.c
+5
-1
common/utils/telnetsrv/telnetsrv_proccmd.h
common/utils/telnetsrv/telnetsrv_proccmd.h
+3
-0
No files found.
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