ip: Fixes for IPv6 and MPLS fragmentation 44/35544/7
authorNeale Ranns <neale@graphiant.com>
Fri, 4 Mar 2022 11:45:41 +0000 (11:45 +0000)
committerNeale Ranns <neale@graphiant.com>
Mon, 7 Mar 2022 09:02:01 +0000 (09:02 +0000)
commitec5371e3e31b7860d6b3996fd10420566a4377f2
tree13c540d79e88d940e35e776b8c288d2642ce1ea5
parent7e721954d4ea31a26ad44872acc199c91b9595e6
ip: Fixes for IPv6 and MPLS fragmentation

Type: fix

- IPv6 fragmentation did not work if the packet spaneed multiple buffers, because the 'len' calculation to did max out at the size of a buffer
- IPv6 fragmentation did not work when the l2unfragmentable size was non-zero, it was not used in the correct places
- IPv6oMPLS fragmentation would fragment all IPv6, it should do so only for link local
- IPv6oMPLS should send back TooBig ICMP6 for non locally generated

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: Ie8f02cdfdd7b7e8474e62b6d0acda8f20c371184
src/vnet/ip/ip_frag.c
src/vnet/mpls/mpls_output.c
test/test_ip6.py
test/test_ipip.py
test/test_mpls.py