scapy.contrib.spbm

SPB帧创建示例

注意外部Dot1Q Ethertype标记(0x88e7)

又如:noqa:E501-E501-E501-00:00:00:00:90:00 00,src='00:bb:00:00:00:40:00:00',类型=0x8100 0 0;又无需再加上noqa:E5011 Backonedot1Q=Dot1Q(vlan=4051,type=0x88e7)BackoneServiceID=SPBM(prio=1,isid=20011 11)customerEther=乙醚(dst='00:1b:4f:5e:ca:ca:00:00:00:00:00:00:00:00:00:00:01',类型=0x8100 0)的同时,noqa:E501客户E501 CustomNoQA:E501客户E501客户E501:E501客户之间erdot1q=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/“有效载荷”#noqa:E501

class scapy.contrib.spbm.SPBM(*args, **kargs)[源代码]

基类:scapy.base_classes.Gen[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字段

prio

BitField (3位)

0

dei

BitField (1位)

0

nca

BitField (1位)

0

res1

BitField (1位)

0

res2

BitField (2位)

0

isid

ThreeBytesField

0

mysummary()[源代码]
payload_guess

可能的子层: Ether