re-ordered class for IcmpPacket
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 12 Mar 2015 10:04:43 +0000 (11:04 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 12 Mar 2015 10:04:43 +0000 (11:04 +0100)
commitc120ad42aad7195aca9ac197c0636dd124e19263
tree9ee06200b74209ff1b7f6df162b628e6b6ab1f4f
parent7c3800544dfa59c656d9e32af3e5ff08fa0e3504
re-ordered class for IcmpPacket

old: IcmpPacket has and IpvXHeader, an IcmpvXHeader which varies according to ICMP message type and also contains part of Icmp message data, and an IcmpData which is a string;
new: IcmpPacket has an IpHeader, an IcmpHeader which represents only the common first 4 byte of ICMP v4/v6, and IcmpData which is either a IcmpEchoData for echo request/reply or a IcmpDestinationUnreachableData

tried to abstract away as much as possible (for a lay programmer like me) the difference between v4 and v6

This code now compiles, need to see whether it does anything usefull

Tests not compiled/run yet
27 files changed:
src/CMakeLists.txt
src/icmp/icmpdata.h
src/icmp/icmpdestinationunreachabledata.h [new file with mode: 0644]
src/icmp/icmpdestinationunreachablemessage.cpp [deleted file]
src/icmp/icmpdestinationunreachablemessage.h [deleted file]
src/icmp/icmpechodata.h [new file with mode: 0644]
src/icmp/icmpechoreplymessage.cpp [deleted file]
src/icmp/icmpechoreplymessage.h [deleted file]
src/icmp/icmpechorequestmessage.cpp [deleted file]
src/icmp/icmpechorequestmessage.h [deleted file]
src/icmp/icmpgenericmessage.cpp [deleted file]
src/icmp/icmpgenericmessage.h [deleted file]
src/icmp/icmpheader.h [new file with mode: 0644]
src/icmp/icmpmessage.cpp [deleted file]
src/icmp/icmpmessage.h [deleted file]
src/icmp/icmppacket.cpp
src/icmp/icmppacket.h
src/icmp/icmppacketfactory.cpp
src/icmp/icmppinger.cpp
src/icmp/icmpv4header.cpp [deleted file]
src/icmp/icmpv4header.h [deleted file]
src/icmp/icmpv4packet.cpp [deleted file]
src/icmp/icmpv4packet.h [deleted file]
src/icmp/icmpv6header.cpp [deleted file]
src/icmp/icmpv6header.h [deleted file]
src/icmp/icmpv6packet.cpp [deleted file]
src/icmp/icmpv6packet.h [deleted file]