]> git.baikalelectronics.ru Git - uboot.git/commit
net: improve check for no IP options
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 14 Oct 2022 17:43:37 +0000 (19:43 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 28 Nov 2022 15:25:18 +0000 (10:25 -0500)
commit13f5f53bfd2e087d6a5fdadbe915fa28eb198118
tree8a2d0355d1bdea64b604cf0af897bdfc321ae281
parent7867b785c373c345790a9c870a196fefa08cb750
net: improve check for no IP options

There's no reason we should accept an IP packet with a malformed IHL
field. So ensure that it is exactly 5, not just <= 5.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
net/net.c