found reason for 0.0.0.0 IPs in logs: IcmpPingers are created without IP but register...
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 30 Apr 2015 16:09:07 +0000 (18:09 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 4 May 2015 14:57:59 +0000 (16:57 +0200)
adjust log message, should probably remove debug output some time

src/icmp/icmppinger.cpp

index c9ee1b2..788e44b 100644 (file)
@@ -299,6 +299,14 @@ bool IcmpPinger::handle_receive_icmp_packet(const IcmpPacketItem icmp_packet,
            << endl;
         return does_match;
     }
+    else if ( DestinationEndpoint.address() == address() )
+    {   // we have no IP set yet
+        GlobalLogger.debug()
+           << DestinationEndpoint.address().to_string()
+           << ": Not interested in packets since have no Destination yet"
+           << endl;
+        return does_match;
+    }
 
     // We can receive all ICMP packets received by the host, so we need to
     // filter out only the echo replies that match our identifier,