From 892e30d8c10cccba5594fa75a6dc12d4d610cecf Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 13 Dec 2017 16:35:00 +0800 Subject: [PATCH] ip4_reass: Use IPH_HL_BYTES instead of open coded Signed-off-by: Axel Lin Signed-off-by: goldsimon --- 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 b08dd3da..f29e9cf6 100644 --- a/src/core/ipv4/ip4_frag.c +++ b/src/core/ipv4/ip4_frag.c @@ -522,7 +522,7 @@ ip4_reass(struct pbuf *p) fraghdr = (struct ip_hdr *)p->payload; - if ((IPH_HL(fraghdr) * 4) != IP_HLEN) { + if (IPH_HL_BYTES(fraghdr) != IP_HLEN) { LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: IP options currently not supported!\n")); IPFRAG_STATS_INC(ip_frag.err); goto nullreturn;