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

Roy Marples roy at marples.name
Thu Sep 19 03:08:46 PDT 2019


     As we define __FAVOR_BSD use the BSD IP header.
     Compile tested on NetBSD, DragonFlyBSD and Linux.

     Signed-off-by: Roy Marples <roy at marples.name>

diff --git a/src/common/dhcp.h b/src/common/dhcp.h
index e38512c24..7dc67d5b8 100644
--- a/src/common/dhcp.h
+++ b/src/common/dhcp.h
@@ -39,7 +39,7 @@ struct dhcp_data {
  } STRUCT_PACKED;

  struct bootp_pkt {
-       struct iphdr iph;
+       struct ip iph;
         struct udphdr udph;
         u8 op;
         u8 htype;



More information about the Hostap mailing list