Commit 4d55d5b6 authored by Aurelio Colosimo's avatar Aurelio Colosimo

implemented '-G' cmd line option, for gptp enabling

parent fb537b07
......@@ -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 */
}
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment