mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-26 16:12:55 +00:00
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:
parent
4c90858482
commit
892e30d8c1
@ -522,7 +522,7 @@ ip4_reass(struct pbuf *p)
|
|||||||
|
|
||||||
fraghdr = (struct ip_hdr *)p->payload;
|
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"));
|
LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: IP options currently not supported!\n"));
|
||||||
IPFRAG_STATS_INC(ip_frag.err);
|
IPFRAG_STATS_INC(ip_frag.err);
|
||||||
goto nullreturn;
|
goto nullreturn;
|
||||||
|
Loading…
Reference in New Issue
Block a user