scapy.layers.inet6
IPv6 (Internet Protocol v6).
- class scapy.layers.inet6.AS_resolver6(server: str | None = None, port: int = 43, options: str | None = None)[源代码]
- class scapy.layers.inet6.CaptivePortalURI(name: str, default: bytes, length_from: Callable[[Packet], int] | None = None, max_length: Any | None = None)[源代码]
基类:
StrLenField
- class scapy.layers.inet6.DomainNameListField(name, default, length_from=None, padded=False)[源代码]
基类:
StrLenField
- islist = 1
- padded
- padded_unit = 8
- class scapy.layers.inet6.HAO(_pkt, /, *, otype=201, optlen=16, hoa='::')[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OPTLEN | HOA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. HAO
HAO fields otype
_OTypeField
201
optlen
16
hoa
'::'
- class scapy.layers.inet6.HBHOptUnknown(_pkt, /, *, otype=1, optlen=None, optdata=b'')[源代码]
基类:
Packet
- aliastypes
- alignment_delta(curpos)[源代码]
As specified in section 4.2 of RFC 2460, every options has an alignment requirement usually expressed xn+y, meaning the Option Type must appear at an integer multiple of x octets from the start of the header, plus y octets.
That function is provided the current position from the start of the header and returns required padding length.
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OPTLEN | OPTDATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. HBHOptUnknown
HBHOptUnknown fields otype
_OTypeField
1
optlen
None
optdata
b''
- class scapy.layers.inet6.ICMPv6DestUnreach(_pkt, /, *, type=1, code=0, cksum=None, length=0, unused=0)[源代码]
基类:
_ICMPv6Error
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | UNUSED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ICMPv6DestUnreach
ICMPv6DestUnreach fields type
1
code
0
cksum
None
length
0
unused
0
- class scapy.layers.inet6.ICMPv6EchoReply(_pkt, /, *, type=129, code=0, cksum=None, id=0, seq=0, data=b'')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | SEQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6EchoReply
ICMPv6EchoReply fields type
129
code
0
cksum
None
id
0
seq
0
data
b''
- class scapy.layers.inet6.ICMPv6EchoRequest(_pkt, /, *, type=128, code=0, cksum=None, id=0, seq=0, data=b'')[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | SEQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6EchoRequest
ICMPv6EchoRequest fields type
128
code
0
cksum
None
id
0
seq
0
data
b''
- class scapy.layers.inet6.ICMPv6HAADReply(_pkt, /, *, type=145, code=0, cksum=None, id=None, R=1, res=0, addresses=[])[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID |R| RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRESSES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6HAADReply
ICMPv6HAADReply fields type
145
code
0
cksum
None
id
None
R
1
res
XBitField
(15 bits)0
addresses
[]
- class scapy.layers.inet6.ICMPv6HAADRequest(_pkt, /, *, type=144, code=0, cksum=None, id=None, R=1, res=0)[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID |R| RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6HAADRequest
ICMPv6HAADRequest fields type
144
code
0
cksum
None
id
None
R
1
res
XBitField
(15 bits)0
- class scapy.layers.inet6.ICMPv6MLDMultAddrRec(_pkt, /, *, rtype=4, auxdata_len=None, sources_number=None, dst='::', sources=[], auxdata=b'')[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTYPE | AUXDATA LEN | SOURCES NUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DST | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SOURCES | AUXDATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MLDMultAddrRec
ICMPv6MLDMultAddrRec fields rtype
4
auxdata_len
None
sources_number
None
dst
'::'
sources
[]
auxdata
b''
- class scapy.layers.inet6.ICMPv6MLDone(_pkt, /, *, type=132, code=0, cksum=None, mrd=0, reserved=0, mladdr='::')[源代码]
基类:
_ICMPv6ML
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MRD | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MLADDR | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MLDone
ICMPv6MLDone fields type
132
code
0
cksum
None
mrd
0
reserved
0
mladdr
'::'
- class scapy.layers.inet6.ICMPv6MLQuery(_pkt, /, *, type=130, code=0, cksum=None, mrd=10000, reserved=0, mladdr='::')[源代码]
基类:
_ICMPv6ML
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MRD | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MLADDR | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MLQuery
ICMPv6MLQuery fields type
130
code
0
cksum
None
mrd
10000
reserved
0
mladdr
'::'
- class scapy.layers.inet6.ICMPv6MLQuery2(_pkt, /, *, type=130, code=0, cksum=None, mrd=10000, reserved=0, mladdr='::', Resv=0, S=0, QRV=0, QQIC=0, sources_number=None, sources=[])[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MRD | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MLADDR | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESV |S| QRV | QQIC | SOURCES NUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SOURCES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MLQuery2
ICMPv6MLQuery2 fields type
130
code
0
cksum
None
mrd
10000
reserved
0
mladdr
'::'
Resv
BitField
(4 bits)0
S
BitField
(1 bit)0
QRV
BitField
(3 bits)0
QQIC
0
sources_number
None
sources
[]
- class scapy.layers.inet6.ICMPv6MLReport(_pkt, /, *, type=131, code=0, cksum=None, mrd=0, reserved=0, mladdr='::')[源代码]
基类:
_ICMPv6ML
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MRD | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MLADDR | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MLReport
ICMPv6MLReport fields type
131
code
0
cksum
None
mrd
0
reserved
0
mladdr
'::'
- class scapy.layers.inet6.ICMPv6MLReport2(_pkt, /, *, type=143, res=0, cksum=None, reserved=0, records_number=None, records=[])[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | RES | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | RECORDS NUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RECORDS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MLReport2
ICMPv6MLReport2 fields type
143
res
0
cksum
None
reserved
0
records_number
None
records
[]
- class scapy.layers.inet6.ICMPv6MPAdv(_pkt, /, *, type=147, code=0, cksum=None, id=None, flags=2, res=0)[源代码]
基类:
_ICMPv6NDGuessPayload
,_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID |FLA| RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MPAdv
ICMPv6MPAdv fields type
147
code
0
cksum
None
id
None
flags
2
res
XBitField
(14 bits)0
- class scapy.layers.inet6.ICMPv6MPSol(_pkt, /, *, type=146, code=0, cksum=None, id=None, res=0)[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MPSol
ICMPv6MPSol fields type
146
code
0
cksum
None
id
None
res
0
- class scapy.layers.inet6.ICMPv6MRD_Advertisement(_pkt, /, *, type=151, advinter=20, cksum=None, queryint=0, robustness=0)[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | ADVINTER | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QUERYINT | ROBUSTNESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MRD_Advertisement
ICMPv6MRD_Advertisement fields type
151
advinter
20
cksum
None
queryint
0
robustness
0
- class scapy.layers.inet6.ICMPv6MRD_Solicitation(_pkt, /, *, type=152, res=0, cksum=None)[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | RES | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MRD_Solicitation
ICMPv6MRD_Solicitation fields type
152
res
0
cksum
None
- class scapy.layers.inet6.ICMPv6MRD_Termination(_pkt, /, *, type=153, res=0, cksum=None)[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | RES | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6MRD_Termination
ICMPv6MRD_Termination fields type
153
res
0
cksum
None
- class scapy.layers.inet6.ICMPv6NDOptAdvInterval(_pkt, /, *, type=7, len=1, res=0, advint=0)[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADVINT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptAdvInterval
ICMPv6NDOptAdvInterval fields type
7
len
1
res
0
advint
0
- class scapy.layers.inet6.ICMPv6NDOptCaptivePortal(_pkt, /, *, type=37, len=None, URI=b'')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | URI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptCaptivePortal
ICMPv6NDOptCaptivePortal fields type
37
len
None
URI
b''
- class scapy.layers.inet6.ICMPv6NDOptDNSSL(_pkt, /, *, type=31, len=None, res=None, lifetime=4294967295, searchlist=[])[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SEARCHLIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptDNSSL
ICMPv6NDOptDNSSL fields type
31
len
None
res
None
lifetime
4294967295
searchlist
[]
- class scapy.layers.inet6.ICMPv6NDOptDstLLAddr(_pkt, /, *, type=2, len=1, lladdr='00:00:00:00:00:00')[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | LLADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptDstLLAddr
ICMPv6NDOptDstLLAddr fields type
2
len
1
lladdr
'00:00:00:00:00:00'
- class scapy.layers.inet6.ICMPv6NDOptEFA(_pkt, /, *, type=26, len=1, res=0)[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptEFA
ICMPv6NDOptEFA fields type
26
len
1
res
BitField
(48 bits)0
- class scapy.layers.inet6.ICMPv6NDOptHAInfo(_pkt, /, *, type=8, len=1, res=0, pref=0, lifetime=1)[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREF | LIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptHAInfo
ICMPv6NDOptHAInfo fields type
8
len
1
res
0
pref
0
lifetime
1
- class scapy.layers.inet6.ICMPv6NDOptIPAddr(_pkt, /, *, type=17, len=3, optcode=1, plen=64, res=0, addr='::')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | OPTCODE | PLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptIPAddr
ICMPv6NDOptIPAddr fields type
17
len
3
optcode
1
plen
64
res
0
addr
'::'
- class scapy.layers.inet6.ICMPv6NDOptLLA(_pkt, /, *, type=19, len=1, optcode=0, lla='00:00:00:00:00:00')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | OPTCODE | LLA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptLLA
ICMPv6NDOptLLA fields type
19
len
1
optcode
0
lla
'00:00:00:00:00:00'
- class scapy.layers.inet6.ICMPv6NDOptMAP(_pkt, /, *, type=23, len=3, dist=1, pref=15, R=1, res=0, validlifetime=4294967295, addr='::')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | DIST | PREF |R| RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VALIDLIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptMAP
ICMPv6NDOptMAP fields type
23
len
3
dist
BitField
(4 bits)1
pref
BitField
(4 bits)15
R
BitField
(1 bit)1
res
BitField
(7 bits)0
validlifetime
4294967295
addr
'::'
- class scapy.layers.inet6.ICMPv6NDOptMTU(_pkt, /, *, type=5, len=1, res=0, mtu=1280)[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MTU | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptMTU
ICMPv6NDOptMTU fields type
5
len
1
res
0
mtu
1280
- class scapy.layers.inet6.ICMPv6NDOptNewRtrPrefix(_pkt, /, *, type=18, len=3, optcode=0, plen=64, res=0, prefix='::')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | OPTCODE | PLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREFIX | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptNewRtrPrefix
ICMPv6NDOptNewRtrPrefix fields type
18
len
3
optcode
0
plen
64
res
0
prefix
'::'
- class scapy.layers.inet6.ICMPv6NDOptPREF64(_pkt, /, *, type=38, len=2, scaledlifetime=0, plc=0, prefix='::')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | SCALEDLIFETIME | PLC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREFIX | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptPREF64
ICMPv6NDOptPREF64 fields type
38
len
2
scaledlifetime
BitField
(13 bits)0
plc
0
prefix
_PREF64
'::'
- class scapy.layers.inet6.ICMPv6NDOptPrefixInfo(_pkt, /, *, type=3, len=4, prefixlen=64, L=1, A=1, R=0, res1=0, validlifetime=4294967295, preferredlifetime=4294967295, res2=0, prefix='::')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | PREFIXLEN |L|A|R| RES1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VALIDLIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREFERREDLIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREFIX | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptPrefixInfo
ICMPv6NDOptPrefixInfo fields type
3
len
4
prefixlen
64
L
BitField
(1 bit)1
A
BitField
(1 bit)1
R
BitField
(1 bit)0
res1
BitField
(5 bits)0
validlifetime
4294967295
preferredlifetime
4294967295
res2
0
prefix
'::'
- class scapy.layers.inet6.ICMPv6NDOptRDNSS(_pkt, /, *, type=25, len=None, res=None, lifetime=4294967295, dns=[])[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DNS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptRDNSS
ICMPv6NDOptRDNSS fields type
25
len
None
res
None
lifetime
4294967295
dns
[]
- class scapy.layers.inet6.ICMPv6NDOptRedirectedHdr(_pkt, /, *, type=4, len=None, res=b'\x00\x00\x00\x00\x00\x00', pkt=b'')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PKT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptRedirectedHdr
ICMPv6NDOptRedirectedHdr fields type
4
len
None
res
b'\x00\x00\x00\x00\x00\x00'
pkt
b''
- class scapy.layers.inet6.ICMPv6NDOptRouteInfo(_pkt, /, *, type=24, len=None, plen=None, res1=0, prf=0, res2=0, rtlifetime=4294967295, prefix=None)[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | PLEN | RES1|PRF| RES2| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RTLIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREFIX | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptRouteInfo
ICMPv6NDOptRouteInfo fields type
24
len
None
plen
None
res1
BitField
(3 bits)0
prf
0
res2
BitField
(3 bits)0
rtlifetime
4294967295
prefix
_IP6PrefixField
None
- class scapy.layers.inet6.ICMPv6NDOptShortcutLimit(_pkt, /, *, type=6, len=1, shortcutlim=40, res1=0, res2=0)[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | SHORTCUTLIM | RES1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptShortcutLimit
ICMPv6NDOptShortcutLimit fields type
6
len
1
shortcutlim
40
res1
0
res2
0
- class scapy.layers.inet6.ICMPv6NDOptSrcAddrList(_pkt, /, *, type=9, len=None, res=b'\x00\x00\x00\x00\x00\x00', addrlist=[])[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRLIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptSrcAddrList
ICMPv6NDOptSrcAddrList fields type
9
len
None
res
b'\x00\x00\x00\x00\x00\x00'
addrlist
[]
- class scapy.layers.inet6.ICMPv6NDOptSrcLLAddr(_pkt, /, *, type=1, len=1, lladdr='00:00:00:00:00:00')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | LLADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptSrcLLAddr
ICMPv6NDOptSrcLLAddr fields type
1
len
1
lladdr
'00:00:00:00:00:00'
- class scapy.layers.inet6.ICMPv6NDOptTgtAddrList(_pkt, /, *, type=10, len=None, res=b'\x00\x00\x00\x00\x00\x00', addrlist=[])[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRLIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptTgtAddrList
ICMPv6NDOptTgtAddrList fields type
10
len
None
res
b'\x00\x00\x00\x00\x00\x00'
addrlist
[]
- class scapy.layers.inet6.ICMPv6NDOptUnknown(_pkt, /, *, type=None, len=None, data=b'')[源代码]
基类:
_ICMPv6NDGuessPayload
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NDOptUnknown
ICMPv6NDOptUnknown fields type
None
len
None
data
b''
- class scapy.layers.inet6.ICMPv6ND_INDAdv(_pkt, /, *, type=142, code=0, cksum=None, reserved=0)[源代码]
基类:
_ICMPv6NDGuessPayload
,_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6ND_INDAdv
ICMPv6ND_INDAdv fields type
142
code
0
cksum
None
reserved
0
- class scapy.layers.inet6.ICMPv6ND_INDSol(_pkt, /, *, type=141, code=0, cksum=None, reserved=0)[源代码]
基类:
_ICMPv6NDGuessPayload
,_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6ND_INDSol
ICMPv6ND_INDSol fields type
141
code
0
cksum
None
reserved
0
- class scapy.layers.inet6.ICMPv6ND_NA(_pkt, /, *, type=136, code=0, cksum=None, R=1, S=0, O=1, res=0, tgt='::')[源代码]
基类:
_ICMPv6NDGuessPayload
,_ICMPv6
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |R|S|O| RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TGT | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6ND_NA
ICMPv6ND_NA fields type
136
code
0
cksum
None
R
BitField
(1 bit)1
S
BitField
(1 bit)0
O
BitField
(1 bit)1
res
XBitField
(29 bits)0
tgt
'::'
- class scapy.layers.inet6.ICMPv6ND_NS(_pkt, /, *, type=135, code=0, cksum=None, res=0, tgt='::')[源代码]
基类:
_ICMPv6NDGuessPayload
,_ICMPv6
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TGT | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6ND_NS
ICMPv6ND_NS fields type
135
code
0
cksum
None
res
0
tgt
'::'
- class scapy.layers.inet6.ICMPv6ND_RA(_pkt, /, *, type=134, code=0, cksum=None, chlim=0, M=0, O=0, H=0, prf=1, P=0, res=0, routerlifetime=1800, reachabletime=0, retranstimer=0)[源代码]
基类:
_ICMPv6NDGuessPayload
,_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHLIM |M|O|H|PRF|P|RES| ROUTERLIFETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | REACHABLETIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RETRANSTIMER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6ND_RA
ICMPv6ND_RA fields type
134
code
0
cksum
None
chlim
0
M
BitField
(1 bit)0
O
BitField
(1 bit)0
H
BitField
(1 bit)0
prf
1
P
BitField
(1 bit)0
res
BitField
(2 bits)0
routerlifetime
1800
reachabletime
0
retranstimer
0
- class scapy.layers.inet6.ICMPv6ND_RS(_pkt, /, *, type=133, code=0, cksum=None, res=0)[源代码]
基类:
_ICMPv6NDGuessPayload
,_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6ND_RS
ICMPv6ND_RS fields type
133
code
0
cksum
None
res
0
- class scapy.layers.inet6.ICMPv6ND_Redirect(_pkt, /, *, type=137, code=0, cksum=None, res=0, tgt='::', dst='::')[源代码]
基类:
_ICMPv6NDGuessPayload
,_ICMPv6
,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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TGT | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DST | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6ND_Redirect
ICMPv6ND_Redirect fields type
137
code
0
cksum
None
res
0
tgt
'::'
dst
'::'
- class scapy.layers.inet6.ICMPv6NIQueryIPv4(_pkt, /, *, type=139, code=None, cksum=None, qtype=4, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(1, b'\x00\x00\x00'))[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIQueryIPv4
ICMPv6NIQueryIPv4 fields type
139
code
None
cksum
None
qtype
4
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(1, b'\x00\x00\x00')
- class scapy.layers.inet6.ICMPv6NIQueryIPv6(_pkt, /, *, type=139, code=None, cksum=None, qtype=3, unused=0, flags=62, nonce=<RandBin>, data=(1, b'\x00\x00\x00'))[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIQueryIPv6
ICMPv6NIQueryIPv6 fields type
139
code
None
cksum
None
qtype
3
unused
BitField
(10 bits)0
flags
62
nonce
<RandBin>
data
(1, b'\x00\x00\x00')
- class scapy.layers.inet6.ICMPv6NIQueryNOOP(_pkt, /, *, type=139, code=None, cksum=None, qtype=0, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(1, b'\x00\x00\x00'))[源代码]
基类:
_ICMPv6NIHashret
,_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIQueryNOOP
ICMPv6NIQueryNOOP fields type
139
code
None
cksum
None
qtype
0
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(1, b'\x00\x00\x00')
- class scapy.layers.inet6.ICMPv6NIQueryName(_pkt, /, *, type=139, code=None, cksum=None, qtype=2, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(1, b'\x00\x00\x00'))[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIQueryName
ICMPv6NIQueryName fields type
139
code
None
cksum
None
qtype
2
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(1, b'\x00\x00\x00')
- class scapy.layers.inet6.ICMPv6NIReplyIPv4(_pkt, /, *, type=140, code=0, cksum=None, qtype=4, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(0, None))[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIReplyIPv4
ICMPv6NIReplyIPv4 fields type
140
code
0
cksum
None
qtype
4
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(0, None)
- class scapy.layers.inet6.ICMPv6NIReplyIPv6(_pkt, /, *, type=140, code=0, cksum=None, qtype=3, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(0, None))[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIReplyIPv6
ICMPv6NIReplyIPv6 fields type
140
code
0
cksum
None
qtype
3
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(0, None)
- class scapy.layers.inet6.ICMPv6NIReplyNOOP(_pkt, /, *, type=140, code=0, cksum=None, qtype=0, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(0, None))[源代码]
基类:
_ICMPv6NIAnswers
,_ICMPv6NIHashret
,_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIReplyNOOP
ICMPv6NIReplyNOOP fields type
140
code
0
cksum
None
qtype
0
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(0, None)
- class scapy.layers.inet6.ICMPv6NIReplyName(_pkt, /, *, type=140, code=0, cksum=None, qtype=2, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(0, None))[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIReplyName
ICMPv6NIReplyName fields type
140
code
0
cksum
None
qtype
2
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(0, None)
- class scapy.layers.inet6.ICMPv6NIReplyRefuse(_pkt, /, *, type=140, code=1, cksum=None, qtype=0, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(0, None))[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIReplyRefuse
ICMPv6NIReplyRefuse fields type
140
code
1
cksum
None
qtype
0
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(0, None)
- class scapy.layers.inet6.ICMPv6NIReplyUnknown(_pkt, /, *, type=140, code=2, cksum=None, qtype=0, unused=0, flags=<Flag 0 ()>, nonce=<RandBin>, data=(0, None))[源代码]
-
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QTYPE | UNUSED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NONCE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6NIReplyUnknown
ICMPv6NIReplyUnknown fields type
140
code
2
cksum
None
qtype
0
unused
BitField
(10 bits)0
flags
<Flag 0 ()>
nonce
<RandBin>
data
(0, None)
- class scapy.layers.inet6.ICMPv6PacketTooBig(_pkt, /, *, type=2, code=0, cksum=None, mtu=1280)[源代码]
基类:
_ICMPv6Error
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MTU | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6PacketTooBig
ICMPv6PacketTooBig fields type
2
code
0
cksum
None
mtu
1280
- class scapy.layers.inet6.ICMPv6ParamProblem(_pkt, /, *, type=4, code=0, cksum=None, ptr=6)[源代码]
基类:
_ICMPv6Error
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PTR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6ParamProblem
ICMPv6ParamProblem fields type
4
code
0
cksum
None
ptr
6
- class scapy.layers.inet6.ICMPv6RPL(_pkt, /, *, type=155, code=0, cksum=None)[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6RPL
ICMPv6RPL fields type
155
code
0
cksum
None
- class scapy.layers.inet6.ICMPv6TimeExceeded(_pkt, /, *, type=3, code=0, cksum=None, length=0, unused=0)[源代码]
基类:
_ICMPv6Error
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | UNUSED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. ICMPv6TimeExceeded
ICMPv6TimeExceeded fields type
3
code
0
cksum
None
length
0
unused
0
- class scapy.layers.inet6.ICMPv6Unknown(_pkt, /, *, type=1, code=0, cksum=None, msgbody=b'')[源代码]
基类:
_ICMPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | CODE | CKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MSGBODY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. ICMPv6Unknown
ICMPv6Unknown fields type
1
code
0
cksum
None
msgbody
b''
- class scapy.layers.inet6.IP6ListField(name, default, count_from=None, length_from=None)[源代码]
基类:
StrField
- count_from
- islist = 1
- length_from
- class scapy.layers.inet6.IPerror6(_pkt, /, *, version=6, tc=0, fl=0, plen=None, nh=59, hlim=64, src=None, dst=None)[源代码]
基类:
IPv6
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |VERSION| TC | FL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PLEN | NH | HLIM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SRC | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DST | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPerror6
IPerror6 fields version
BitField
(4 bits)6
tc
BitField
(8 bits)0
fl
BitField
(20 bits)0
plen
None
nh
59
hlim
64
src
None
dst
None
- class scapy.layers.inet6.IPv46(_pkt, /, *, version=4, ihl=None, tos=0, len=None, id=1, flags=<Flag 0 ()>, frag=0, ttl=64, proto=0, chksum=None, src=None, dst=None, options=[])[源代码]
基类:
IP
This class implements a dispatcher that is used to detect the IP version while parsing Raw IP pcap files.
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |VERSION| IHL | TOS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID |FLAGS| FRAG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TTL | PROTO | CHKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SRC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv46
IPv46 fields version
BitField
(4 bits)4
ihl
BitField
(4 bits)None
tos
0
len
None
id
1
flags
<Flag 0 ()>
frag
BitField
(13 bits)0
ttl
64
proto
0
chksum
None
src
None
dst
None
options
[]
- class scapy.layers.inet6.IPv6(_pkt, /, *, version=6, tc=0, fl=0, plen=None, nh=59, hlim=64, src=None, dst=None)[源代码]
基类:
_IPv6GuessPayload
,Packet
,IPTools
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |VERSION| TC | FL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PLEN | NH | HLIM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SRC | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DST | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6
IPv6 fields version
BitField
(4 bits)6
tc
BitField
(8 bits)0
fl
BitField
(20 bits)0
plen
None
nh
59
hlim
64
src
None
dst
None
- class scapy.layers.inet6.IPv6ExtHdrDestOpt(_pkt, /, *, nh=59, len=None, autopad=1, options=[])[源代码]
基类:
_IPv6ExtHdr
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrDestOpt
IPv6ExtHdrDestOpt fields nh
59
len
None
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.IPv6ExtHdrFragment(_pkt, /, *, nh=59, res1=0, offset=0, res2=0, m=0, id=None)[源代码]
基类:
_IPv6ExtHdr
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | RES1 | OFFSET |RES|M| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrFragment
IPv6ExtHdrFragment fields nh
59
res1
BitField
(8 bits)0
offset
BitField
(13 bits)0
res2
BitField
(2 bits)0
m
BitField
(1 bit)0
id
None
- class scapy.layers.inet6.IPv6ExtHdrHopByHop(_pkt, /, *, nh=59, len=None, autopad=1, options=[])[源代码]
基类:
_IPv6ExtHdr
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrHopByHop
IPv6ExtHdrHopByHop fields nh
59
len
None
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.IPv6ExtHdrRouting(_pkt, /, *, nh=59, len=None, type=0, segleft=None, reserved=0, addresses=[])[源代码]
基类:
_IPv6ExtHdr
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | TYPE | SEGLEFT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRESSES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrRouting
IPv6ExtHdrRouting fields nh
59
len
None
type
0
segleft
None
reserved
BitField
(32 bits)0
addresses
[]
- class scapy.layers.inet6.IPv6ExtHdrSegmentRouting(_pkt, /, *, nh=59, len=None, type=4, segleft=None, lastentry=None, unused1=0, protected=0, oam=0, alert=0, hmac=0, unused2=0, tag=0, addresses=['::1'], tlv_objects=[])[源代码]
基类:
_IPv6ExtHdr
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | TYPE | SEGLEFT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LASTENTRY |U|P|O|A|H|UNUSE| TAG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRESSES | TLV OBJECTS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrSegmentRouting
IPv6ExtHdrSegmentRouting fields nh
59
len
None
type
4
segleft
None
lastentry
None
unused1
BitField
(1 bit)0
protected
BitField
(1 bit)0
oam
BitField
(1 bit)0
alert
BitField
(1 bit)0
hmac
BitField
(1 bit)0
unused2
BitField
(3 bits)0
tag
0
addresses
['::1']
tlv_objects
[]
- class scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLV(_pkt, /, *, type=None, len=0, value=b'')[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | VALUE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrSegmentRoutingTLV
IPv6ExtHdrSegmentRoutingTLV fields type
None
len
0
value
b''
- registered_sr_tlv = {0: <class 'scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVPad1'>, 1: <class 'scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVIngressNode'>, 2: <class 'scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVEgressNode'>, 4: <class 'scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVPadN'>, 5: <class 'scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVHMAC'>, None: <class 'scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLV'>}
- class scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVEgressNode(_pkt, /, *, type=2, len=18, reserved=0, flags=0, egress_node='::1')[源代码]
基类:
IPv6ExtHdrSegmentRoutingTLV
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RESERVED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | EGRESS NODE | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrSegmentRoutingTLVEgressNode
IPv6ExtHdrSegmentRoutingTLVEgressNode fields type
2
len
18
reserved
0
flags
0
egress_node
'::1'
- class scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVHMAC(_pkt, /, *, type=5, len=None, D=0, reserved=0, hmackeyid=0, hmac=b'')[源代码]
基类:
IPv6ExtHdrSegmentRoutingTLV
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN |D| RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | HMACKEYID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | HMAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrSegmentRoutingTLVHMAC
IPv6ExtHdrSegmentRoutingTLVHMAC fields type
5
len
None
D
BitField
(1 bit)0
reserved
BitField
(15 bits)0
hmackeyid
0
hmac
b''
- class scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVIngressNode(_pkt, /, *, type=1, len=18, reserved=0, flags=0, ingress_node='::1')[源代码]
基类:
IPv6ExtHdrSegmentRoutingTLV
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RESERVED | FLAGS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INGRESS NODE | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrSegmentRoutingTLVIngressNode
IPv6ExtHdrSegmentRoutingTLVIngressNode fields type
1
len
18
reserved
0
flags
0
ingress_node
'::1'
- class scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVPad1(_pkt, /, *, type=0, len=None, padding=b'\x00')[源代码]
基类:
IPv6ExtHdrSegmentRoutingTLV
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | PADDING | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrSegmentRoutingTLVPad1
IPv6ExtHdrSegmentRoutingTLVPad1 fields type
0
len
None
padding
b'\x00'
- class scapy.layers.inet6.IPv6ExtHdrSegmentRoutingTLVPadN(_pkt, /, *, type=4, len=None, padding=b'\x00')[源代码]
基类:
IPv6ExtHdrSegmentRoutingTLV
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | PADDING | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. IPv6ExtHdrSegmentRoutingTLVPadN
IPv6ExtHdrSegmentRoutingTLVPadN fields type
4
len
None
padding
b'\x00'
- class scapy.layers.inet6.Jumbo(_pkt, /, *, otype=194, optlen=4, jumboplen=None)[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OPTLEN | JUMBOPLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. Jumbo
Jumbo fields otype
_OTypeField
194
optlen
4
jumboplen
None
- class scapy.layers.inet6.L3RawSocket6(type=34525, filter=None, iface=None, promisc=None, nofilter=0)[源代码]
基类:
L3RawSocket
- class scapy.layers.inet6.LifetimeField(name: str, default: int | None)[源代码]
基类:
ShortField
- class scapy.layers.inet6.MIP6MH_BA(_pkt, /, *, nh=59, len=None, mhtype=6, res=None, cksum=None, status=0, flags=<Flag 4 (K)>, res2=None, seq=None, mhtime=0, autopad=1, options=[])[源代码]
基类:
_MobilityHeader
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | STATUS |FLAGS| RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SEQ | MHTIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_BA
MIP6MH_BA fields nh
59
len
None
mhtype
6
res
None
cksum
None
status
0
flags
<Flag 4 (K)>
res2
XBitField
(5 bits)None
seq
None
mhtime
0
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.MIP6MH_BE(_pkt, /, *, nh=59, len=None, mhtype=7, res=0, cksum=None, status=0, reserved=0, ha='::', options=[])[源代码]
基类:
_MobilityHeader
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | STATUS | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HA | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_BE
MIP6MH_BE fields nh
59
len
None
mhtype
7
res
0
cksum
None
status
0
reserved
0
ha
'::'
options
_OptionsField
[]
- class scapy.layers.inet6.MIP6MH_BRR(_pkt, /, *, nh=59, len=None, mhtype=0, res=None, cksum=None, res2=None, autopad=1, options=[])[源代码]
基类:
_MobilityHeader
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | RES2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_BRR
MIP6MH_BRR fields nh
59
len
None
mhtype
0
res
None
cksum
None
res2
None
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.MIP6MH_BU(_pkt, /, *, nh=59, len=None, mhtype=5, res=None, cksum=None, seq=None, flags=<Flag 104 (KHA)>, reserved=0, mhtime=3, autopad=1, options=[])[源代码]
基类:
_MobilityHeader
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | SEQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FLAGS | RESERVED | MHTIME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_BU
MIP6MH_BU fields nh
59
len
None
mhtype
5
res
None
cksum
None
seq
None
flags
<Flag 104 (KHA)>
reserved
XBitField
(9 bits)0
mhtime
3
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.MIP6MH_CoT(_pkt, /, *, nh=59, len=None, mhtype=4, res=None, cksum=None, index=None, cookie=b'\x00\x00\x00\x00\x00\x00\x00\x00', token=b'\x00\x00\x00\x00\x00\x00\x00\x00', autopad=1, options=[])[源代码]
基类:
MIP6MH_HoT
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | INDEX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COOKIE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TOKEN | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_CoT
MIP6MH_CoT fields nh
59
len
None
mhtype
4
res
None
cksum
None
index
None
cookie
b'\x00\x00\x00\x00\x00\x00\x00\x00'
token
b'\x00\x00\x00\x00\x00\x00\x00\x00'
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.MIP6MH_CoTI(_pkt, /, *, nh=59, len=None, mhtype=2, res=None, cksum=None, reserved=b'\x00\x00', cookie=b'\x00\x00\x00\x00\x00\x00\x00\x00', autopad=1, options=[])[源代码]
基类:
MIP6MH_HoTI
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COOKIE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_CoTI
MIP6MH_CoTI fields nh
59
len
None
mhtype
2
res
None
cksum
None
reserved
b'\x00\x00'
cookie
b'\x00\x00\x00\x00\x00\x00\x00\x00'
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.MIP6MH_Generic(_pkt, /, *, nh=59, len=None, mhtype=None, res=None, cksum=None, msg=b'\x00\x00')[源代码]
基类:
_MobilityHeader
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | MSG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_Generic
MIP6MH_Generic fields nh
59
len
None
mhtype
None
res
None
cksum
None
msg
b'\x00\x00'
- class scapy.layers.inet6.MIP6MH_HoT(_pkt, /, *, nh=59, len=None, mhtype=3, res=None, cksum=None, index=None, cookie=b'\x00\x00\x00\x00\x00\x00\x00\x00', token=b'\x00\x00\x00\x00\x00\x00\x00\x00', autopad=1, options=[])[源代码]
基类:
_MobilityHeader
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | INDEX | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COOKIE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TOKEN | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_HoT
MIP6MH_HoT fields nh
59
len
None
mhtype
3
res
None
cksum
None
index
None
cookie
b'\x00\x00\x00\x00\x00\x00\x00\x00'
token
b'\x00\x00\x00\x00\x00\x00\x00\x00'
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.MIP6MH_HoTI(_pkt, /, *, nh=59, len=None, mhtype=1, res=None, cksum=None, reserved=b'\x00\x00', cookie=b'\x00\x00\x00\x00\x00\x00\x00\x00', autopad=1, options=[])[源代码]
基类:
_MobilityHeader
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NH | LEN | MHTYPE | RES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CKSUM | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COOKIE | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AUTOPAD | OPTIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6MH_HoTI
MIP6MH_HoTI fields nh
59
len
None
mhtype
1
res
None
cksum
None
reserved
b'\x00\x00'
cookie
b'\x00\x00\x00\x00\x00\x00\x00\x00'
autopad
_PhantomAutoPadField
1
options
_OptionsField
[]
- class scapy.layers.inet6.MIP6OptAltCoA(_pkt, /, *, otype=3, olen=16, acoa='::')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | ACOA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptAltCoA
MIP6OptAltCoA fields otype
3
olen
16
acoa
'::'
- x = 8
- y = 6
- class scapy.layers.inet6.MIP6OptBRAdvice(_pkt, /, *, otype=2, olen=2, rinter=0)[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | RINTER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptBRAdvice
MIP6OptBRAdvice fields otype
2
olen
2
rinter
0
- x = 2
- y = 0
- class scapy.layers.inet6.MIP6OptBindingAuthData(_pkt, /, *, otype=5, olen=16, authenticator=0)[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | AUTHENTICATOR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptBindingAuthData
MIP6OptBindingAuthData fields otype
5
olen
16
authenticator
BitField
(96 bits)0
- x = 8
- y = 2
- class scapy.layers.inet6.MIP6OptCGAParams(_pkt, /, *, otype=12, olen=None, cgaparams=b'')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | CGAPARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptCGAParams
MIP6OptCGAParams fields otype
12
olen
None
cgaparams
b''
- x = 0
- y = 0
- class scapy.layers.inet6.MIP6OptCGAParamsReq(_pkt, /, *, otype=11, olen=0)[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptCGAParamsReq
MIP6OptCGAParamsReq fields otype
11
olen
0
- x = 0
- y = 0
- class scapy.layers.inet6.MIP6OptCareOfTest(_pkt, /, *, otype=16, olen=None, cokt=b'\x00\x00\x00\x00\x00\x00\x00\x00')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | COKT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptCareOfTest
MIP6OptCareOfTest fields otype
16
olen
None
cokt
b'\x00\x00\x00\x00\x00\x00\x00\x00'
- x = 0
- y = 0
- class scapy.layers.inet6.MIP6OptCareOfTestInit(_pkt, /, *, otype=15, olen=0)[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptCareOfTestInit
MIP6OptCareOfTestInit fields otype
15
olen
0
- x = 0
- y = 0
- class scapy.layers.inet6.MIP6OptHomeKeygenToken(_pkt, /, *, otype=14, olen=None, hkt=b'')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | HKT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptHomeKeygenToken
MIP6OptHomeKeygenToken fields otype
14
olen
None
hkt
b''
- x = 0
- y = 0
- class scapy.layers.inet6.MIP6OptLLAddr(_pkt, /, *, otype=7, olen=7, ocode=2, pad=0, lla='00:00:00:00:00:00')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | OCODE | PAD | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LLA | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptLLAddr
MIP6OptLLAddr fields otype
7
olen
7
ocode
2
pad
0
lla
'00:00:00:00:00:00'
- x = 0
- y = 0
- class scapy.layers.inet6.MIP6OptMNID(_pkt, /, *, otype=8, olen=None, subtype=1, id=b'')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | SUBTYPE | ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. MIP6OptMNID
MIP6OptMNID fields otype
8
olen
None
subtype
1
id
b''
- x = 0
- y = 0
- class scapy.layers.inet6.MIP6OptMobNetPrefix(_pkt, /, *, otype=6, olen=18, reserved=0, plen=64, prefix='::')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | RESERVED | PLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PREFIX | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptMobNetPrefix
MIP6OptMobNetPrefix fields otype
6
olen
18
reserved
0
plen
64
prefix
'::'
- x = 8
- y = 4
- class scapy.layers.inet6.MIP6OptMsgAuth(_pkt, /, *, otype=9, olen=None, subtype=1, mspi=None, authdata=b'AAAAAAAAAAAA')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | SUBTYPE | MSPI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | AUTHDATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. MIP6OptMsgAuth
MIP6OptMsgAuth fields otype
9
olen
None
subtype
1
mspi
None
authdata
b'AAAAAAAAAAAA'
- x = 4
- y = 1
- class scapy.layers.inet6.MIP6OptNonceIndices(_pkt, /, *, otype=4, olen=16, hni=0, coni=0)[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | HNI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CONI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptNonceIndices
MIP6OptNonceIndices fields otype
4
olen
16
hni
0
coni
0
- x = 2
- y = 0
- class scapy.layers.inet6.MIP6OptReplayProtection(_pkt, /, *, otype=10, olen=8, timestamp=0)[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | TIMESTAMP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptReplayProtection
MIP6OptReplayProtection fields otype
10
olen
8
timestamp
0
- x = 8
- y = 2
- class scapy.layers.inet6.MIP6OptSignature(_pkt, /, *, otype=13, olen=None, sig=b'')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | SIG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptSignature
MIP6OptSignature fields otype
13
olen
None
sig
b''
- x = 0
- y = 0
- class scapy.layers.inet6.MIP6OptUnknown(_pkt, /, *, otype=6, olen=None, odata=b'')[源代码]
基类:
_MIP6OptAlign
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OLEN | ODATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. MIP6OptUnknown
MIP6OptUnknown fields otype
6
olen
None
odata
b''
- x = 0
- y = 0
- scapy.layers.inet6.NDP_Attack_DAD_DoS_via_NA(iface=None, mac_src_filter=None, tgt_filter=None, reply_mac=None)[源代码]
Perform the DAD DoS attack using NS described in section 4.1.3 of RFC 3756. This is done by listening incoming NS messages sent from the unspecified address and sending a NA reply for the target address, leading the peer to believe that another node is also performing DAD for that address.
- By default, the fake NA sent to create the DoS uses:
as target address the target address found in received NS.
as IPv6 source address: the target address found in received NS.
as IPv6 destination address: the link-local solicited-node multicast address derived from the target address in received NS.
the mac address of the interface as source (or reply_mac, see below).
the multicast mac address derived from the solicited node multicast address used as IPv6 destination address.
A Target Link-Layer address option (ICMPv6NDOptDstLLAddr) filled with the mac address used as source of the NA.
Following arguments can be used to change the behavior:
- iface: a specific interface (e.g. "eth0") of the system on which the
DoS should be launched. If None is provided conf.iface is used.
- mac_src_filter: a mac address (e.g "00:13:72:8c:b5:69") to filter on.
Only NS messages received from this source will trigger replies. This allows limiting the effects of the DoS to a single target by filtering on its mac address. The default value is None: the DoS is not limited to a specific mac address.
- tgt_filter: Same as previous but for a specific target IPv6 address for
received NS. If the target address in the NS message (not the IPv6 destination address) matches that address, then a fake reply will be sent, i.e. the emitter will be a target of the DoS.
- reply_mac: allow specifying a specific source mac address for the reply,
i.e. to prevent the use of the mac address of the interface. This address will also be used in the Target Link-Layer Address option.
- scapy.layers.inet6.NDP_Attack_DAD_DoS_via_NS(iface=None, mac_src_filter=None, tgt_filter=None, reply_mac=None)[源代码]
Perform the DAD DoS attack using NS described in section 4.1.3 of RFC 3756. This is done by listening incoming NS messages sent from the unspecified address and sending a NS reply for the target address, leading the peer to believe that another node is also performing DAD for that address.
- By default, the fake NS sent to create the DoS uses:
as target address the target address found in received NS.
as IPv6 source address: the unspecified address (::).
as IPv6 destination address: the link-local solicited-node multicast address derived from the target address in received NS.
the mac address of the interface as source (or reply_mac, see below).
the multicast mac address derived from the solicited node multicast address used as IPv6 destination address.
Following arguments can be used to change the behavior:
- iface: a specific interface (e.g. "eth0") of the system on which the
DoS should be launched. If None is provided conf.iface is used.
- mac_src_filter: a mac address (e.g "00:13:72:8c:b5:69") to filter on.
Only NS messages received from this source will trigger replies. This allows limiting the effects of the DoS to a single target by filtering on its mac address. The default value is None: the DoS is not limited to a specific mac address.
- tgt_filter: Same as previous but for a specific target IPv6 address for
received NS. If the target address in the NS message (not the IPv6 destination address) matches that address, then a fake reply will be sent, i.e. the emitter will be a target of the DoS.
- reply_mac: allow specifying a specific source mac address for the reply,
i.e. to prevent the use of the mac address of the interface.
- scapy.layers.inet6.NDP_Attack_Fake_Router(ra, iface=None, mac_src_filter=None, ip_src_filter=None)[源代码]
The purpose of this function is to send provided RA message at layer 2 (i.e. providing a packet starting with IPv6 will not work) in response to received RS messages. In the end, the function is a simple wrapper around sendp() that monitor the link for RS messages.
It is probably better explained with an example:
>>> ra = Ether()/IPv6()/ICMPv6ND_RA() >>> ra /= ICMPv6NDOptPrefixInfo(prefix="2001:db8:1::", prefixlen=64) >>> ra /= ICMPv6NDOptPrefixInfo(prefix="2001:db8:2::", prefixlen=64) >>> ra /= ICMPv6NDOptSrcLLAddr(lladdr="00:11:22:33:44:55") >>> NDP_Attack_Fake_Router(ra, iface="eth0") Fake RA sent in response to RS from fe80::213:58ff:fe8c:b573 Fake RA sent in response to RS from fe80::213:72ff:fe8c:b9ae ...
Following arguments can be used to change the behavior:
ra: the RA message to send in response to received RS message.
- iface: a specific interface (e.g. "eth0") of the system on which the
DoS should be launched. If none is provided, conf.iface is used.
- mac_src_filter: a mac address (e.g "00:13:72:8c:b5:69") to filter on.
Only RS messages received from this source will trigger a reply. Note that no changes to provided RA is done which imply that if you intend to target only the source of the RS using this option, you will have to set the Ethernet destination address to the same value in your RA. The default value for this parameter is None: no filtering on the source of RS is done.
- ip_src_filter: an IPv6 address (e.g. fe80::21e:bff:fe4e:3b2) to filter
on. Only RS messages received from this source address will trigger replies. Same comment as for previous argument apply: if you use the option, you will probably want to set a specific Ethernet destination address in the RA.
- scapy.layers.inet6.NDP_Attack_Kill_Default_Router(iface=None, mac_src_filter=None, ip_src_filter=None, reply_mac=None, tgt_mac=None)[源代码]
The purpose of the function is to monitor incoming RA messages sent by default routers (RA with a non-zero Router Lifetime values) and invalidate them by immediately replying with fake RA messages advertising a zero Router Lifetime value.
The result on receivers is that the router is immediately invalidated, i.e. the associated entry is discarded from the default router list and destination cache is updated to reflect the change.
By default, the function considers all RA messages with a non-zero Router Lifetime value but provides configuration knobs to allow filtering RA sent by specific routers (Ethernet source address). With regard to emission, the multicast all-nodes address is used by default but a specific target can be used, in order for the DoS to apply only to a specific host.
More precisely, following arguments can be used to change the behavior:
- iface: a specific interface (e.g. "eth0") of the system on which the
DoS should be launched. If None is provided conf.iface is used.
- mac_src_filter: a mac address (e.g "00:13:72:8c:b5:69") to filter on.
Only RA messages received from this source will trigger replies. If other default routers advertised their presence on the link, their clients will not be impacted by the attack. The default value is None: the DoS is not limited to a specific mac address.
- ip_src_filter: an IPv6 address (e.g. fe80::21e:bff:fe4e:3b2) to filter
on. Only RA messages received from this source address will trigger replies. If other default routers advertised their presence on the link, their clients will not be impacted by the attack. The default value is None: the DoS is not limited to a specific IPv6 source address.
- reply_mac: allow specifying a specific source mac address for the reply,
i.e. to prevent the use of the mac address of the interface.
- tgt_mac: allow limiting the effect of the DoS to a specific host,
by sending the "invalidating RA" only to its mac address.
- scapy.layers.inet6.NDP_Attack_NA_Spoofing(iface=None, mac_src_filter=None, tgt_filter=None, reply_mac=None, router=False)[源代码]
The main purpose of this function is to send fake Neighbor Advertisement messages to a victim. As the emission of unsolicited Neighbor Advertisement is pretty pointless (from an attacker standpoint) because it will not lead to a modification of a victim's neighbor cache, the function send advertisements in response to received NS (NS sent as part of the DAD, i.e. with an unspecified address as source, are not considered).
- By default, the fake NA sent to create the DoS uses:
as target address the target address found in received NS.
as IPv6 source address: the target address
as IPv6 destination address: the source IPv6 address of received NS message.
the mac address of the interface as source (or reply_mac, see below).
the source mac address of the received NS as destination macs address of the emitted NA.
A Target Link-Layer address option (ICMPv6NDOptDstLLAddr) filled with the mac address used as source of the NA.
Following arguments can be used to change the behavior:
- iface: a specific interface (e.g. "eth0") of the system on which the
DoS should be launched. If None is provided conf.iface is used.
- mac_src_filter: a mac address (e.g "00:13:72:8c:b5:69") to filter on.
Only NS messages received from this source will trigger replies. This allows limiting the effects of the DoS to a single target by filtering on its mac address. The default value is None: the DoS is not limited to a specific mac address.
- tgt_filter: Same as previous but for a specific target IPv6 address for
received NS. If the target address in the NS message (not the IPv6 destination address) matches that address, then a fake reply will be sent, i.e. the emitter will be a target of the DoS.
- reply_mac: allow specifying a specific source mac address for the reply,
i.e. to prevent the use of the mac address of the interface. This address will also be used in the Target Link-Layer Address option.
- router: by the default (False) the 'R' flag in the NA used for the reply
is not set. If the parameter is set to True, the 'R' flag in the NA is set, advertising us as a router.
Please, keep the following in mind when using the function: for obvious reasons (kernel space vs. Python speed), when the target of the address resolution is on the link, the sender of the NS receives 2 NA messages in a row, the valid one and our fake one. The second one will overwrite the information provided by the first one, i.e. the natural latency of Scapy helps here.
In practice, on a common Ethernet link, the emission of the NA from the genuine target (kernel stack) usually occurs in the same millisecond as the receipt of the NS. The NA generated by Scapy6 will usually come after something 20+ ms. On a usual testbed for instance, this difference is sufficient to have the first data packet sent from the victim to the destination before it even receives our fake NA.
- scapy.layers.inet6.NDP_Attack_NS_Spoofing(src_lladdr=None, src=None, target='2001:db8::1', dst=None, src_mac=None, dst_mac=None, loop=True, inter=1, iface=None)[源代码]
The main purpose of this function is to send fake Neighbor Solicitations messages to a victim, in order to either create a new entry in its neighbor cache or update an existing one. In section 7.2.3 of RFC 4861, it is stated that a node SHOULD create the entry or update an existing one (if it is not currently performing DAD for the target of the NS). The entry's reachability # noqa: E501 state is set to STALE.
The two main parameters of the function are the source link-layer address (carried by the Source Link-Layer Address option in the NS) and the source address of the packet.
Unlike some other NDP_Attack_* function, this one is not based on a stimulus/response model. When called, it sends the same NS packet in loop every second (the default)
Following arguments can be used to change the format of the packets:
- src_lladdr: the MAC address used in the Source Link-Layer Address option
included in the NS packet. This is the address that the peer should associate in its neighbor cache with the IPv6 source address of the packet. If None is provided, the mac address of the interface is used.
- src: the IPv6 address used as source of the packet. If None is provided,
an address associated with the emitting interface will be used (based on the destination address of the packet).
- target: the target address of the NS packet. If no value is provided,
a dummy address (2001:db8::1) is used. The value of the target has a direct impact on the destination address of the packet if it is not overridden. By default, the solicited-node multicast address associated with the target is used as destination address of the packet. Consider specifying a specific destination address if you intend to use a target address different than the one of the victim.
- dst: The destination address of the NS. By default, the solicited node
multicast address associated with the target address (see previous parameter) is used if no specific value is provided. The victim is not expected to check the destination address of the packet, so using a multicast address like ff02::1 should work if you want the attack to target all hosts on the link. On the contrary, if you want to be more stealth, you should provide the target address for this parameter in order for the packet to be sent only to the victim.
- src_mac: the MAC address used as source of the packet. By default, this
is the address of the interface. If you want to be more stealth, feel free to use something else. Note that this address is not the that the victim will use to populate its neighbor cache.
- dst_mac: The MAC address used as destination address of the packet. If
the IPv6 destination address is multicast (all-nodes, solicited node, ...), it will be computed. If the destination address is unicast, a neighbor solicitation will be performed to get the associated address. If you want the attack to be stealth, you can provide the MAC address using this parameter.
- loop: By default, this parameter is True, indicating that NS packets
will be sent in loop, separated by 'inter' seconds (see below). When set to False, a single packet is sent.
- inter: When loop parameter is True (the default), this parameter provides
the interval in seconds used for sending NS packets.
iface: to force the sending interface.
- class scapy.layers.inet6.NIQueryCodeField(name: str, default: int | None, enum: Dict[int, str])[源代码]
- class scapy.layers.inet6.NIReplyDataField(name: str, default: I | None, fmt: str = 'H', remain: int = 0)[源代码]
基类:
StrField
- class scapy.layers.inet6.PadN(_pkt, /, *, otype=1, optlen=None, optdata=b'')[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OPTLEN | OPTDATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PadN
PadN fields otype
_OTypeField
1
optlen
None
optdata
b''
- class scapy.layers.inet6.PseudoIPv6(_pkt, /, *, src='::', dst='::', uplen=None, zero=0, nh=0)[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SRC | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DST | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | UPLEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ZERO | NH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. PseudoIPv6
PseudoIPv6 fields src
'::'
dst
'::'
uplen
None
zero
BitField
(24 bits)0
nh
0
- class scapy.layers.inet6.RouterAlert(_pkt, /, *, otype=5, optlen=2, value=None)[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OTYPE | OPTLEN | VALUE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. RouterAlert
RouterAlert fields otype
_OTypeField
5
optlen
2
value
None
- class scapy.layers.inet6.TruncPktLenField(name: str, default: Packet, cls: Union[Callable[[bytes], Packet], Type[Packet]] # noqa: E501, length_from: Optional[Callable[[Packet], int]] # noqa: E501 = None)[源代码]
- scapy.layers.inet6.computeNIGroupAddr(name)[源代码]
Compute the NI group Address. Can take a FQDN as input parameter
- scapy.layers.inet6.defragment6(packets)[源代码]
Performs defragmentation of a list of IPv6 packets. Packets are reordered. Crap is dropped. What lacks is completed by 'X' characters.
- scapy.layers.inet6.dnsrepr2names(x)[源代码]
Take as input a DNS encoded string (possibly compressed) and returns a list of DNS names contained in it. If provided string is already in printable format (does not end with a null character, a one element list is returned). Result is a list.
- scapy.layers.inet6.fragment6(pkt, fragSize)[源代码]
Performs fragmentation of an IPv6 packet. 'fragSize' argument is the expected maximum size of fragment data (MTU). The list of packets is returned.
If packet does not contain an IPv6ExtHdrFragment class, it is added to first IPv6 layer found. If no IPv6 layer exists packet is returned in result list unmodified.
- scapy.layers.inet6.getmacbyip6(ip6, chainCC=0)[源代码]
Returns the MAC address corresponding to an IPv6 address
neighborCache.get() method is used on instantiated neighbor cache. Resolution mechanism is described in associated doc string.
- (chainCC parameter value ends up being passed to sending function
used to perform the resolution, if needed)
- scapy.layers.inet6.in6_chksum(nh, u, p)[源代码]
As Specified in RFC 2460 - 8.1 Upper-Layer Checksums
See also .in6_pseudoheader
- 参数:
nh -- value of upper layer protocol
u -- upper layer instance (TCP, UDP, ICMPv6*, ). Instance must be provided with all under layers (IPv6 and all extension headers, for example)
p -- the payload of the upper layer provided as a string
- scapy.layers.inet6.in6_pseudoheader(nh: int, u: IP, plen: int) PseudoIPv6 [源代码]
Build an PseudoIPv6 instance as specified in RFC 2460 8.1
This function operates by filling a pseudo header class instance (PseudoIPv6) with: - Next Header value - the address of _final_ destination (if some Routing Header with non segleft field is present in underlayer classes, last address is used.) - the address of _real_ source (basically the source address of an IPv6 class instance available in the underlayer or the source address in HAO option if some Destination Option header found in underlayer includes this option). - the length is the length of provided payload string ('p')
- 参数:
nh -- value of upper layer protocol
u -- upper layer instance (TCP, UDP, ICMPv6*, ). Instance must be provided with all under layers (IPv6 and all extension headers, for example)
plen -- the length of the upper layer and payload
- scapy.layers.inet6.names2dnsrepr(x)[源代码]
Take as input a list of DNS names or a single DNS name and encode it in DNS format (with possible compression) If a string that is already a DNS name in DNS format is passed, it is returned unmodified. Result is a string. !!! At the moment, compression is not implemented !!!
- scapy.layers.inet6.neighsol(addr, src, iface, timeout=1, chainCC=0)[源代码]
Sends and receive an ICMPv6 Neighbor Solicitation message
This function sends an ICMPv6 Neighbor Solicitation message to get the MAC address of the neighbor with specified IPv6 address address.
'src' address is used as the source IPv6 address of the message. Message is sent on 'iface'. The source MAC address is retrieved accordingly.
By default, timeout waiting for an answer is 1 second.
If no answer is gathered, None is returned. Else, the answer is returned (ethernet frame).