[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Using Raw IP in emulator



Hello all,
 
I have succeeded in compiling nse on FreeBSD 4.2 and all seems to work just fine.
Now I have a question on raw-ip ports.
I want to achieve the following.
I want to connect two nodes with eachother. n2 will be connected to a CBR source and n1 to a raw ip object.
The traffic should then be sent on the real network to another machine with ip 10.0.0.2. So graphically:
 
n2----------------n1 - - - - - - - - - - - - 10.0.0.2
CBR            Network/IP
 
How can I achieve this? I have looked at the examples but that are mostly opposite situations where the ip sockets forward traffic which has been recieved by a PCAP agent.
But I don't want to use captured traffic. I want to generate my own, which leaves me puzzled. How can I set the destination IP-address of the CBR traffic?
 
Any help would be greatly appreciated.
 
Best regards,
 
Mark Janssen