{
if ( !NetInterface.bind() )
{
- GlobalLogger.error() << "Error: could not bind the socket "
- << "with the local interface. " << ::strerror( errno ) << endl;
+ GlobalLogger.error() << "Error: could not bind the socket with the local interface. "
+ << ::strerror( errno ) << endl;
}
// Create "unique" identifier
}
catch ( const exception &ex )
{
- GlobalLogger.error() << "Error: fail sending ping data. "
- << ex.what() << endl;
+ GlobalLogger.error() << "Error: fail sending ping data. " << ex.what() << endl;
}
schedule_timeout_echo_reply();
IcmpPacketItem icmp_packet = IcmpPacketFactory::create_icmp_packet( Protocol, is );
if ( !icmp_packet )
{
- GlobalLogger.notice() << "Warning: ignoring broken ICMP packet"
- << endl;
+ GlobalLogger.notice() << "Warning: ignoring broken ICMP packet" << endl;
return;
}
{
if ( !NetInterface.bind() )
{
- GlobalLogger.error() << "Error: could not bind the socket "
- "with the local interface. " << ::strerror( errno ) << endl;
+ GlobalLogger.error() << "Error: could not bind the socket with the local interface. "
+ << ::strerror( errno ) << endl;
}
// Create "unique" identifier
}
catch ( const exception &ex )
{
- GlobalLogger.error() << "Error: fail sending ping data. "
- << ex.what() << endl;
+ GlobalLogger.error() << "Error: fail sending ping data. " << ex.what() << endl;
}
// Tell how long to wait for the reply