ip: fix port extraction 31/41731/4
authorKlement Sekera <[email protected]>
Wed, 23 Oct 2024 17:05:17 +0000 (19:05 +0200)
committerMatthew Smith <[email protected]>
Wed, 23 Oct 2024 20:58:15 +0000 (20:58 +0000)
commit602d11019bf76e8f4ad73b4b928bbf4ac3becfdc
treebc4b9313daab7f1849d93b7508d50fe838e448c0
parent3d5670302755ffab3907826cd5afd31e411c1b87
ip: fix port extraction

Replace a hard-coded constant of 64 with 56, which is a more appropriate
value for when ICMP echo request is returned in ICMP error. Previously,
the size of such message would be smaller than 64 and parsing would not
return the correct value.

Type: fix
Change-Id: I1bdf8a2a23b1e6762b64210c71927c926f4547ad
Signed-off-by: Klement Sekera <[email protected]>
src/vnet/ip/ip4_to_ip6.h