Hi guys, >> 5. So icmp_error_reply(...) should generate the response datagram and > use send_data() to reply to the target >> protocol? What's more, here we face the IP header missing problem. I > want to confirm this: are we going to add >> an extra ipv4_header field in the net_buffer struct? And will this bring > any side-effect? > > If it's not possible to rebuild the header on the fly, there is probably > little else we can do about this. So even if we might come up with a better > idea later, I think you should just do that now -- but since the net_buffer > is protocol agnostic, it must be a void* pointer, it cannot be a real > struct inside; maybe only remember those values that you need to rebuild > the header again. Another solution would be that IPv4 module (and any other domain "root" protocol) keep a cache of recent headers... - Philippe