Squashed commit of the following:
commit
a9a7be092a4d4a97fd53dc562e7b27c48ba0d7c6
Author: Maya Dagon <mdagon@cisco.com>
Date: Tue Jul 6 12:10:50 2021 -0400
packet_io: unreachable packets shouldn't be sent for ICMP
bool Active::is_unreachable_candidate(const Packet* p)
{
- // FIXIT-L allow unr to tcp/udp/icmp4/icmp6 only or for all
- switch ( p->type() )
- {
- case PktType::TCP:
- case PktType::UDP:
- return true;
-
- case PktType::ICMP:
- // FIXIT-L return false for icmp unreachables
+ if ( p->type() == PktType::TCP || p->type() == PktType::UDP)
return true;
- default:
- break;
- }
-
return false;
}