diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-08-20 10:50:10 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-08-20 10:53:20 +0200 |
commit | b67df4299c18ba3f3fb30a2e3488873bd49d4153 (patch) | |
tree | 1a7ec4d77447a217c307fce96eac01d05b9916f7 /configure | |
parent | 1b554ed8277dd027db458a029dfbe90d04e212b6 (diff) |
configure: allow trafgen build when only TPACKET_V2 is available
On machines like RHEL6 that do not have support for TPACKET_V3, we
should still allow at least trafgen to be built for network testing.
Thus, do something useful with the TPACKET_V3 configure check and
comment out in ring.h relevant structures.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -16,6 +16,7 @@ HAVE_LIBPCAP=0 HAVE_HWTSTAMP=0 HAVE_LIBGEOIP=0 HAVE_LIBZ=0 +HAVE_TPACKET3=0 [ -z $CC ] && CC=cc @@ -203,6 +204,7 @@ EOF tools_remove "netsniff-ng" else echo "[YES]" + HAVE_TPACKET3=1 fi } @@ -528,6 +530,7 @@ gen_config_hdr() local _have_libgeoip="" local _have_libz="" local _have_hwts="" + local _have_tp3="" echo "[*] Generating config.h ... " @@ -554,6 +557,10 @@ gen_config_hdr() _have_libz="#define HAVE_LIBZ 1" fi + if [ "$HAVE_TPACKET3" == "1" ] ; then + _have_tp3="#define HAVE_TPACKET3 1" + fi + cat > config.h << EOF #ifndef CONFIG_H #define CONFIG_H @@ -567,6 +574,7 @@ $_have_libpcap $_have_libgeoip $_have_libz $_have_hwts +$_have_tp3 #endif /* CONFIG_H */ EOF } |