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
canghaiwuhen
OpenXG-RAN
Commits
7283168f
Commit
7283168f
authored
Apr 28, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-l option renamed -r, it's more "natural"
plus there is a default now
parent
624aba07
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
common/utils/T/tracer/local.c
common/utils/T/tracer/local.c
+8
-5
No files found.
common/utils/T/tracer/local.c
View file @
7283168f
...
...
@@ -9,6 +9,9 @@
#include <fcntl.h>
#include <pthread.h>
#define DEFAULT_REMOTE_IP "127.0.0.1"
#define DEFAULT_REMOTE_PORT 2021
#include "defs.h"
#include "../T_defs.h"
...
...
@@ -94,7 +97,9 @@ void usage(void)
printf
(
"tracer - local side
\n
"
"options:
\n
"
" -l <IP address> <port> local side (forwards packets to remote IP:port)
\n
"
" -r <IP address> <port> forwards packets to remote IP:port
\n
"
" (default %s:%d)
\n
"
,
DEFAULT_REMOTE_IP
,
DEFAULT_REMOTE_PORT
);
exit
(
1
);
}
...
...
@@ -103,8 +108,8 @@ int main(int n, char **v)
{
int
s
;
int
i
;
char
*
remote_ip
=
NULL
;
int
remote_port
=
-
1
;
char
*
remote_ip
=
DEFAULT_REMOTE_IP
;
int
remote_port
=
DEFAULT_REMOTE_PORT
;
int
port
=
2020
;
void
*
f
;
...
...
@@ -116,8 +121,6 @@ int main(int n, char **v)
usage
();
}
if
(
remote_port
==
-
1
||
remote_ip
==
NULL
)
usage
();
f
=
forwarder
(
remote_ip
,
remote_port
);
init_shm
();
s
=
get_connection
(
"127.0.0.1"
,
port
);
...
...
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