#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”
 }
Code Listing 2: Additions to ns-lib.tcl file.