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
c14f12fd
Commit
c14f12fd
authored
Jan 25, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented -b cmd line options, for net interface choice
parent
e6273caf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
open-close.c
proto-standard/open-close.c
+5
-1
No files found.
proto-standard/open-close.c
View file @
c14f12fd
...
...
@@ -56,8 +56,8 @@ static struct cmd_line_opt cmd_line_list[] = {
{
"-a NUMBER,NUMBER"
,
"specify clock servo P and I attenuations"
},
{
"-w NUMBER"
,
"specify one way delay filter stiffness"
},
CMD_LINE_SEPARATOR
,
/* FIXME cmdline check if useful
{
"-b NAME"
,
"bind PTP to network interface NAME"
},
/* FIXME cmdline check if useful
{"-u ADDRESS", "also send uni-cast to ADDRESS\n"},
*/
/* FIXME cmdline now choosen by #define
...
...
@@ -163,6 +163,10 @@ int pp_parse_cmdline(struct pp_instance *ppi, int argc, char **argv)
a
=
argv
[
++
i
];
OPTS
(
ppi
)
->
s
=
atoi
(
a
);
break
;
case
'b'
:
a
=
argv
[
++
i
];
OPTS
(
ppi
)
->
iface_name
=
a
;
break
;
case
'l'
:
a
=
argv
[
++
i
];
cmd_line_parse_two
(
a
,
&
n1
,
&
n2
);
...
...
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