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:
@ -1326,8 +1326,7 @@ class TestIPv6Reassembly(VppTestCase):
|
||||
packets = self.dst_if.get_capture(
|
||||
len(self.pkt_infos) - len(dropped_packet_indexes))
|
||||
self.verify_capture(packets, dropped_packet_indexes)
|
||||
pkts = self.src_if.get_capture(
|
||||
expected_count=len(dropped_packet_indexes))
|
||||
pkts = self.src_if._get_capture(1)
|
||||
for icmp in pkts:
|
||||
self.assertIn(ICMPv6TimeExceeded, icmp)
|
||||
self.assertIn(IPv6ExtHdrFragment, icmp)
|
||||
@ -1372,8 +1371,7 @@ class TestIPv6Reassembly(VppTestCase):
|
||||
packets = self.dst_if.get_capture(
|
||||
len(self.pkt_infos) - len(dropped_packet_indexes))
|
||||
self.verify_capture(packets, dropped_packet_indexes)
|
||||
pkts = self.src_if.get_capture(
|
||||
expected_count=len(dropped_packet_indexes))
|
||||
pkts = self.src_if._get_capture(1)
|
||||
for icmp in pkts:
|
||||
self.assertIn(ICMPv6TimeExceeded, icmp)
|
||||
self.assertIn(IPv6ExtHdrFragment, icmp)
|
||||
|
Reference in New Issue
Block a user