bug 1308: Nix-vector; do not process packets to self
authorJohn Abraham <john.abraham.in@gmail.com>
Thu, 19 Jul 2012 13:01:30 -0700
changeset 8900 c2649ef48eaa
parent 8899 421d06795f6e
child 8901 d789057cbec0
bug 1308: Nix-vector; do not process packets to self
src/nix-vector-routing/model/ipv4-nix-vector-routing.cc
--- a/src/nix-vector-routing/model/ipv4-nix-vector-routing.cc	Thu Jul 19 10:07:08 2012 -0700
+++ b/src/nix-vector-routing/model/ipv4-nix-vector-routing.cc	Thu Jul 19 13:01:30 2012 -0700
@@ -136,12 +136,11 @@
     }
 
   // if source == dest, then we have a special case
-  // because the node is sending to itself.  have to
-  // build the nix vector a little differently
+  // Do not process packets to self (see bug 1308)
   if (source == destNode)
     {
-      BuildNixVectorLocal (nixVector);
-      return nixVector;
+      NS_LOG_DEBUG ("Do not processs packets to self");
+      return 0;
     }
   else
     {