tcpdump mailing list archives
Re: supporting extend 'open live capture' parametes
From: Guy Harris <guy () alum mit edu>
Date: Thu, 07 Feb 2008 12:09:53 -0800
Abeni Paolo wrote:
I thought that such things (pcap API to ask for supported parameters) could be implemented adding dedicated fields into the pcap struct (on in a pcap_t sub structure), which must be set by the platform specific pcap_activate().
That would mean you couldn't ask for supported parameters until pcap_activate() is called; however, an application such as Wireshark would want to query whether monitor mode is available *before* activating.
If, instead, we have pcap_create() take a device name as an argument (as per another suggestion), it could set some function pointers at create time, e.g. the "can this support monitor mode?" function pointer - as well as an activate function pointer. When the activate function is called, it would change other pointers.
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Re: supporting extend 'open live capture' parametes Abeni Paolo (Jan 14)
- Re: supporting extend 'open live capture' parametes Michael Richardson (Jan 14)
- <Possible follow-ups>
- supporting extend 'open live capture' parametes Abeni Paolo (Jan 21)
- Re: supporting extend 'open live capture' parametes Guy Harris (Feb 05)
- Re: supporting extend 'open live capture' parametes Guy Harris (Feb 05)
- Re: supporting extend 'open live capture' parametes Abeni Paolo (Feb 07)
- Re: supporting extend 'open live capture' parametes Guy Harris (Feb 07)
- Re: supporting extend 'open live capture' parametes Guy Harris (Feb 05)
- Re: supporting extend 'open live capture' parametes Paolo Abeni (Feb 11)
- Re: supporting extend 'open live capture' parametes Guy Harris (Feb 11)
- Re: supporting extend 'open live capture' Paolo Abeni (Feb 11)
- Re: supporting extend 'open live capture' Guy Harris (Feb 11)
- Re: supporting extend 'open live capture' parametes Guy Harris (Feb 11)