Re: [Wireshark-dev] should editcap support -H and -W?

2012-11-08 Thread Jeff Morriss

Guy Harris wrote:

On Oct 2, 2012, at 7:52 AM, Jeff Morriss  wrote:


I noticed today (in fighting to get name resolution blocks into my
PCAPNG files) that editcap does not (contrary to the man page) support
the "-H" and "-W" options.  Should it?

I coded up a patch today but realized that it would require linking
editcap against libwireshark.  Do we care?

The other aspect is that adding name resolution blocks can already be
done with tshark (in which the "-H" and "-W" options do work).


Exactly.  We already have a command-line tool that reads and writes capture 
files, is linked with libwireshark, and supports -H and -W; I'm not sure we 
need another one.

Either that, or some or all of epan/addr_resolv.c should be moved to libwiretap 
or libwsutil, so you don't need libwireshark in order to usefully read or write 
Name Resolution Blocks (or the equivalent information in whatever other capture 
file formats support that).


I had contemplated that too[1] but, well I don't have the time to mess 
with it right now.  So I took the options out of editcap's man page in 
r45975.


[1] another reason to consider this is another problem I noticed (and 
why I was fighting to get name resolution blocks into my PCAPNG files in 
the first place): when doing captures to a series of files you don't get 
name resolution blocks in them.  Took me a while to figure that out but 
of course the answer is obvious: dumpcap is the one writing those files 
and it doesn't have name resolution...  Not sure what to (or what can) 
be done about that.

___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] should editcap support -H and -W?

2012-10-02 Thread Guy Harris

On Oct 2, 2012, at 7:52 AM, Jeff Morriss  wrote:

> I noticed today (in fighting to get name resolution blocks into my
> PCAPNG files) that editcap does not (contrary to the man page) support
> the "-H" and "-W" options.  Should it?
> 
> I coded up a patch today but realized that it would require linking
> editcap against libwireshark.  Do we care?
> 
> The other aspect is that adding name resolution blocks can already be
> done with tshark (in which the "-H" and "-W" options do work).

Exactly.  We already have a command-line tool that reads and writes capture 
files, is linked with libwireshark, and supports -H and -W; I'm not sure we 
need another one.

Either that, or some or all of epan/addr_resolv.c should be moved to libwiretap 
or libwsutil, so you don't need libwireshark in order to usefully read or write 
Name Resolution Blocks (or the equivalent information in whatever other capture 
file formats support that).

___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] should editcap support -H and -W?

2012-10-02 Thread Ed Beroset

Jeff Morriss wrote:

I noticed today (in fighting to get name resolution blocks into my
PCAPNG files) that editcap does not (contrary to the man page) support
the "-H" and "-W" options.  Should it?

I coded up a patch today but realized that it would require linking
editcap against libwireshark.  Do we care?

The other aspect is that adding name resolution blocks can already be
done with tshark (in which the "-H" and "-W" options do work).


I think it makes sense to support -H and -W in editcap, especially since 
the man page says it already does.


Ed
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


[Wireshark-dev] should editcap support -H and -W?

2012-10-02 Thread Jeff Morriss
I noticed today (in fighting to get name resolution blocks into my
PCAPNG files) that editcap does not (contrary to the man page) support
the "-H" and "-W" options.  Should it?

I coded up a patch today but realized that it would require linking
editcap against libwireshark.  Do we care?

The other aspect is that adding name resolution blocks can already be
done with tshark (in which the "-H" and "-W" options do work).

Thoughts?
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe