// TODO move to an init method
protocol_string_map[ "ICMP" ] = PingProtocol_ICMP;
+ protocol_string_map[ "ICMPV4" ] = PingProtocol_ICMP;
protocol_string_map[ "ICMPV6" ] = PingProtocol_ICMPv6;
protocol_string_map[ "TCP" ] = PingProtocol_TCP;
+ protocol_string_map[ "TCP_IPV4" ] = PingProtocol_TCP;
protocol_string_map[ "TCP_IPV6" ] = PingProtocol_TCP_IPv6;
+ protocol_string_map[ "TCPV4" ] = PingProtocol_TCP;
+ protocol_string_map[ "TCPV6" ] = PingProtocol_TCP_IPv6;
PingProtocol protocol = protocol_string_map[ protocol_uppercase_string ];
if ( (*first)->long_name() == option_to_find ) {
return true;
}
- first++;
+ ++first;
}
return false;
}
hosts_names.push_back( "www.kernel.org" );
hosts_ports.push_back( 64 );
hosts_source_interfaces.push_back( "eth5" );
- hosts_ping_protocols.push_back( "TCP,ICMP" );
+ hosts_ping_protocols.push_back( "TCP_IPv4,ICMPv4" );
hosts_intervals.push_back( 75 );
// host 6
hosts_names.push_back( "www.linux.com" );