blob: 30b27e8542fdf10da27c4fe01c36fc753fc4bbb5 [file] [log] [blame]
suibin zhangd0f09b32016-03-29 00:57:57 -07001import scapy
2
3class 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 ]