[netsniff-ng] [PATCH v2] pcap_io.h: fix if_arp.h musl libc/kernel headers conflict

2017-04-16 Thread Baruch Siach
/if_arp.h:99:8: note: originally defined here struct arpreq { ^ Add a local definition of the ARPHRD_CAN macro that glibc does not provide. Signed-off-by: Baruch Siach <bar...@tkos.co.il> --- v2: add ARPHRD_CAN to fix build with glibc --- built_in.h | 4 pcap_io.h | 2 +- 2 files c

[netsniff-ng] Re: [PATCH 2/2] pcap_io.h: fix if_arp.h musl libc/kernel headers conflict

2017-04-16 Thread Baruch Siach
Hi netsniff-ng list, On Sun, Apr 16, 2017 at 08:22:21AM +0300, Baruch Siach wrote: > Use libc provided arp definitions to avoid build failure with musl libc: > > In file included from pcap_io.h:19:0, > from trafgen.c:59: > .../usr/x86_64-buildroot-linux-musl/sysr

[netsniff-ng] [PATCH] flowtop: take PKG_CONFIG into account for libnetfilter_conntrack

2017-04-16 Thread Baruch Siach
/libnetfilter_conntrack.a(main.o): In function `nfct_open': main.c:(.text+0xc9): undefined reference to `nfnl_open' main.c:(.text+0xf0): undefined reference to `nfnl_close' ... Signed-off-by: Baruch Siach <bar...@tkos.co.il> --- flowtop/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[netsniff-ng] [PATCH 1/2] proc.h: add missing headers

2017-04-16 Thread Baruch Siach
); ^ Signed-off-by: Baruch Siach <bar...@tkos.co.il> --- proc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proc.h b/proc.h index 4c34a6412a81..2ce0c6e7a932 100644 --- a/proc.h +++ b/proc.h @@ -2,6 +2,8 @@ #define PROC_H #include +#include +#include exter

[netsniff-ng] [PATCH 2/2] pcap_io.h: fix if_arp.h musl libc/kernel headers conflict

2017-04-16 Thread Baruch Siach
/if_arp.h:99:8: note: originally defined here struct arpreq { ^ Signed-off-by: Baruch Siach <bar...@tkos.co.il> --- pcap_io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcap_io.h b/pcap_io.h index 3d70b217ada6..088858e89ccd 100644 --- a/pcap_io.h +++ b/pca