GlennRC | 956ea74 | 2015-11-05 16:14:15 -0800 | [diff] [blame] | 1 | import scapy |
2 | |||||
3 | class MPLS(Packet): | ||||
4 | name = "MPLS" | ||||
5 | fields_desc = [ | ||||
6 | BitField("label", 3, 20), | ||||
7 | BitField("experimental_bits", 0, 3), | ||||
8 | BitField("bottom_of_label_stack", 1, 1), # Now we're at the bottom | ||||
9 | ByteField("TTL", 255) | ||||
10 | ] |