protocol number is a 16 bit unsigned integer
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 28 Jul 2007 13:20:47 +0200
changeset 9963888206177b8
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
     1.1 --- a/src/devices/point-to-point/point-to-point-net-device.cc	Sat Jul 28 13:15:04 2007 +0200
     1.2 +++ b/src/devices/point-to-point/point-to-point-net-device.cc	Sat Jul 28 13:20:47 2007 +0200
     1.3 @@ -74,7 +74,7 @@
     1.4    p.AddHeader (llc);
     1.5  }
     1.6  
     1.7 -bool PointToPointNetDevice::ProcessHeader(Packet& p, int& param)
     1.8 +bool PointToPointNetDevice::ProcessHeader(Packet& p, uint16_t& param)
     1.9  {
    1.10    LlcSnapHeader llc;
    1.11    p.RemoveHeader (llc);
    1.12 @@ -218,7 +218,7 @@
    1.13  void PointToPointNetDevice::Receive (Packet& p)
    1.14  {
    1.15    NS_DEBUG ("PointToPointNetDevice::Receive (" << &p << ")");
    1.16 -  int param = 0;
    1.17 +  uint16_t param = 0;
    1.18    Packet packet = p;
    1.19  
    1.20    ProcessHeader(packet, param);
     2.1 --- a/src/devices/point-to-point/point-to-point-net-device.h	Sat Jul 28 13:15:04 2007 +0200
     2.2 +++ b/src/devices/point-to-point/point-to-point-net-device.h	Sat Jul 28 13:20:47 2007 +0200
     2.3 @@ -198,7 +198,7 @@
     2.4     * \return Returns true if the packet should be forwarded up the
     2.5     * protocol stack.
     2.6     */
     2.7 -  bool ProcessHeader(Packet& p, int& param);
     2.8 +  bool ProcessHeader(Packet& p, uint16_t& param);
     2.9    /**
    2.10     * Send a Packet Down the Wire.
    2.11     *