From d5bfec2e52d337b21634fb1401b5f468479181a7 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 11 Oct 2016 09:52:20 +0200 Subject: [PATCH] ip4_frag: restore "lwip_ntohs" after last change --- src/core/ipv4/ip4_frag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv4/ip4_frag.c b/src/core/ipv4/ip4_frag.c index 56a9b044..9812a085 100644 --- a/src/core/ipv4/ip4_frag.c +++ b/src/core/ipv4/ip4_frag.c @@ -706,7 +706,7 @@ ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest) LWIP_ERROR("ip4_frag() does not support IP options", IPH_HL(iphdr) * 4 == IP_HLEN, return ERR_VAL); /* Save original offset */ - tmp = ntohs(IPH_OFFSET(iphdr)); + tmp = lwip_ntohs(IPH_OFFSET(iphdr)); ofo = tmp & IP_OFFMASK; LWIP_ERROR("ip_frag(): MF already set", (tmp & IP_MF) == 0, return ERR_VAL);