vnet: fix ip4 version and IHL check 35/37135/6
authorDmitry Valter <[email protected]>
Fri, 16 Sep 2022 12:33:25 +0000 (12:33 +0000)
committerBeno�t Ganne <[email protected]>
Tue, 27 Sep 2022 14:25:05 +0000 (14:25 +0000)
commitd9252468792d52373b7cab1b66eda5fe279f7cb5
treec82492e6fbe2bf4aee0a528e5e21d9eab974c614
parent522a5b33321ea198fe73f3180a692c316c63575f
vnet: fix ip4 version and IHL check

Validate version and IHL regardless of present options.
Originally VPP would accept seriously damaged headers in case IHL != 5.

Type: fix
Signed-off-by: Dmitry Valter <[email protected]>
Change-Id: Ifd59622efa63dfad7f6e4858dec40ccac3274574
src/vnet/ip/ip.api
src/vnet/ip/ip4_input.h