tcpdump mailing list archives

Re: One of these things is not like the others


From: Guy Harris <guy () alum mit edu>
Date: Wed, 24 May 2017 10:47:07 -0700

On May 24, 2017, at 10:36 AM, Michael Richardson <mcr () sandelman ca> wrote:

Guy Harris <guy () alum mit edu> wrote:

Note that macOS's tcpdump has a -g flag ("g" for "greppable", more
greppable output being the purpose of the flag), which puts the IPv4
input back on one line:

How can we move to this format?

To make that the default and only format, we'd just have to turn

        ND_PRINT((ndo, ")\n "));

to

        ND_PRINT((ndo, ") "));

in ip_print().

To add support for the -g flag, we'd just make that conditional at run time, with a gflag field in the 
netdissect_options field.
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: