HOWTOs: Difference between revisions

From Nsnam
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
== Developers' Pages ==
== Developers' Pages ==
* [http://gicl.cs.drexel.edu/people/tjkopena/wiki/pmwiki.php?n=NS3.NS3 Joseph Kopena's ns-3 wiki]
* [http://gicl.cs.drexel.edu/people/tjkopena/wiki/pmwiki.php?n=NS3.NS3 Joseph Kopena's ns-3 wiki]
== Extracting IP src/dst header ==
Q.  What is the appropriate way to extract the ip src/dst address from a packet?
A. 
  // copy packet to avoid modifying the original packet
  Ptr<Packet> copy = p->Copy ();
  Ipv4Header iph;
  copy->RemoveHeader (iph);
  // copy will disappear when you are done with it.
l

Revision as of 23:35, 5 August 2008