scapy.contrib.send

Secure Neighbor Discovery (SEND) - RFC3971

class scapy.contrib.send.CGA_Params(_pkt, /, *, modifier=<RandBin>, subprefix=b'', cc=0, pubkey=<X509_SubjectPublicKeyInfo  signatureAlgorithm=<X509_AlgorithmIdentifier  |> |>)[源代码]

基类: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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            MODIFIER                           |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           SUBPREFIX                           |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|       CC      |             PUBKEY            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. CGA_Params                          
CGA_Params fields

modifier

StrFixedLenField

<RandBin>

subprefix

StrFixedLenField

b''

cc

ByteField

0

pubkey

PacketField

<X509_SubjectPublicKeyInfo  signatureAlgorithm=<X509_AlgorithmIdentifier  |> |>

class scapy.contrib.send.ICMPv6NDOptCGA(_pkt, /, *, type=11, len=None, padlength=0, reserved=0, CGA_PARAMS=b'', padding=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      |   PADLENGTH   |    RESERVED   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           CGA PARAMS          |            PADDING            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. ICMPv6NDOptCGA                        
ICMPv6NDOptCGA fields

type

ByteField

11

len

FieldLenField

None

padlength

FieldLenField

0

reserved

ByteField

0

CGA_PARAMS

PacketLenField

b''

padding

StrLenField

b''

post_build(p, pay)[源代码]
class scapy.contrib.send.ICMPv6NDOptNonce(_pkt, /, *, type=14, len=None, nonce=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      |             NONCE             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. ICMPv6NDOptNonce                       
ICMPv6NDOptNonce fields

type

ByteField

14

len

FieldLenField

None

nonce

StrLenField

b''

class scapy.contrib.send.ICMPv6NDOptRsaSig(_pkt, /, *, type=12, len=None, reserved=0, key_hash=b'', signature_pad=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      |            RESERVED           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            KEY HASH                           |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         SIGNATURE PAD         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. ICMPv6NDOptRsaSig                      
ICMPv6NDOptRsaSig fields

type

ByteField

12

len

FieldLenField

None

reserved

ShortField

0

key_hash

StrFixedLenField

b''

signature_pad

StrLenField

b''

class scapy.contrib.send.ICMPv6NDOptTmstp(_pkt, /, *, type=13, len=2, reserved=0, timestamp=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      |            RESERVED           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           TIMESTAMP                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. ICMPv6NDOptTmstp                       
ICMPv6NDOptTmstp fields

type

ByteField

13

len

ByteField

2

reserved

BitField (48 bits)

0

timestamp

UTCTimeField

None