Re: [PATCH 5/6] app/dumpcap: improve per interface arg parsing

2023-01-04 Thread Stephen Hemminger
On Mon, 2 Jan 2023 16:24:40 + Ben Magistro wrote: > + > +/* struct representing args for each interface */ > +struct interface_opts { > + const char *intf_arg; > + const char *filter_str; > + bool promiscuous_mode; > + uint32_t snaplen; > +}; > +/* default parameters for inte

[PATCH 5/6] app/dumpcap: improve per interface arg parsing

2023-01-02 Thread Ben Magistro
This change improves the argument parsing to align closer to that of Wireshark dumpcap allowing for per interface settings on promiscuous mode and the filter string. Cc: step...@networkplumber.org Signed-off-by: Ben Magistro --- app/dumpcap/main.c | 149 +++