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
Michael Black
OpenXG-RAN
Commits
94c7ad6f
Commit
94c7ad6f
authored
Oct 20, 2021
by
frtabu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix after rebase on develop
parent
05875d7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
common/utils/telnetsrv/telnetsrv.c
common/utils/telnetsrv/telnetsrv.c
+13
-11
common/utils/telnetsrv/telnetsrv_measurements.c
common/utils/telnetsrv/telnetsrv_measurements.c
+1
-1
No files found.
common/utils/telnetsrv/telnetsrv.c
View file @
94c7ad6f
...
...
@@ -688,17 +688,18 @@ void run_telnetclt(void) {
inet_aton
(
"127.0.0.1"
,
&
addr
)
;
name
.
sin_addr
.
s_addr
=
addr
.
s_addr
;
name
.
sin_port
=
htons
((
unsigned
short
)(
telnetparams
.
listenport
));
while
(
1
)
{
sock
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
);
if
(
sock
<
0
)
fprintf
(
stderr
,
"[TELNETSRV] Error %s on socket call
\n
"
,
strerror
(
errno
));
sock
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
);
if
(
sock
<
0
)
fprintf
(
stderr
,
"[TELNETSRV] Error %s on socket call
\n
"
,
strerror
(
errno
));
if
(
connect
(
sock
,
(
void
*
)
&
name
,
sizeof
(
name
)))
fprintf
(
stderr
,
"[TELNETSRV] Error %s on connect call
\n
"
,
strerror
(
errno
));
if
(
connect
(
sock
,
(
void
*
)
&
name
,
sizeof
(
name
)))
fprintf
(
stderr
,
"[TELNETSRV] Error %s on connect call
\n
"
,
strerror
(
errno
));
struct
timeval
ts
;
ts
.
tv_sec
=
1
;
// 1 second
ts
.
tv_usec
=
0
;
while
(
1
)
{
struct
timeval
ts
;
ts
.
tv_sec
=
1
;
// 1 second
ts
.
tv_usec
=
0
;
while
(
1
)
{
fd_set
fds
;
FD_ZERO
(
&
fds
);
FD_SET
(
sock
,
&
fds
);
...
...
@@ -740,8 +741,9 @@ void run_telnetclt(void) {
}
free
(
inbuf
);
}
}
close
(
sock
);
}
close
(
sock
);
}
return
;
}
/* run_telnetclt */
...
...
common/utils/telnetsrv/telnetsrv_measurements.c
View file @
94c7ad6f
...
...
@@ -162,7 +162,7 @@ int measurcmd_show(char *buf, int debug, telnet_printfunc_t prnt) {
notifiedFIFO_elt_t
*
msg
=
newNotifiedFIFO_elt
(
sizeof
(
time_stats_msg_t
),
0
,
NULL
,
NULL
);
time_stats_msg_t
*
msgdata
=
NotifiedFifoData
(
msg
);
msgdata
->
msgid
=
TIMESTAT_MSGID_DISPLAY
;
msgdata
->
displayFunc
=
(
void
(
*
)(
void
*
))
prnt
;
msgdata
->
displayFunc
=
prnt
;
pushNotifiedFIFO
(
&
measur_fifo
,
msg
);
}
else
if
(
strcmp
(
subcmd
,
"groups"
)
==
0
){
measurcmd_display_groups
(
prnt
,
measurgroups
,
num_measurgroups
);
...
...
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