ip4_reass: Use IPH_HL_BYTES instead of open coded

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
Axel Lin 2017-12-13 16:35:00 +08:00 committed by goldsimon
parent 4c90858482
commit 892e30d8c1

View File

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