Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shweta Shrivastava
openairinterface5G
Commits
ade874e7
Commit
ade874e7
authored
7 years ago
by
frtabu
Browse files
Options
Downloads
Patches
Plain Diff
add process related telnet command
parent
8b662d7e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/utils/telnetsrv/telnetsrv_proccmd.c
+5
-1
5 additions, 1 deletion
common/utils/telnetsrv/telnetsrv_proccmd.c
common/utils/telnetsrv/telnetsrv_proccmd.h
+3
-0
3 additions, 0 deletions
common/utils/telnetsrv/telnetsrv_proccmd.h
with
8 additions
and
1 deletion
common/utils/telnetsrv/telnetsrv_proccmd.c
+
5
−
1
View file @
ade874e7
...
@@ -216,11 +216,15 @@ int s = sscanf(buf,"%*s %i-%i",&idx1,&idx2);
...
@@ -216,11 +216,15 @@ int s = sscanf(buf,"%*s %i-%i",&idx1,&idx2);
{
{
set_glog_onlinelog
(
0
);
set_glog_onlinelog
(
0
);
}
}
if
(
strcasestr
(
buf
,
"show"
)
!=
NULL
)
{
proccmd_show
(
"loglvl"
,
debug
,
prnt
);
}
return
0
;
return
0
;
}
}
/*-------------------------------------------------------------------------------------*/
/*-------------------------------------------------------------------------------------*/
void
add_softmodem_cmds
()
void
add_softmodem_cmds
()
{
{
add_telnetcmd
(
"softmodem"
,
NULL
,
proc_cmdarray
);
add_telnetcmd
(
"softmodem"
,
proc_vardef
,
proc_cmdarray
);
}
}
This diff is collapsed.
Click to expand it.
common/utils/telnetsrv/telnetsrv_proccmd.h
+
3
−
0
View file @
ade874e7
...
@@ -42,6 +42,9 @@ extern int proccmd_show(char *buf, int debug, telnet_printfunc_t prnt);
...
@@ -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_thread
(
char
*
buf
,
int
debug
,
telnet_printfunc_t
prnt
);
extern
int
proccmd_exit
(
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
);
extern
int
proccmd_log
(
char
*
buf
,
int
debug
,
telnet_printfunc_t
prnt
);
telnetshell_vardef_t
proc_vardef
[]
=
{
{
""
,
0
,
NULL
}
};
telnetshell_cmddef_t
proc_cmdarray
[]
=
{
telnetshell_cmddef_t
proc_cmdarray
[]
=
{
{
"show"
,
"loglvl|thread"
,
proccmd_show
},
{
"show"
,
"loglvl|thread"
,
proccmd_show
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment