[dns-operations] [PATCH] dnscap on OS X

Mark Santcroos mark at NLnetLabs.nl
Fri May 18 10:56:33 UTC 2007


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

Joao Damas wrote:
> Mark, have a look at
> http://osdir.com/ml/network.tcpdump.devel/2006-06/msg00056.html

The ioctl(2) does the job, but then you loose buffering capabilities.

I don't have emperical evidence to proof, but under high network load
that will become a problem probably. (I think my solution works in that
case)

Anyway, at this moment I don't have strong preference for either
solution, I just wanted the thing to compile in the first place :-)

Patch attached for the ioctl solution.

Mark

- --
Mark Santcroos
NLnet Labs
http://www.nlnetlabs.nl/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGTYZgvgq6Qtvn644RAlseAJ49XSqY6CwmdXLg1AgMaVO5CrptxACgmDo8
PXZXNEFUb0K2/ofdI9R2dP4=
=rICy
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dnscap_osx_ioctl.diff
URL: <http://lists.dns-oarc.net/pipermail/dns-operations/attachments/20070518/daba5c86/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnscap_osx_ioctl.diff.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
URL: <http://lists.dns-oarc.net/pipermail/dns-operations/attachments/20070518/daba5c86/attachment.obj>


More information about the dns-operations mailing list