-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here comes my latest patch. Changes from previous version:
- - Changed name of pcap_direction() to pcap_setdirection().
- - Makes use of function pointers, so calling pcap_setdirection() on
anything other than Linux will return -1 and set error text for
pcap_geterr().
- - Doesn't check for NULL pcap handle, because other pcap functions also
don't.
- - Updated man page.

On unsupported capture mechanisms setdirection_op is set to NULL, and it
is checked in pcap.c:pcap_setfilter().
To support direction in another capture mechanism:
1. Add pcap_setdirection_<plaftorm>() declaration and definition in
pcap-<platform>.c
2. Modify setdirection_op in pcap-<platform>.c to point to
pcap_setdirection_<platform>()
3. Update manual page.

Greetings,
Pawel Pokrywka
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQD1AwUBQnd4/gYJ6m8RUpKnAQKcGwcAkqVqVDpWZGJZsJG1pJiEGxJXYXxhxUlw
GyAmPvJQjcPVQ6JO1OM/GE6d7eqELJnNRH/AY+BNscnDTcENV5M6NYWHTUU+ikCE
3vktQ1xGlBCx/widM+BSiwko+bMkY+Nogfw/Na47fWXRVVXjWGPTfhCzbSwGQ255
GwSWzU5TBx8XXT77mAqdyqiSIDSoGwdMc4Pry1W7V2i10Hnk1al7aEUNJ+ncZhit
lLnDLiSWFwBnmUjUmXavd3JHYU6+ygCZg7BCfsm6iosQlHoigh3BJyj+gK1xu1SB
TYf89mAqQo0=
=0xn4
-----END PGP SIGNATURE-----

Attachment: direction.patch.gz
Description: GNU Zip compressed data

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

Reply via email to