diff --git a/include/nuttx/net/ip.h b/include/nuttx/net/ip.h index 5d44149a7c..f31768e867 100644 --- a/include/nuttx/net/ip.h +++ b/include/nuttx/net/ip.h @@ -197,7 +197,7 @@ struct net_iphdr_s * This function constructs an IPv6 address. */ -#define uip_ip6addr(addr, addr0,addr1,addr2,addr3,addr4,addr5,addr6,addr7) \ +#define ip6_addr(addr, addr0,addr1,addr2,addr3,addr4,addr5,addr6,addr7) \ do { \ ((uint16_t*)(addr))[0] = HTONS((addr0)); \ ((uint16_t*)(addr))[1] = HTONS((addr1)); \ diff --git a/include/nuttx/net/pkt.h b/include/nuttx/net/pkt.h index 1b38e02c4d..55e04db515 100644 --- a/include/nuttx/net/pkt.h +++ b/include/nuttx/net/pkt.h @@ -47,6 +47,8 @@ #include #include +#include + #include /****************************************************************************