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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
fc967bab
Commit
fc967bab
authored
Mar 26, 2021
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sim-channels' of gitlab.eurecom.fr:oai/openairinterface5g into sim-channels
parents
364ea768
1a93c759
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
common/utils/telnetsrv/telnetsrv.c
common/utils/telnetsrv/telnetsrv.c
+5
-7
No files found.
common/utils/telnetsrv/telnetsrv.c
View file @
fc967bab
...
@@ -461,12 +461,12 @@ int process_command(char *buf) {
...
@@ -461,12 +461,12 @@ int process_command(char *buf) {
int
i
,
j
,
k
;
int
i
,
j
,
k
;
char
modulename
[
TELNET_CMD_MAXSIZE
];
char
modulename
[
TELNET_CMD_MAXSIZE
];
char
cmd
[
TELNET_CMD_MAXSIZE
];
char
cmd
[
TELNET_CMD_MAXSIZE
];
char
cmdb
[
TELNET_MAX_MSGLENGTH
]
;
char
*
cmdb
=
NULL
;
char
*
bufbck
;
char
*
bufbck
;
int
rt
;
int
rt
;
memset
(
modulename
,
0
,
sizeof
(
modulename
));
memset
(
modulename
,
0
,
sizeof
(
modulename
));
memset
(
cmd
,
0
,
sizeof
(
cmd
));
memset
(
cmd
,
0
,
sizeof
(
cmd
));
memset
(
cmdb
,
0
,
sizeof
(
cmdb
));
if
(
strncasecmp
(
buf
,
"ex"
,
2
)
==
0
)
if
(
strncasecmp
(
buf
,
"ex"
,
2
)
==
0
)
return
CMDSTATUS_EXIT
;
return
CMDSTATUS_EXIT
;
...
@@ -490,12 +490,10 @@ int process_command(char *buf) {
...
@@ -490,12 +490,10 @@ int process_command(char *buf) {
return
CMDSTATUS_FOUND
;
return
CMDSTATUS_FOUND
;
}
}
memset
(
modulename
,
0
,
sizeof
(
modulename
));
memset
(
cmd
,
0
,
sizeof
(
cmd
));
memset
(
cmdb
,
0
,
sizeof
(
cmdb
));
bufbck
=
strdup
(
buf
);
bufbck
=
strdup
(
buf
);
rt
=
CMDSTATUS_NOTFOUND
;
rt
=
CMDSTATUS_NOTFOUND
;
j
=
sscanf
(
buf
,
"%19s %19s %
[^
\t\n
]"
,
modulename
,
cmd
,
cmdb
);
j
=
sscanf
(
buf
,
"%19s %19s %
m[^
\t\n
]"
,
modulename
,
cmd
,
&
cmdb
);
if
(
telnetparams
.
telnetdbg
>
0
)
if
(
telnetparams
.
telnetdbg
>
0
)
printf
(
"process_command: %i words, module=%s cmd=%s, parameters= %s
\n
"
,
j
,
modulename
,
cmd
,
cmdb
);
printf
(
"process_command: %i words, module=%s cmd=%s, parameters= %s
\n
"
,
j
,
modulename
,
cmd
,
cmdb
);
...
@@ -562,7 +560,7 @@ int process_command(char *buf) {
...
@@ -562,7 +560,7 @@ int process_command(char *buf) {
rt
=
CMDSTATUS_FOUND
;
rt
=
CMDSTATUS_FOUND
;
}
/* loop */
}
/* loop */
}
/* for i */
}
/* for i */
free
(
cmdb
);
free
(
bufbck
);
free
(
bufbck
);
return
rt
;
return
rt
;
}
}
...
...
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