Re: [Wireshark-dev] read/write capture comments from the command line

2013-04-09 Thread Martin Kaiser
Thus wrote Guy Harris (g...@alum.mit.edu): > Sounds like a job for capinfos. You're right, that's where it should go. And for capinfos, the cmdline options don't have to be aligned with wireshark/tshark/dumpcap ;-) > (I assume by "capture file comment" you mean the comment in the first > Section

Re: [Wireshark-dev] read/write capture comments from the command line

2013-04-08 Thread Anders Broman
Guy Harris skrev 2013-04-09 00:32: On Apr 8, 2013, at 3:02 PM, Anders Broman wrote: I think we have getopt_long already http://anonsvn.wireshark.org/viewvc?view=revision&revision=41926 We do, so we have it available on both platforms that have it (most UN*Xes, these days) and platforms that

Re: [Wireshark-dev] read/write capture comments from the command line

2013-04-08 Thread Guy Harris
On Apr 8, 2013, at 3:02 PM, Anders Broman wrote: > I think we have getopt_long already > http://anonsvn.wireshark.org/viewvc?view=revision&revision=41926 We do, so we have it available on both platforms that have it (most UN*Xes, these days) and platforms that don't (Windows, which has neithe

Re: [Wireshark-dev] read/write capture comments from the command line

2013-04-08 Thread Anders Broman
Dirk Jagdmann skrev 2013-04-08 23:29: Sadly, -j is already taken for Wireshark, so you couldn't run Wireshark from the command line with "-j", unless we go with either getopt_long() (pulling in a version from GNU libc for platforms that don't have it in the system library) or with g_option: I

Re: [Wireshark-dev] read/write capture comments from the command line

2013-04-08 Thread Dirk Jagdmann
Sadly, -j is already taken for Wireshark, so you couldn't run Wireshark from the command line with "-j", unless we go with either getopt_long() (pulling in a version from GNU libc for platforms that don't have it in the system library) or with g_option: I suggest using the glib functions. Othe

Re: [Wireshark-dev] read/write capture comments from the command line

2013-04-07 Thread Guy Harris
On Apr 4, 2013, at 12:06 PM, Martin Kaiser wrote: > I was asked by some people about access to capture comments from the > command line tools. We identified two use cases > > - You have a capture file and want to display its capture file comment. > Nothing but the comment, no packets etc. Sou

[Wireshark-dev] read/write capture comments from the command line

2013-04-04 Thread Martin Kaiser
Dear all, I was asked by some people about access to capture comments from the command line tools. We identified two use cases - You have a capture file and want to display its capture file comment. Nothing but the comment, no packets etc. - You start a capture from the command line and want to