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

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

 



On Mon, Oct 07, 2019 at 10:06:42AM +0100, Roy Marples wrote:
> I think I've enabled all the config options to compile all the parts that
> touch the ip header. New patch below.
> 
>     As we define __FAVOR_BSD use the BSD IP header.
>     Compile tested on NetBSD, DragonFlyBSD and Linux.

Thanks, applied with a fix:

> diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
> @@ -9025,17 +9024,17 @@ static int wpas_ctrl_iface_data_test_tx(struct

> +	ip->ip_src.saddr = htonl(192U << 24 | 168 << 16 | 1 << 8 | 1);
> +	ip->ip_dst.daddr = htonl(192U << 24 | 168 << 16 | 1 << 8 | 2);

Those typos (should have been .s_addr) broke the CONFIG_TESTING_OPTIONS
compilation.

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