Fix: the boolean logic was inverted.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Thu, 29 Mar 2012 01:46:43 +0000 (22:46 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Thu, 29 Mar 2012 01:46:43 +0000 (22:46 -0300)
commit0aa3b99f422bd58018d8060e0cfa8ec9127b81d4
tree8774672b8df4321c4c163ac5aecca1370b55dcd9
parent0a670586c7c89fffa916f5b2d0ab54a74be527b5
Fix: the boolean logic was inverted.
- When fail() returns false, the read() and write() methods should return true;
- This avoids the annoying "Error: Could not read ICMP packet" and "Error: could not read TCP Segment." messages.
src/icmp/icmpv4packet.cpp
src/icmp/icmpv6packet.cpp
src/tcp/tcpipv4segment.cpp
src/tcp/tcpipv6segment.cpp