//-----------------------------------------------------------------------------
 
 bool dump_broken_packets = true;
+bool dump_all_packets = false;
 
 /**
  * @brief Creates an ICMP packet from the input stream @c std::istream.
     stringbuf data_backup;
 
     // read packet from stream, possibly copying data first
-    if (dump_broken_packets)
+    if (dump_broken_packets | dump_all_packets)
     {
         // read all data into backup
         ostream backup_filler(&data_backup);
     }
 
     // dump data if had trouble with packet
-    if (dump_broken_packets && !icmp_packet)
+    if ( (dump_broken_packets && !icmp_packet) | dump_all_packets )
         dump_packet(data_backup.str());
 
     return icmp_packet;