From 5c6dd17a373a2c56e57f02426d66a79af7faa19c Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 17 Feb 2022 09:08:47 +0000 Subject: ip: rate-limit the sending of ICMP error messages Type: improvement For error conditions, such as TTL expired, dest unreach, etc, Rate limit the sending of ICMP error messages. The rate limiting is done based on src,dst IP address of the received packet. the rate limit has been chosen, somewhat arbitrarily, to be 1e-3. This is the same limit as the ARP throttling. Signed-off-by: Neale Ranns Change-Id: I4a0b791cde8c941a9bf37de6aa5da56779d3cef4 --- test/test_gso.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_gso.py') diff --git a/test/test_gso.py b/test/test_gso.py index 695ec5ef2a7..ee676a41c4a 100644 --- a/test/test_gso.py +++ b/test/test_gso.py @@ -279,7 +279,7 @@ class TestGSO(VppTestCase): TCP(sport=1234, dport=1234) / Raw(b'\xa5' * 65200)) - rxs = self.send_and_expect(self.pg2, 5*[p63], self.pg2, 5) + rxs = self.send_and_expect_some(self.pg2, 5*[p63], self.pg2, 5) for rx in rxs: self.assertEqual(rx[Ether].src, self.pg2.local_mac) self.assertEqual(rx[Ether].dst, self.pg2.remote_mac) -- cgit 1.2.3-korg