[ns] How to simulate a smurf attack?

2007-05-10 Thread sanjianbao1985

Dear all,Later I want to simulate a smurf attack and there are two 
problems.(1)The attack node send a ping packet what's source address is 
other node's.So it is forgerying IP address.   (2)Can a Agent connect mang 
Agent?There is a wrong when I do it.Such as:ping start-WL-brdcast, 
and then,--- Classfier::no-slot{} default handler (tcl渂/ns-lib.tcl) ---
_o12: no target for slot -1
   _o12 type: Classifier/Hash/Dest
content dump:
classifier _o12
0 offset
0 shift
2147483647 mask
1 slots
slot 0: _o920 (Classifier/Port)
-1 default
-- Finished standard no-slot{} default handler --
 Thank you very much!  

Re: [ns] How to set the Source address of the packet in TCL?

2007-05-09 Thread sanjianbao1985

 Dear all,
I want to write a TCL Script to simulate a Smurf attack.
   First,I must let the attack node send a ping packet with the attacked 
node'address.
 Is there a method and how?
   Thank you very much!