|
Bugzilla – Full Text Bug Listing |
| Summary: | PointToPointNetDevice MPLS support | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Andrey Churin <aachurin> |
| Component: | point-to-point | Assignee: | ns-bugs <ns-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | aachurin, tomh |
| Priority: | P5 | ||
| Version: | ns-3.7 | ||
| Hardware: | All | ||
| OS: | All | ||
Is there MPLS support in development for this? (In reply to comment #1) > Is there MPLS support in development for this? Yes, in progress. http://code.google.com/p/ns3-mpls/ |
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; }