extended ICMP packet dumping to parts after packet creation
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 20 May 2015 10:38:16 +0000 (12:38 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 20 May 2015 10:38:16 +0000 (12:38 +0200)
commit6d80c0be66256aec2e29ca8e6d16c09cfe926257
treec672574780b83a19bbf37a0bd9f040cabace1be9
parentf636ba88fed5f97e023880f30d134b78e1081c0c
extended ICMP packet dumping to parts after packet creation

in detail:
* in IcmpPinger::handle_receive_icmp_packet, may get exceptions from boost assertions
  in to_string and print and match_xy functions --> put into a try-catch
* created a dump_packet(packet) and moved dump_packet functions into IcmpPacketFactory
* to dump an IcmpPacket, need to also dump its IP header --> created IpHeader::write
* for this moved the Payload variable from Ipv4/6Header to IpHeader super class
* during testing in feed_packet_data, add skipped byte size to log output
17 files changed:
src/icmp/icmpdata_pingfailreply.cpp
src/icmp/icmpechodata.cpp
src/icmp/icmpechodata.h
src/icmp/icmppacket.cpp
src/icmp/icmppacket.h
src/icmp/icmppacketfactory.cpp
src/icmp/icmppacketfactory.h
src/icmp/icmppinger.cpp
src/ip/ipheader.cpp
src/ip/ipheader.h
src/ip/ipv4header.cpp
src/ip/ipv4header.h
src/ip/ipv6header.cpp
src/ip/ipv6header.h
src/tools/feed_packet_data.cpp
src/tools/pcap.cpp
src/tools/pcap.h