scapy.layers.dhcp6

DHCPv6: Dynamic Host Configuration Protocol for IPv6. [RFC 3315,8415]

class scapy.layers.dhcp6.DHCP6(_pkt, /, *, msgtype=None, trid=0)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                            Fig. DHCP6                            
DHCP6 fields

msgtype

ByteEnumField

None

trid

X3BytesField

0

hashret()[source]
class scapy.layers.dhcp6.DHCP6NTPSubOptMCAddr(_pkt, /, *, optcode=2, optlen=16, addr='::')[source]

Bases: Packet

aliastypes
extract_padding(s)[source]
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              ADDR                             |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6NTPSubOptMCAddr                     
DHCP6NTPSubOptMCAddr fields

optcode

ShortField

2

optlen

ShortField

16

addr

IP6Field

'::'

class scapy.layers.dhcp6.DHCP6NTPSubOptSrvAddr(_pkt, /, *, optcode=1, optlen=16, addr='::')[source]

Bases: Packet

aliastypes
extract_padding(s)[source]
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              ADDR                             |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6NTPSubOptSrvAddr                    
DHCP6NTPSubOptSrvAddr fields

optcode

ShortField

1

optlen

ShortField

16

addr

IP6Field

'::'

class scapy.layers.dhcp6.DHCP6NTPSubOptSrvFQDN(_pkt, /, *, optcode=3, optlen=None, fqdn=b'.')[source]

Bases: Packet

aliastypes
extract_padding(s)[source]
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              FQDN             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6NTPSubOptSrvFQDN                    
DHCP6NTPSubOptSrvFQDN fields

optcode

ShortField

3

optlen

FieldLenField

None

fqdn

DNSStrField

b'.'

