Bugzilla – Bug 1359
TCP sockets can not receive ICMP notifications
Last modified: 2012-09-27 13:33:25 UTC
TCP sockets can not receive ICMP notifications (useful for applications) due to the missing function(s): ReceiveIcmp (Ipv4Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo, Ipv4Address payloadSource,Ipv4Address payloadDestination, const uint8_t payload[8]) I don't know if it's useful to have it, but I don't see why not. The feature will be more useful for IPv6, in order to properly handle MTU exceeded packets (still to be done tho). Opening a bug as a proposed enhancement to not forget about it. T.
Created attachment 1360 [details] Add TCP functions to receive ICMP notifications from Layer3 Preliminary support, untested (should work tho). It's a copy.paste from UDP socket, so if it's bugged this, we have an issue as well,
Also needed code in tcp-l4-protocol.cc/.h to call these functions. Fixed: 9095:8462a1160246