Re: [tcpdump-workers] Devices and adresses in libpcap

2008-04-14 Thread Eloy Paris
Hola David, On Sun, Apr 13, 2008 at 08:11:30PM +0200, David Rosal wrote: > 2008/4/13, Guy Harris <[EMAIL PROTECTED]>: > > > > What do you mean by "some attributes of pcap descriptors that are hidden > > in libpcap"? > > Be aware that the pcap_t structure is opaque, and subject to arbitrary > ch

Re: [tcpdump-workers] Devices and adresses in libpcap

2008-04-13 Thread David Rosal
2008/4/13, Guy Harris <[EMAIL PROTECTED]>: > > What do you mean by "some attributes of pcap descriptors that are hidden > in libpcap"? Be aware that the pcap_t structure is opaque, and subject to arbitrary > changes from libpcap release to libpcap release. Yes I am aware of that, and I have tak

Re: [tcpdump-workers] Devices and adresses in libpcap

2008-04-13 Thread Guy Harris
David Rosal wrote: Well, libpcap++ is only a wrapper, and it does not add any new feature to libpcap, except maybe the abbility to retrieve some attributes of pcap descriptors that are hidden in libpcap. What do you mean by "some attributes of pcap descriptors that are hidden in libpcap"? Be

Re: [tcpdump-workers] Devices and adresses in libpcap

2008-04-13 Thread David Rosal
2008/4/13, Giovanni Venturi <[EMAIL PROTECTED]>: > > > You should add on the website what libpcap++ has in addition to libpcap in > details, > Giovanni > Well, libpcap++ is only a wrapper, and it does not add any new feature to libpcap, except maybe the abbility to retrieve some attributes of pcap

Re: [tcpdump-workers] Devices and adresses in libpcap

2008-04-13 Thread Giovanni Venturi
Alle domenica 13 aprile 2008, David Rosal ha scritto: > Thanks Guy. > > By the way: Have you had a look at libpcap++? > > The web page is: http://libpcappp.sourceforge.net/ > > Your opinion would be specially appreciated. > > Anyway, thanks for the help. > You should add on the website what libpc

Re: [tcpdump-workers] Devices and adresses in libpcap

2008-04-13 Thread David Rosal
Thanks Guy. By the way: Have you had a look at libpcap++? The web page is: http://libpcappp.sourceforge.net/ Your opinion would be specially appreciated. Anyway, thanks for the help. Cheers, ~David 2008/4/12, Guy Harris <[EMAIL PROTECTED]>: > > David Rosal wrote: > > As far as I know,

Re: [tcpdump-workers] Devices and adresses in libpcap

2008-04-12 Thread Guy Harris
David Rosal wrote: As far as I know, each network interface (for example eth0), can have different adresses, because in pcap_findalldevs(), a pcap_if_t does not hold a single pcap_addr_t but a linked list of all addresses for each interface/device. Yes, it can have multiple addresses, and, ye

[tcpdump-workers] Devices and adresses in libpcap

2008-04-12 Thread David Rosal
Hello. Let me present myself: I am David Rosal, from Barcelona. I have written a C++ wrapper for libpcap, called libpcap++. I have implemented almost all pcap functions in the library, and now I am trying to implement pcap_lookupnet(). But after reading the pcap man page carefully, there's still