class scapy.layers.dhcp6.DHCP6OptAuth(_pkt, /, *, optcode=11, optlen=None, proto=3, alg=1, rdm=0, replay=b'\x00\x00\x00\x00\x00\x00\x00\x00', authinfo=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     PROTO     |      ALG      |      RDM      |     REPLAY    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+               +
|                                                               |
+                                               +-+-+-+-+-+-+-+-+
|                                               |    AUTHINFO   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6OptAuth                         
DHCP6OptAuth fields

optcode

ShortEnumField

11

optlen

FieldLenField

None

proto

ByteEnumField

3

alg

ByteEnumField

1

rdm

ByteEnumField

0

replay

StrFixedLenField

b'\x00\x00\x00\x00\x00\x00\x00\x00'

authinfo

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptBCMCSDomains(_pkt, /, *, optcode=33, optlen=None, bcmcsdomains=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          BCMCSDOMAINS         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptBCMCSDomains                     
DHCP6OptBCMCSDomains fields

optcode

ShortEnumField

33

optlen

FieldLenField

None

bcmcsdomains

DomainNameListField

[]

class scapy.layers.dhcp6.DHCP6OptBCMCSServers(_pkt, /, *, optcode=34, optlen=None, bcmcsservers=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          BCMCSSERVERS         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptBCMCSServers                     
DHCP6OptBCMCSServers fields

optcode

ShortEnumField

34

optlen

FieldLenField

None

bcmcsservers

IP6ListField

[]

class scapy.layers.dhcp6.DHCP6OptBootFileUrl(_pkt, /, *, optcode=59, optlen=None, optdata=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTDATA            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptBootFileUrl                     
DHCP6OptBootFileUrl fields

optcode

ShortEnumField

59

optlen

FieldLenField

None

optdata

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptCaptivePortal(_pkt, /, *, optcode=103, optlen=None, URI=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              URI              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptCaptivePortal                    
DHCP6OptCaptivePortal fields

optcode

ShortEnumField

103

optlen

FieldLenField

None

URI

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptClientArchType(_pkt, /, *, optcode=61, optlen=None, archtypes=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ARCHTYPES           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. DHCP6OptClientArchType                    
DHCP6OptClientArchType fields

optcode

ShortEnumField

61

optlen

FieldLenField

None

archtypes

FieldListField

[]

class scapy.layers.dhcp6.DHCP6OptClientFQDN(_pkt, /, *, optcode=39, optlen=None, res=0, flags=<Flag 0 ()>, fqdn=b'.')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   RES   |FLAGS|              FQDN             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptClientFQDN                      
DHCP6OptClientFQDN fields

optcode

ShortEnumField

39

optlen

FieldLenField

None

res

BitField (5 bits)

0

flags

FlagsField

<Flag 0 ()>

fqdn

DNSStrField

b'.'

class scapy.layers.dhcp6.DHCP6OptClientId(_pkt, /, *, optcode=1, optlen=None, duid=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DUID             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptClientId                       
DHCP6OptClientId fields

optcode

ShortEnumField

1

optlen

FieldLenField

None

duid

PacketLenField

b''

class scapy.layers.dhcp6.DHCP6OptClientLinkLayerAddr(_pkt, /, *, optcode=79, optlen=None, lltype=1, clladdr='00:00:00:00:00:00')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             LLTYPE            |            CLLADDR            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                 Fig. DHCP6OptClientLinkLayerAddr                 
DHCP6OptClientLinkLayerAddr fields

optcode

ShortEnumField

79

optlen

FieldLenField

None

lltype

ShortField

1

clladdr

_LLAddrField

'00:00:00:00:00:00'

class scapy.layers.dhcp6.DHCP6OptClientNetworkInterId(_pkt, /, *, optcode=62, optlen=3, iitype=0, iimajor=0, iiminor=0)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     IITYPE    |    IIMAJOR    |    IIMINOR    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                Fig. DHCP6OptClientNetworkInterId                 
DHCP6OptClientNetworkInterId fields

optcode

ShortEnumField

62

optlen

ShortField

3

iitype

ByteField

0

iimajor

ByteField

0

iiminor

ByteField

0

class scapy.layers.dhcp6.DHCP6OptDNSDomains(_pkt, /, *, optcode=24, optlen=None, dnsdomains=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           DNSDOMAINS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptDNSDomains                      
DHCP6OptDNSDomains fields

optcode

ShortEnumField

24

optlen

FieldLenField

None

dnsdomains

DomainNameListField

[]

class scapy.layers.dhcp6.DHCP6OptDNSServers(_pkt, /, *, optcode=23, optlen=None, dnsservers=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           DNSSERVERS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptDNSServers                      
DHCP6OptDNSServers fields

optcode

ShortEnumField

23

optlen

FieldLenField

None

dnsservers

IP6ListField

[]

class scapy.layers.dhcp6.DHCP6OptERPDomain(_pkt, /, *, optcode=65, optlen=None, erpdomain=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ERPDOMAIN           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptERPDomain                      
DHCP6OptERPDomain fields

optcode

ShortEnumField

65

optlen

FieldLenField

None

erpdomain

DomainNameListField

[]

class scapy.layers.dhcp6.DHCP6OptElapsedTime(_pkt, /, *, optcode=8, optlen=2, elapsedtime=0)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          ELAPSEDTIME          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptElapsedTime                     
DHCP6OptElapsedTime fields

optcode

ShortEnumField

8

optlen

ShortField

2

elapsedtime

_ElapsedTimeField

0

class scapy.layers.dhcp6.DHCP6OptGeoConf(_pkt, /, *, optcode=36, optlen=None, what=2, country_code=b'FR', ca_elts=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      WHAT     |          COUNTRY CODE         |    CA ELTS    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                       Fig. DHCP6OptGeoConf                       
DHCP6OptGeoConf fields

optcode

ShortEnumField

36

optlen

FieldLenField

None

what

ByteEnumField

2

country_code

StrFixedLenField

b'FR'

ca_elts

PacketListField

[]

class scapy.layers.dhcp6.DHCP6OptGeoConfElement(_pkt, /, *, CAtype=0, CAlength=None, CAvalue=b'')[source]

Bases: 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     CATYPE    |            CALENGTH           |    CAVALUE    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                   Fig. DHCP6OptGeoConfElement                    
DHCP6OptGeoConfElement fields

CAtype

ByteField

0

CAlength

FieldLenField

None

CAvalue

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptIAAddress(_pkt, /, *, optcode=5, optlen=None, addr='::', preflft=0, validlft=0, iaaddropts=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              ADDR                             |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PREFLFT                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            VALIDLFT                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           IAADDROPTS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptIAAddress                      
DHCP6OptIAAddress fields

optcode

ShortEnumField

5

optlen

FieldLenField

None

addr

IP6Field

'::'

preflft

IntEnumField

0

validlft

IntEnumField

0

iaaddropts

PacketListField

[]

guess_payload_class(payload)[source]
class scapy.layers.dhcp6.DHCP6OptIAPrefix(_pkt, /, *, optcode=26, optlen=None, preflft=0, validlft=0, plen=48, prefix='2001:db8::', iaprefopts=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PREFLFT                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            VALIDLFT                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      PLEN     |                     PREFIX                    |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |           IAPREFOPTS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptIAPrefix                       
DHCP6OptIAPrefix fields

optcode

ShortEnumField

26

optlen

FieldLenField

None

preflft

IntEnumField

0

validlft

IntEnumField

0

plen

ByteField

48

prefix

IP6Field

'2001:db8::'

iaprefopts

PacketListField

[]

guess_payload_class(payload)[source]
class scapy.layers.dhcp6.DHCP6OptIA_NA(_pkt, /, *, optcode=3, optlen=None, iaid=None, T1=None, T2=None, ianaopts=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              IAID                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               T1                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               T2                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            IANAOPTS           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. DHCP6OptIA_NA                        
DHCP6OptIA_NA fields

optcode

ShortEnumField

3

optlen

FieldLenField

None

iaid

XIntField

None

T1

IntField

None

T2

IntField

None

ianaopts

PacketListField

[]

class scapy.layers.dhcp6.DHCP6OptIA_PD(_pkt, /, *, optcode=25, optlen=None, iaid=None, T1=None, T2=None, iapdopt=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              IAID                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               T1                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               T2                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            IAPDOPT            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. DHCP6OptIA_PD                        
DHCP6OptIA_PD fields

optcode

ShortEnumField

25

optlen

FieldLenField

None

iaid

XIntField

None

T1

IntField

None

T2

IntField

None

iapdopt

PacketListField

[]

class scapy.layers.dhcp6.DHCP6OptIA_TA(_pkt, /, *, optcode=4, optlen=None, iaid=None, iataopts=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              IAID                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            IATAOPTS           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. DHCP6OptIA_TA                        
DHCP6OptIA_TA fields

optcode

ShortEnumField

4

optlen

FieldLenField

None

iaid

XIntField

None

iataopts

PacketListField

[]

class scapy.layers.dhcp6.DHCP6OptIfaceId(_pkt, /, *, optcode=18, optlen=None, ifaceid=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            IFACEID            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. DHCP6OptIfaceId                       
DHCP6OptIfaceId fields

optcode

ShortEnumField

18

optlen

FieldLenField

None

ifaceid

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptInfoRefreshTime(_pkt, /, *, optcode=32, optlen=4, reftime=86400)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            REFTIME                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. DHCP6OptInfoRefreshTime                   
DHCP6OptInfoRefreshTime fields

optcode

ShortEnumField

32

optlen

ShortField

4

reftime

IntField

86400

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          LINKADDRESS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptLQClientLink                     
DHCP6OptLQClientLink fields

optcode

ShortEnumField

48

optlen

FieldLenField

None

linkaddress

IP6ListField

[]

class scapy.layers.dhcp6.DHCP6OptMudUrl(_pkt, /, *, optcode=112, optlen=None, mudstring=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           MUDSTRING           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. DHCP6OptMudUrl                        
DHCP6OptMudUrl fields

optcode

ShortEnumField

112

optlen

FieldLenField

None

mudstring

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptNISDomain(_pkt, /, *, optcode=29, optlen=None, nisdomain=b'.')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           NISDOMAIN           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptNISDomain                      
DHCP6OptNISDomain fields

optcode

ShortEnumField

29

optlen

FieldLenField

None

nisdomain

DNSStrField

b'.'

class scapy.layers.dhcp6.DHCP6OptNISPDomain(_pkt, /, *, optcode=30, optlen=None, nispdomain=b'.')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           NISPDOMAIN          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptNISPDomain                      
DHCP6OptNISPDomain fields

optcode

ShortEnumField

30

optlen

FieldLenField

None

nispdomain

DNSStrField

b'.'

class scapy.layers.dhcp6.DHCP6OptNISPServers(_pkt, /, *, optcode=28, optlen=None, nispservers=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          NISPSERVERS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptNISPServers                     
DHCP6OptNISPServers fields

optcode

ShortEnumField

28

optlen

FieldLenField

None

nispservers

IP6ListField

[]

class scapy.layers.dhcp6.DHCP6OptNISServers(_pkt, /, *, optcode=27, optlen=None, nisservers=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           NISSERVERS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptNISServers                      
DHCP6OptNISServers fields

optcode

ShortEnumField

27

optlen

FieldLenField

None

nisservers

IP6ListField

[]

class scapy.layers.dhcp6.DHCP6OptNTPServer(_pkt, /, *, optcode=56, optlen=None, ntpserver=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           NTPSERVER           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptNTPServer                      
DHCP6OptNTPServer fields

optcode

ShortEnumField

56

optlen

FieldLenField

None

ntpserver

PacketListField

[]

class scapy.layers.dhcp6.DHCP6OptNewPOSIXTimeZone(_pkt, /, *, optcode=41, optlen=None, optdata=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTDATA            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. DHCP6OptNewPOSIXTimeZone                   
DHCP6OptNewPOSIXTimeZone fields

optcode

ShortEnumField

41

optlen

FieldLenField

None

optdata

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptNewTZDBTimeZone(_pkt, /, *, optcode=42, optlen=None, optdata=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTDATA            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. DHCP6OptNewTZDBTimeZone                   
DHCP6OptNewTZDBTimeZone fields

optcode

ShortEnumField

42

optlen

FieldLenField

None

optdata

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptOptReq(_pkt, /, *, optcode=6, optlen=None, reqopts=[23, 24])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            REQOPTS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. DHCP6OptOptReq                        
DHCP6OptOptReq fields

optcode

ShortEnumField

6

optlen

FieldLenField

None

reqopts

_OptReqListField

[23, 24]

class scapy.layers.dhcp6.DHCP6OptPanaAuthAgent(_pkt, /, *, optcode=40, optlen=None, paaaddr=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            PAAADDR            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptPanaAuthAgent                    
DHCP6OptPanaAuthAgent fields

optcode

ShortEnumField

40

optlen

FieldLenField

None

paaaddr

IP6ListField

[]

class scapy.layers.dhcp6.DHCP6OptPref(_pkt, /, *, optcode=7, optlen=1, prefval=255)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    PREFVAL    |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6OptPref                         
DHCP6OptPref fields

optcode

ShortEnumField

7

optlen

ShortField

1

prefval

ByteField

255

class scapy.layers.dhcp6.DHCP6OptRapidCommit(_pkt, /, *, optcode=14, optlen=0)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptRapidCommit                     
DHCP6OptRapidCommit fields

optcode

ShortEnumField

14

optlen

ShortField

0

class scapy.layers.dhcp6.DHCP6OptReconfAccept(_pkt, /, *, optcode=20, optlen=0)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptReconfAccept                     
DHCP6OptReconfAccept fields

optcode

ShortEnumField

20

optlen

ShortField

0

class scapy.layers.dhcp6.DHCP6OptReconfMsg(_pkt, /, *, optcode=19, optlen=1, msgtype=11)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |
+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptReconfMsg                      
DHCP6OptReconfMsg fields

optcode

ShortEnumField

19

optlen

ShortField

1

msgtype

ByteEnumField

11

class scapy.layers.dhcp6.DHCP6OptRelayAgentERO(_pkt, /, *, optcode=43, optlen=None, reqopts=[23, 24])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            REQOPTS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptRelayAgentERO                    
DHCP6OptRelayAgentERO fields

optcode

ShortEnumField

43

optlen

FieldLenField

None

reqopts

_OptReqListField

[23, 24]

class scapy.layers.dhcp6.DHCP6OptRelayMsg(_pkt, /, *, optcode=9, optlen=None, message=<DHCP6  |>)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MESSAGE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptRelayMsg                       
DHCP6OptRelayMsg fields

optcode

ShortEnumField

9

optlen

FieldLenField

None

message

PacketLenField

<DHCP6  |>

class scapy.layers.dhcp6.DHCP6OptRelaySuppliedOpt(_pkt, /, *, optcode=66, optlen=None, relaysupplied=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         RELAYSUPPLIED         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. DHCP6OptRelaySuppliedOpt                   
DHCP6OptRelaySuppliedOpt fields

optcode

ShortEnumField

66

optlen

FieldLenField

None

relaysupplied

PacketListField

[]

class scapy.layers.dhcp6.DHCP6OptRemoteID(_pkt, /, *, optcode=37, optlen=None, enterprisenum=None, remoteid=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         ENTERPRISENUM                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            REMOTEID           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptRemoteID                       
DHCP6OptRemoteID fields

optcode

ShortEnumField

37

optlen

FieldLenField

None

enterprisenum

IntEnumField

None

remoteid

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptSIPDomains(_pkt, /, *, optcode=21, optlen=None, sipdomains=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           SIPDOMAINS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptSIPDomains                      
DHCP6OptSIPDomains fields

optcode

ShortEnumField

21

optlen

FieldLenField

None

sipdomains

DomainNameListField

[]

class scapy.layers.dhcp6.DHCP6OptSIPServers(_pkt, /, *, optcode=22, optlen=None, sipservers=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           SIPSERVERS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptSIPServers                      
DHCP6OptSIPServers fields

optcode

ShortEnumField

22

optlen

FieldLenField

None

sipservers

IP6ListField

[]

class scapy.layers.dhcp6.DHCP6OptSNTPServers(_pkt, /, *, optcode=31, optlen=None, sntpservers=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          SNTPSERVERS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptSNTPServers                     
DHCP6OptSNTPServers fields

optcode

ShortEnumField

31

optlen

FieldLenField

None

sntpservers

IP6ListField

[]

class scapy.layers.dhcp6.DHCP6OptServerId(_pkt, /, *, optcode=2, optlen=None, duid=b'')[source]

Bases: DHCP6OptClientId

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DUID             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptServerId                       
DHCP6OptServerId fields

optcode

ShortEnumField

2

optlen

FieldLenField

None

duid

PacketLenField

b''

class scapy.layers.dhcp6.DHCP6OptServerUnicast(_pkt, /, *, optcode=12, optlen=16, srvaddr=None)[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            SRVADDR                            |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptServerUnicast                    
DHCP6OptServerUnicast fields

optcode

ShortEnumField

12

optlen

ShortField

16

srvaddr

_SrvAddrField

None

class scapy.layers.dhcp6.DHCP6OptStatusCode(_pkt, /, *, optcode=13, optlen=None, statuscode=None, statusmsg=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           STATUSCODE          |           STATUSMSG           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptStatusCode                      
DHCP6OptStatusCode fields

optcode

ShortEnumField

13

optlen

FieldLenField

None

statuscode

ShortEnumField

None

statusmsg

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptSubscriberID(_pkt, /, *, optcode=38, optlen=None, subscriberid=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          SUBSCRIBERID         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. DHCP6OptSubscriberID                     
DHCP6OptSubscriberID fields

optcode

ShortEnumField

38

optlen

FieldLenField

None

subscriberid

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptUnknown(_pkt, /, *, optcode=0, optlen=None, data=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. DHCP6OptUnknown                       
DHCP6OptUnknown fields

optcode

ShortEnumField

0

optlen

FieldLenField

None

data

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptUserClass(_pkt, /, *, optcode=15, optlen=None, userclassdata=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         USERCLASSDATA         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6OptUserClass                      
DHCP6OptUserClass fields

optcode

ShortEnumField

15

optlen

FieldLenField

None

userclassdata

_UserClassDataField

[]

class scapy.layers.dhcp6.DHCP6OptVSS(_pkt, /, *, optcode=68, optlen=None, type=255, data=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      TYPE     |              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. DHCP6OptVSS                         
DHCP6OptVSS fields

optcode

ShortEnumField

68

optlen

FieldLenField

None

type

ByteField

255

data

StrLenField

b''

class scapy.layers.dhcp6.DHCP6OptVendorClass(_pkt, /, *, optcode=16, optlen=None, enterprisenum=None, vcdata=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         ENTERPRISENUM                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             VCDATA            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6OptVendorClass                     
DHCP6OptVendorClass fields

optcode

ShortEnumField

16

optlen

FieldLenField

None

enterprisenum

IntEnumField

None

vcdata

_VendorClassDataField

[]

class scapy.layers.dhcp6.DHCP6OptVendorSpecificInfo(_pkt, /, *, optcode=17, optlen=None, enterprisenum=None, vso=[])[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         ENTERPRISENUM                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              VSO              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                 Fig. DHCP6OptVendorSpecificInfo                  
DHCP6OptVendorSpecificInfo fields

optcode

ShortEnumField

17

optlen

FieldLenField

None

enterprisenum

IntEnumField

None

vso

_VendorClassDataField

[]

class scapy.layers.dhcp6.DHCP6_Advertise(_pkt, /, *, msgtype=2, trid=0)[source]

Bases: DHCP6

aliastypes
answers(other)[source]
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                       Fig. DHCP6_Advertise                       
DHCP6_Advertise fields

msgtype

ByteEnumField

2

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_Confirm(_pkt, /, *, msgtype=4, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6_Confirm                        
DHCP6_Confirm fields

msgtype

ByteEnumField

4

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_Decline(_pkt, /, *, msgtype=9, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6_Decline                        
DHCP6_Decline fields

msgtype

ByteEnumField

9

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_InfoRequest(_pkt, /, *, msgtype=11, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                      Fig. DHCP6_InfoRequest                      
DHCP6_InfoRequest fields

msgtype

ByteEnumField

11

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_Rebind(_pkt, /, *, msgtype=6, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6_Rebind                         
DHCP6_Rebind fields

msgtype

ByteEnumField

6

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_Reconf(_pkt, /, *, msgtype=10, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6_Reconf                         
DHCP6_Reconf fields

msgtype

ByteEnumField

10

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_RelayForward(_pkt, /, *, msgtype=12, hopcount=None, linkaddr='::', peeraddr='::')[source]

Bases: _DHCP6OptGuessPayload, 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |    HOPCOUNT   |            LINKADDR           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |            PEERADDR           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. DHCP6_RelayForward                      
DHCP6_RelayForward fields

msgtype

ByteEnumField

12

hopcount

ByteField

None

linkaddr

IP6Field

'::'

peeraddr

IP6Field

'::'

hashret()[source]
class scapy.layers.dhcp6.DHCP6_RelayReply(_pkt, /, *, msgtype=13, hopcount=None, linkaddr='::', peeraddr='::')[source]

Bases: DHCP6_RelayForward

aliastypes
answers(other)[source]
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |    HOPCOUNT   |            LINKADDR           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |            PEERADDR           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. DHCP6_RelayReply                       
DHCP6_RelayReply fields

msgtype

ByteEnumField

13

hopcount

ByteField

None

linkaddr

IP6Field

'::'

peeraddr

IP6Field

'::'

hashret()[source]
class scapy.layers.dhcp6.DHCP6_Release(_pkt, /, *, msgtype=8, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6_Release                        
DHCP6_Release fields

msgtype

ByteEnumField

8

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_Renew(_pkt, /, *, msgtype=5, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                         Fig. DHCP6_Renew                         
DHCP6_Renew fields

msgtype

ByteEnumField

5

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_Reply(_pkt, /, *, msgtype=7, trid=0)[source]

Bases: DHCP6

aliastypes
answers(other)[source]
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                         Fig. DHCP6_Reply                         
DHCP6_Reply fields

msgtype

ByteEnumField

7

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_Request(_pkt, /, *, msgtype=3, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6_Request                        
DHCP6_Request fields

msgtype

ByteEnumField

3

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCP6_Solicit(_pkt, /, *, msgtype=1, trid=0)[source]

Bases: DHCP6

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MSGTYPE    |                      TRID                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. DHCP6_Solicit                        
DHCP6_Solicit fields

msgtype

ByteEnumField

1

trid

X3BytesField

0

class scapy.layers.dhcp6.DHCPv6_am(self, dns='2001:500::1035', domain='localdomain, local', startip='2001:db8::1', endip='2001:db8::20', duid=None, sntpservers=None, sipdomains=None, sipservers=None, nisdomain=None, nisservers=None, nispdomain=None, nispservers=None, bcmcsservers=None, bcmcsdomains=None, iface=None, debug=0, advpref=255)[source]

Bases: AnsweringMachine

filter: str | None = 'udp and port 546 and port 547'
function_name = 'dhcp6d'
is_request(p)[source]
make_reply(req)[source]
optam0: Dict[str, Any]
optam1: Dict[str, Any]
optam2: Dict[str, Any]
optsend: Dict[str, Any]
optsniff: Dict[str, Any]
parse_options(dns='2001:500::1035', domain='localdomain, local', startip='2001:db8::1', endip='2001:db8::20', duid=None, sntpservers=None, sipdomains=None, sipservers=None, nisdomain=None, nisservers=None, nispdomain=None, nispservers=None, bcmcsservers=None, bcmcsdomains=None, iface=None, debug=0, advpref=255)[source]
print_reply(req, reply)[source]
usage()[source]
class scapy.layers.dhcp6.DUID_EN(_pkt, /, *, type=2, enterprisenum=311, id=b'')[source]

Bases: 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             |         ENTERPRISENUM         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |               ID              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           Fig. DUID_EN                           
DUID_EN fields

type

ShortEnumField

2

enterprisenum

IntEnumField

311

id

StrField

b''

class scapy.layers.dhcp6.DUID_LL(_pkt, /, *, type=3, hwtype=1, lladdr='00:00:00:00:00:00')[source]

Bases: 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             |             HWTYPE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             LLADDR                            |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           Fig. DUID_LL                           
DUID_LL fields

type

ShortEnumField

3

hwtype

XShortEnumField

1

lladdr

_LLAddrField

'00:00:00:00:00:00'

class scapy.layers.dhcp6.DUID_LLT(_pkt, /, *, type=1, hwtype=1, timeval=0, lladdr='00:00:00:00:00:00')[source]

Bases: 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             |             HWTYPE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            TIMEVAL                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             LLADDR                            |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. DUID_LLT                           
DUID_LLT fields

type

ShortEnumField

1

hwtype

XShortEnumField

1

timeval

_UTCTimeField

0

lladdr

_LLAddrField

'00:00:00:00:00:00'

class scapy.layers.dhcp6.DUID_UUID(_pkt, /, *, type=4, uuid=None)[source]

Bases: 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             |              UUID             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. DUID_UUID                          
DUID_UUID fields

type

ShortEnumField

4

uuid

UUIDField

None

class scapy.layers.dhcp6.USER_CLASS_DATA(_pkt, /, *, len=None, data=b'')[source]

Bases: 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. USER_CLASS_DATA                       
USER_CLASS_DATA fields

len

FieldLenField

None

data

StrLenField

b''

guess_payload_class(payload)[source]
class scapy.layers.dhcp6.VENDOR_CLASS_DATA(_pkt, /, *, len=None, data=b'')[source]

Bases: USER_CLASS_DATA

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. VENDOR_CLASS_DATA                      
VENDOR_CLASS_DATA fields

len

FieldLenField

None

data

StrLenField

b''

class scapy.layers.dhcp6.VENDOR_SPECIFIC_OPTION(_pkt, /, *, optcode=None, optlen=None, optdata=b'')[source]

Bases: _DHCP6OptGuessPayload

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTCODE            |             OPTLEN            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OPTDATA            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. VENDOR_SPECIFIC_OPTION                    
VENDOR_SPECIFIC_OPTION fields

optcode

ShortField

None

optlen

FieldLenField

None

optdata

StrLenField

b''

guess_payload_class(payload)[source]
scapy.layers.dhcp6.get_cls(name, fallback_cls)[source]