netsniff-ng: check if linux-headers are v3.0 or higher
PATCH v3 1/1 netsniff-ng: check if linux-headers are v3.0 or higher
netsniff-ng uses the TP_STATUS_VLAN_VALID define, provided by the kernel headers. This definition has been added in the kernel by commit a3bcc23e890a6d49d6763d9eb073d711de2e0469 ("af-packet: Add flag to distinguish VID 0 from no-vlan"), which was merged in v3.0.
Fixes:
http://autobuild.buildroot.net/results/c87/c87a440e29ae387f600cb6ecce3caaa08557f4f0/
--- package/netsniff-ng/Config.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
package/netsniff-ng/Config.in +4 -2
@@ -9,6 +9,7 @@ config BR2_PACKAGE_NETSNIFF_NG # Build with uClibc fails due to missing ceill() # Build with musl fails due to various header issues depends on BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_58854 # liburcu depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
@@ -17,9 +18,10 @@ config BR2_PACKAGE_NETSNIFF_NG networking toolkit. If you will, the Swiss army knife for network packets. -comment "netsniff-ng needs an (e)glibc toolchain w/ threads" +comment "netsniff-ng needs an (e)glibc toolchain w/ threads, headers >= 3.0" depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS - depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_USES_GLIBC + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_USES_GLIBC \ + || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_58854 comment "netsniff-ng needs a toolchain not affected by GCC bug 58854"
Signature · 1 line
1.8.3.1
Thomas Petazzoni
AppliedPATCH v3 1/1 netsniff-ng: check if linux-headers are v3.0 or higher
Dear Joris Lijssens,
Quoted 5 lines · Joris Lijssens
netsniff-ng uses the
TP_STATUS_VLAN_VALIDdefine, provided by the kernel headers. This definition has been added in the kernel by commita3bcc23e890a6d49d6763d9eb073d711de2e0469("af-packet: Add flag to distinguish VID 0 from no-vlan"), which was merged in v3.0.
Quoted 7 lines
Fixes:
http://autobuild.buildroot.net/results/c87/c87a440e29ae387f600cb6ecce3caaa08557f4f0/Signed-off-by Joris Lijssens <[email protected]>--- package/netsniff-ng/Config.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com