diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-03-30 11:21:17 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-03-30 19:44:36 +0000 |
commit | 7181ae471345d4e4e85d5edd5341ff7f156de01d (patch) | |
tree | 90606dfc739646b62cef2dcd6f3d55d2b698ca70 /configure.ac | |
parent | f341fd930e2b4a7787157bdb1447e00085f0680b (diff) |
Work around a Linux bonding driver bug (and the lack of a libpcap workaround).
The bonding driver does not properly handle unknown ioctls; it returns
ENODEV rather than ENOTSUP, EOPNOTSUPP, ENOTTY, or a "not supported"
error of that type. This causes problems detailed in bug 11058.
On Linux, check for bonding devices before checking for monitor-mode
support.
While we're at it, get rid of a commented-out include of
CheckCSourceCompiles (it's presumably already been implicitly included
by other functions that use it).
Bug: 11058
Change-Id: I13035de0650634c51a52f262829b2b6fb86b39e9
Reviewed-on: https://code.wireshark.org/review/7856
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 857e898089..085b663a52 100644 --- a/configure.ac +++ b/configure.ac @@ -2606,6 +2606,17 @@ AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/socket.h sys/sockio.h sys/stat.h sy AC_CHECK_HEADERS(netinet/in.h) AC_CHECK_HEADERS(arpa/inet.h arpa/nameser.h) +# +# On Linux, check for some additional headers, which we need as a +# workaround for a bonding driver bug and for libpcap's current lack +# of its own workaround for that bug. +# +case "$host_os" in +linux*) + AC_CHECK_HEADERS(linux/sockios.h linux/if_bonding.h,,,[#include <sys/socket.h>]) + ;; +esac + dnl SSL Check SSL_LIBS='' AC_MSG_CHECKING(whether to use SSL library) |