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/linux/if_arp.h:113:8:
> error: redefinition of ‘struct arpreq’
> struct arpreq {
> ^
> In file included from
> .../usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/if_ether.h:111:0,
> from
> .../usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/ethernet.h:10,
> from trafgen.c:23:
> .../usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/if_arp.h:99:8:
> note: originally defined here
> struct arpreq {
> ^
>
> Signed-off-by: Baruch Siach <[email protected]>
> ---
> 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/pcap_io.h
> @@ -16,7 +16,7 @@
> #include <sys/socket.h>
> #include <linux/if.h>
> #include <linux/if_packet.h>
> -#include <linux/if_arp.h>
> +#include <net/if_arp.h>
Turns out that glibc if_arp.h is missing the ARPHRD_CAN macro. I'll post an
updated patch fixing that.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
--
You received this message because you are subscribed to the Google Groups
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.