now working again: creating echo requests and parsing replies
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 12 Mar 2015 14:51:58 +0000 (15:51 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 12 Mar 2015 14:51:58 +0000 (15:51 +0100)
commit747c13ca81bcbe99efd27c27ef97c93261357518
treedff9ba2763fda870e559d05b873e772a8c6c9f8f
parentc120ad42aad7195aca9ac197c0636dd124e19263
now working again: creating echo requests and parsing replies

also:
* created a to_string method for easier output
* in constructors of IP headers set version right away
* compare that version to the one received in IcmpPacket::read
12 files changed:
src/host/messagepayload.cpp
src/icmp/icmpdata.h
src/icmp/icmpechodata.h
src/icmp/icmpheader.h
src/icmp/icmppacket.cpp
src/icmp/icmppacket.h
src/icmp/icmppacketfactory.cpp
src/icmp/icmppinger.cpp
src/ip/ipheader.h
src/ip/ipv4header.cpp
src/ip/ipv6header.cpp
src/main.cpp