diff options
author | Ole Troan <ot@cisco.com> | 2018-09-19 12:38:51 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-09-27 08:47:40 +0000 |
commit | 282093f1fe783b5d36a014d4495995cd64e2e3fb (patch) | |
tree | 09e6536da14c262d33991383e408b2c35d361b4a /test/test_mtu.py | |
parent | e23edac38ec239115689fe252b4b41a3556f6280 (diff) |
IPIP and IPv6 fragmentation
- Error where ICMPv6 error code doesn't reset VLIB_TX = -1
Leading to crash for ICMP generated on tunnelled packets
- Missed setting VNET_BUFFER_F_LOCALLY_ORIGINATED, so
IP in IPv6 packets never got fragmented.
- Add support for fragmentation of buffer chains.
- Remove support for inner fragmentation in frag code itself.
Change-Id: If9a97301b7e35ca97ffa5c0fada2b9e7e7dbfb27
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/test_mtu.py')
-rw-r--r-- | test/test_mtu.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_mtu.py b/test/test_mtu.py index a70d5135c17..e9b4ffed9c1 100644 --- a/test/test_mtu.py +++ b/test/test_mtu.py @@ -188,16 +188,16 @@ class TestMTU(VppTestCase): p_icmp6 = ICMPv6PacketTooBig(mtu=1280, cksum=0x4c7a) icmp6_reply = (IPv6(src=self.pg0.local_ip6, dst=self.pg0.remote_ip6, - hlim=254, plen=1240) / + hlim=255, plen=1240) / p_icmp6 / p_ip6 / p_payload) icmp6_reply[2].hlim -= 1 n = icmp6_reply.__class__(str(icmp6_reply)) s = str(icmp6_reply) - icmp6_reply = s[0:1280] + icmp6_reply_str = s[0:1280] rx = self.send_and_expect(self.pg0, p6*9, self.pg0) for p in rx: - self.validate_bytes(str(p[1]), icmp6_reply) + self.validate_bytes(str(p[1]), icmp6_reply_str) # Reset MTU self.vapi.sw_interface_set_mtu(self.pg1.sw_if_index, |