Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
4d55d5b6
Commit
4d55d5b6
authored
Mar 13, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented '-G' cmd line option, for gptp enabling
parent
fb537b07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
posix-startup.c
arch-gnu-linux/posix-startup.c
+0
-3
cmdline.c
lib/cmdline.c
+6
-0
No files found.
arch-gnu-linux/posix-startup.c
View file @
4d55d5b6
...
...
@@ -58,9 +58,6 @@ int main(int argc, char **argv)
if
(
pp_parse_cmdline
(
ppi
,
argc
,
argv
)
!=
0
)
return
-
1
;
if
(
OPTS
(
ppi
)
->
ethernet_mode
)
OPTS
(
ppi
)
->
gptp_mode
=
1
;
posix_main_loop
(
ppi
);
return
0
;
/* never reached */
}
lib/cmdline.c
View file @
4d55d5b6
...
...
@@ -34,6 +34,7 @@ static struct cmd_line_opt cmd_line_list[] = {
//{"-u ADDRESS", "also send uni-cast to ADDRESS\n"}, -- FIXME: useful?
{
"-e"
,
"run in ethernet mode (level2)"
},
{
"-h"
,
"run in End to End mode"
},
{
"-G"
,
"run in gPTP mode (implies -e)"
},
{
"-l NUMBER,NUMBER"
,
"specify inbound, outbound latency in nsec"
},
CMD_LINE_SEPARATOR
,
{
"-o NUMBER"
,
"specify current UTC offset"
},
...
...
@@ -203,6 +204,11 @@ int pp_parse_cmdline(struct pp_instance *ppi, int argc, char **argv)
a
=
argv
[
++
i
];
OPTS
(
ppi
)
->
e2e_mode
=
1
;
break
;
case
'G'
:
a
=
argv
[
++
i
];
OPTS
(
ppi
)
->
gptp_mode
=
1
;
OPTS
(
ppi
)
->
e2e_mode
=
1
;
break
;
case
'e'
:
OPTS
(
ppi
)
->
ethernet_mode
=
1
;
break
;
...
...
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