Research Article

Detection and Prevention of Man-in-the-Middle Spoofing Attacks in MANETs Using Predictive Techniques in Artificial Neural Networks (ANN)

Code Listing 2

Additions to ns-lib.tcl file.
#PNB: a hack to satisfy the procedure node’s call to man-in-the-middle attack on using modified aodv protocol
 AODV_MITM {
  set ragent [$self create-aodvmitm-agent $node]
 }
 DSDV {
  set ragent [$self create-dsdv-agent $node]
 }
 DSR {
  $self at 0.0 “$node start-dsr”
 }