the protocol number field is a 16 bit integer, not a 32 bit integer
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 24 Aug 2007 10:33:58 +0200
changeset 1292 85a0ebaad0a1
parent 1291 c142db083c11
child 1293 a6761bd6b649
the protocol number field is a 16 bit integer, not a 32 bit integer
src/node/net-device.cc
src/node/net-device.h
--- a/src/node/net-device.cc	Fri Aug 24 10:32:35 2007 +0200
+++ b/src/node/net-device.cc	Fri Aug 24 10:33:58 2007 +0200
@@ -197,7 +197,7 @@
 
 // Receive packets from below
 bool
-NetDevice::ForwardUp(const Packet& p, uint32_t param, const Address &from)
+NetDevice::ForwardUp(const Packet& p, uint16_t param, const Address &from)
 {
   bool retval = false;
 
--- a/src/node/net-device.h	Fri Aug 24 10:32:35 2007 +0200
+++ b/src/node/net-device.h	Fri Aug 24 10:33:58 2007 +0200
@@ -251,7 +251,7 @@
    * forwards it to the higher layers by calling this method
    * which is responsible for passing it up to the Rx callback.
    */
-  bool ForwardUp (const Packet& p, uint32_t param, const Address &address);
+  bool ForwardUp (const Packet& p, uint16_t param, const Address &address);
 
 
   /**