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

2017-04-16 Thread Baruch Siach
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/sysroot/usr/include/linux/if_arp.h:113:8: error: redefinition of ‘struct arpreq’ struct arpreq { ^ In fil

[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/sysroot/usr/include/l

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

2017-04-16 Thread Baruch Siach
Use $PKG_CONFIG to determine the linker flags for libnetfilter_conntrack. This fixes static link failure like the following: LDflowtop .../usr/x86_64-buildroot-linux-musl/sysroot/usr/lib/../lib64/libnetfilter_conntrack.a(main.o): In function `nfct_open_nfnl': main.c:(.text+0x52): undefined

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

2017-04-16 Thread Baruch Siach
ino_t and pid_t require stat.h and types.h, respectively. Fixes the following build failure with musl libc: In file included from cpp.c:7:0: proc.h:11:31: error: unknown type name ‘ino_t’ extern int proc_find_by_inode(ino_t ino, char *cmdline, size_t len, pid_t *pid);

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

2017-04-16 Thread Baruch Siach
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/sysroot/usr/include/linux/if_arp.h:113:8: error: redefinition of ‘struct arpreq’ struct arpreq { ^ In fil