protocol number is a 16 bit unsigned integer
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 28 Jul 2007 13:20:47 +0200
changeset 996 3888206177b8
parent 995 22821dd9152e
child 997 d95ffcec6523
protocol number is a 16 bit unsigned integer
src/devices/point-to-point/point-to-point-net-device.cc
src/devices/point-to-point/point-to-point-net-device.h
--- a/src/devices/point-to-point/point-to-point-net-device.cc	Sat Jul 28 13:15:04 2007 +0200
+++ b/src/devices/point-to-point/point-to-point-net-device.cc	Sat Jul 28 13:20:47 2007 +0200
@@ -74,7 +74,7 @@
   p.AddHeader (llc);
 }
 
-bool PointToPointNetDevice::ProcessHeader(Packet& p, int& param)
+bool PointToPointNetDevice::ProcessHeader(Packet& p, uint16_t& param)
 {
   LlcSnapHeader llc;
   p.RemoveHeader (llc);
@@ -218,7 +218,7 @@
 void PointToPointNetDevice::Receive (Packet& p)
 {
   NS_DEBUG ("PointToPointNetDevice::Receive (" << &p << ")");
-  int param = 0;
+  uint16_t param = 0;
   Packet packet = p;
 
   ProcessHeader(packet, param);
--- a/src/devices/point-to-point/point-to-point-net-device.h	Sat Jul 28 13:15:04 2007 +0200
+++ b/src/devices/point-to-point/point-to-point-net-device.h	Sat Jul 28 13:20:47 2007 +0200
@@ -198,7 +198,7 @@
    * \return Returns true if the packet should be forwarded up the
    * protocol stack.
    */
-  bool ProcessHeader(Packet& p, int& param);
+  bool ProcessHeader(Packet& p, uint16_t& param);
   /**
    * Send a Packet Down the Wire.
    *