scapy.contrib.spbm¶
Example SPB Frame Creation
Note the outer Dot1Q Ethertype marking (0x88e7)
backboneEther = Ether(dst=’00:bb:00:00:90:00’, src=’00:bb:00:00:40:00’, type=0x8100) # noqa: E501 backboneDot1Q = Dot1Q(vlan=4051,type=0x88e7) backboneServiceID = SPBM(prio=1,isid=20011) customerEther = Ether(dst=’00:1b:4f:5e:ca:00’,src=’00:00:00:00:00:01’,type=0x8100) # noqa: E501 customerDot1Q = Dot1Q(prio=1,vlan=11,type=0x0800) customerIP = IP(src=’10.100.11.10’,dst=’10.100.12.10’,id=0x0629,len=106) # noqa: E501 customerUDP = UDP(sport=1024,dport=1025,chksum=0,len=86)
spb_example = backboneEther/backboneDot1Q/backboneServiceID/customerEther/customerDot1Q/customerIP/customerUDP/”Payload” # noqa: E501
-
class
scapy.contrib.spbm.
SPBM
(*args, **kargs)¶ Bases:
scapy.packet.Packet
-
aliastypes
¶
-
fields_desc
¶ Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PRIO|D|N|R|RES| ISID | +-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. SPBM
SPBM fields¶ prio
BitField
(3 bits)0
dei
BitField
(1 bit)0
nca
BitField
(1 bit)0
res1
BitField
(1 bit)0
res2
BitField
(2 bits)0
isid
0
-
mysummary
()¶
-