]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
For unfathomable reasons, ipfilter abuses kernel data structures for its
authorDag-Erling Smørgrav <des@FreeBSD.org>
Wed, 23 Jul 2008 16:34:53 +0000 (16:34 +0000)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Wed, 23 Jul 2008 16:34:53 +0000 (16:34 +0000)
commitc3c64562513814cc753911e56b6fbe2e013681d3
treeb202a4dfe6bc440e1b0fc2629fae39afd60d4c7f
parentb661868711922cb7b4084cc26cf9be1e2c7e0a94
For unfathomable reasons, ipfilter abuses kernel data structures for its
own purposes.  To pull this off, it defines _KERNEL before including the
headers where these structures are defined.  This leads to no end of
trouble when some of these headers, or other headers that they include,
change, as demonstrated by r180755.

The quick fix in this particular case is to define _WANT_FILE instead of
_KERNEL, conditional on __FreeBSD__.  A better long-term fix is left as
an exercise to the reader.
contrib/ipfilter/ipsend/sock.c