protocol number is a 16 bit unsigned integer

This commit is contained in:
Mathieu Lacage
2007-07-28 13:20:47 +02:00
parent 7b0e63b123
commit 14404dff66
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ void PointToPointNetDevice::AddHeader(Packet& p, const MacAddress& dest,
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::AddQueue (Ptr<Queue> q)
void PointToPointNetDevice::Receive (Packet& p)
{
NS_DEBUG ("PointToPointNetDevice::Receive (" << &p << ")");
int param = 0;
uint16_t param = 0;
Packet packet = p;
ProcessHeader(packet, param);

View File

@@ -198,7 +198,7 @@ private:
* \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.
*