Commit 7ce8aecd authored by Alessandro Rubini's avatar Alessandro Rubini

tools/ptpdump: add "char *prefix" to all functions

This is oh so boring, but I need to differentiate send from receive
when dumping from withing ppsi itself.  This is a long patch that has
no effect on tools/ptpdump, since it pases the empty string as prefix.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 23976c85
This diff is collapsed.
......@@ -131,13 +131,13 @@ int main(int argc, char **argv)
if (udpdest != 319 && udpdest != 320)
continue;
print_spaces(&ti);
ret = dump_udppkt(buf, len, &ti);
ret = dump_udppkt("", buf, len, &ti);
break;
}
case ETH_P_1588:
print_spaces(&ti);
ret = dump_1588pkt(buf, len, &ti);
ret = dump_1588pkt("", buf, len, &ti);
break;
default:
ret = -1;
......
......@@ -13,8 +13,8 @@
#define printf pp_printf
#endif
int dump_udppkt(void *buf, int len, struct TimeInternal *ti);
int dump_payloadpkt(void *buf, int len, struct TimeInternal *ti);
int dump_1588pkt(void *buf, int len, struct TimeInternal *ti);
int dump_udppkt(char *prefix, void *buf, int len, struct TimeInternal *ti);
int dump_payloadpkt(char *prefix, void *buf, int len, struct TimeInternal *ti);
int dump_1588pkt(char *prefix, void *buf, int len, struct TimeInternal *ti);
#endif /* __PTPDUMP_H__ */
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