bug fix: main-packet-header.cc does not print the packet
authorAshim Ghosh <ashim.atiit@gmail.com>
Tue, 15 May 2012 16:02:26 -0700
changeset 8759 dd8eb902cba7
parent 8758 125866c49570
child 8760 8ccb0c2badc1
bug fix: main-packet-header.cc does not print the packet
src/network/examples/main-packet-header.cc
--- a/src/network/examples/main-packet-header.cc	Tue May 15 15:53:20 2012 +0100
+++ b/src/network/examples/main-packet-header.cc	Tue May 15 16:02:26 2012 -0700
@@ -100,6 +100,9 @@
 
 int main (int argc, char *argv[])
 {
+  // Enable the packet printing through Packet::Print command.
+  Packet::EnablePrinting ();
+
   // instantiate a header.
   MyHeader sourceHeader;
   sourceHeader.SetData (2);