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 <neale@graphiant.com> Change-Id: I4a0b791cde8c941a9bf37de6aa5da56779d3cef4
This commit is contained in:
@ -1352,6 +1352,17 @@ class VppTestCase(CPUInterface, unittest.TestCase):
|
||||
self.logger.debug(self.vapi.cli("show trace"))
|
||||
return rxs
|
||||
|
||||
def send_and_expect_some(self, intf, pkts, output,
|
||||
worker=None,
|
||||
trace=True):
|
||||
self.pg_send(intf, pkts, worker=worker, trace=trace)
|
||||
rx = output._get_capture(1)
|
||||
if trace:
|
||||
self.logger.debug(self.vapi.cli("show trace"))
|
||||
self.assertTrue(len(rx) > 0)
|
||||
self.assertTrue(len(rx) < len(pkts))
|
||||
return rx
|
||||
|
||||
def send_and_expect_only(self, intf, pkts, output, timeout=None,
|
||||
stats_diff=None):
|
||||
if stats_diff:
|
||||
|
Reference in New Issue
Block a user