[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 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

[netsniff-ng] [PATCH] Detect libpcap dependencies using pkg-config

2021-09-02 Thread Baruch Siach
. Signed-off-by: Baruch Siach --- configure | 4 +++- mausezahn/Makefile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 510826a798f5..598ae2433a7a 100755 --- a/configure +++ b/configure @@ -588,7 +588,9 @@ int main(void) } EOF

[netsniff-ng] [PATCH] trafgen.8: fix typo in example packet

2021-09-02 Thread Baruch Siach
First MAC address is destination, but the second is source. Signed-off-by: Baruch Siach --- trafgen.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trafgen.8 b/trafgen.8 index 97b9479d4f62..0b0fb317ceed 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -914,7 +914,7 @@ The above