Bug 851 - PointToPointNetDevice MPLS support
PointToPointNetDevice MPLS support
Status: NEW
Product: ns-3
Classification: Unclassified
Component: point-to-point
ns-3.7
All All
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-28 15:03 EDT by Andrey Churin
Modified: 2016-03-30 20:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Churin 2010-03-28 15:03:18 EDT
PointToPointNetDevice not supports MPLS

  uint16_t
PointToPointNetDevice::PppToEther(uint16_t proto)
{
  switch(proto)
    {
      case 0x0021: return 0x0800; //IPv4
      case 0x0057: return 0x86DD; //IPv6
      case 0x0281: return 0x8847; //+ MPLS unicast 
      case 0x0283: return 0x8848; //+ MPLS multicast 
      default: NS_ASSERT_MSG(false, "PPP Protocol number not defined!");
    }
  return 0;
}

  uint16_t
PointToPointNetDevice::EtherToPpp(uint16_t proto)
{
  switch(proto)
    {
      case 0x0800: return 0x0021; //IPv4
      case 0x86DD: return 0x0057; //IPv6
      case 0x8847: return 0x0281; //+ MPLS unicast
      case 0x8848: return 0x0283; //+ MPLS multicast 
      default: NS_ASSERT_MSG(false, "PPP Protocol number not defined!");
    }
  return 0;
}
Comment 1 Tom Henderson 2010-03-28 23:59:33 EDT
Is there MPLS support in development for this?
Comment 2 Andrey Churin 2010-03-29 06:07:14 EDT
(In reply to comment #1)
> Is there MPLS support in development for this?

Yes, in progress. http://code.google.com/p/ns3-mpls/