Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(695)

Unified Diff: doc/tutorial/building-topologies.texi

Issue 196058: Redo ASCII and pcap Traces
Patch Set: Created 14 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: doc/tutorial/building-topologies.texi
===================================================================
--- a/doc/tutorial/building-topologies.texi
+++ b/doc/tutorial/building-topologies.texi
@@ -316,8 +316,8 @@
you haven't encountered yet.
@verbatim
- PointToPointHelper::EnablePcapAll ("second");
- CsmaHelper::EnablePcap ("second", csmaDevices.Get (1), true);
+ pointToPoint.EnablePcapAll ("second");
+ csma.EnablePcap ("second", csmaDevices.Get (1), true);
@end verbatim
The CSMA network is a multi-point-to-point network. This means that there
@@ -582,9 +582,9 @@
@code{EnablePcap} calls with the calls below.
@verbatim
- PointToPointHelper::EnablePcap ("second", p2pNodes.Get (0)->GetId (), 0);
- CsmaHelper::EnablePcap ("second", csmaNodes.Get (nCsma)->GetId (), 0, false);
- CsmaHelper::EnablePcap ("second", csmaNodes.Get (nCsma-1)->GetId (), 0, false);
+ pointToPoint.EnablePcap ("second", p2pNodes.Get (0)->GetId (), 0);
+ csma.EnablePcap ("second", csmaNodes.Get (nCsma)->GetId (), 0, false);
+ csma.EnablePcap ("second", csmaNodes.Get (nCsma-1)->GetId (), 0, false);
@end verbatim
We know that we want to create a pcap file with the base name "second" and
@@ -1082,9 +1082,9 @@
We create just enough tracing to cover all three networks:
@verbatim
- PointToPointHelper::EnablePcapAll ("third");
+ pointToPoint.EnablePcapAll ("third");
phy.EnablePcap ("third", apDevices.Get (0));
- CsmaHelper::EnablePcap ("third", csmaDevices.Get (0), true);
+ csma.EnablePcap ("third", csmaDevices.Get (0), true);
@end verbatim
These three lines of code will start pcap tracing on both of the point-to-point

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b