Neale Ranns | 2bc9402 | 2018-02-25 12:27:18 -0800 | [diff] [blame] | 1 | diff --git a/scapy/contrib/mpls.py b/scapy/contrib/mpls.py |
| 2 | index 8daddf2..a9dc7fe 100644 |
| 3 | --- a/scapy/contrib/mpls.py |
| 4 | +++ b/scapy/contrib/mpls.py |
| 5 | @@ -18,6 +18,7 @@ |
| 6 | from scapy.packet import Packet, bind_layers, Padding |
| 7 | from scapy.fields import BitField,ByteField |
| 8 | from scapy.layers.inet import IP |
| 9 | +from scapy.contrib.bier import BIER |
| 10 | from scapy.layers.inet6 import IPv6 |
| 11 | from scapy.layers.l2 import Ether, GRE |
| 12 | from scapy.compat import orb |
| 13 | @@ -36,6 +37,8 @@ class MPLS(Packet): |
| 14 | ip_version = (orb(payload[0]) >> 4) & 0xF |
| 15 | if ip_version == 4: |
| 16 | return IP |
| 17 | + elif ip_version == 5: |
| 18 | + return BIER |
| 19 | elif ip_version == 6: |
| 20 | return IPv6 |
| 21 | return Padding |