fixed bug in match_destination_unreachable: message does not have to come from origin...
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 19 Mar 2015 17:30:00 +0000 (18:30 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 19 Mar 2015 17:30:00 +0000 (18:30 +0100)
commit81c265174b87bf78b8f71b6b2959e1b78f338992
treedbd84c096aa8618ff9c0b7907a68f8375b91f5eb
parent394a05374ab1d85d9335099618f4ffb137330d5d
fixed bug in match_destination_unreachable: message does not have to come from original destination

that means we have to interpret the ip header within the icmp data, which is done by converting
IcmpData::raw_data to a stream which is fed to IpvXHeader.read
Also means that address to test for has to be forwarded to IcmpDestinationUnreachableData
and cannot be simply tested in IcmpData already --> change function prototype in all IcmpData classes
src/icmp/icmpdata.cpp
src/icmp/icmpdata.h
src/icmp/icmpdestinationunreachabledata.cpp
src/icmp/icmpdestinationunreachabledata.h
src/icmp/icmpechodata.cpp
src/icmp/icmpechodata.h
src/icmp/icmppacket.cpp
src/icmp/icmptimeexceededdata.cpp
src/icmp/icmptimeexceededdata.h
test/CMakeLists.test_icmpv4header.txt
test/CMakeLists.test_icmpv6header.txt