[Click] Packets from system and ICMPError

Bart Braem bart.braem at ua.ac.be
Wed Oct 27 08:33:57 EDT 2004


Hello,

I'm using nsclick for AODV simulation but this gives problems when using 
ICMPError:
The packets I receive from the SimDevice come from the system so don't have 
ethernet headers, but ICMPError expects ethernet headers. Currently it get's 
IP packets, thinks they are broadcast messages so doesn't reply.
How can I solve that?
I thought of 2 solutions:
- Encapsulating the packets from the system in ethernet headers, but that 
raises the question what the ethernet destination is and which element to use 
(because my IP identifier must be unique compared to UDPIPEncap).
- Pulling fake packets from an InfiniteSource, changing their ip_src fields 
and then feeding those to ICMPError. That raises problems because ICMPError 
includes the original packet in it's payload and the receiver might be 
confused.

Do you have any ideas? I know FromHost is easier in this case but that doesn't 
allow me to simulate in ns...

Thanks for your help
Bart


More information about the click mailing list