blob: 2a8fc84b1c4b6a33bf103b44490217e2461ba707 [file] [log] [blame]
Neale Ranns2bc94022018-02-25 12:27:18 -08001diff --git a/scapy/contrib/mpls.py b/scapy/contrib/mpls.py
2index 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