Re: [PATCH] BSD: Use struct ip rather than struct iphdr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 19, 2019 at 11:08:46AM +0100, Roy Marples wrote:
>     As we define __FAVOR_BSD use the BSD IP header.
>     Compile tested on NetBSD, DragonFlyBSD and Linux.

> diff --git a/src/common/dhcp.h b/src/common/dhcp.h
>  struct bootp_pkt {
> -       struct iphdr iph;
> +       struct ip iph;

That breaks hostapd build on Linux:

../src/ap/dhcp_snoop.c: In function ‘handle_dhcp’:
../src/ap/dhcp_snoop.c:49:25: error: ‘const struct ip’ has no member named ‘tot_len’; did you mean ‘ip_len’?
  tot_len = ntohs(b->iph.tot_len);

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux