protocol number is a 16 bit unsigned integer
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user