HOPOPT - IPv6 Hop-by-Hop Options¶
pcapkit.protocols.internet.hopopt
contains
HOPOPT
only, which implements extractor for IPv6 Hop-by-Hop
Options header (HOPOPT) *, whose structure is
described as below:
Octets |
Bits |
Name |
Description |
---|---|---|---|
0 |
0 |
|
Next Header |
1 |
8 |
|
Header Extensive Length |
2 |
16 |
|
Options |
- class pcapkit.protocols.internet.hopopt.HOPOPT(file=None, length=None, **kwargs)[source]¶
-
This class implements IPv6 Hop-by-Hop Options.
This class currently supports parsing of the following IPv6 Hop-by-Hop options, which are registered in the
self.__option__
attribute:Option Code
Option Parser
- Parameters
*args (Any) – Arbitrary positional arguments.
**kwargs (Any) – Arbitrary keyword arguments.
- Return type
Protocol[PT]
- __post_init__(file: BinaryIO, length: Optional[int] = None, *, extension: bool = False, **kwargs: Any) None [source]¶
- __post_init__(**kwargs: Any) None
Post initialisation hook.
- Parameters
See also
For construction argument, please refer to
make()
.- Return type
- property name: Literal['IPv6 Hop-by-Hop Options']¶
Name of current protocol.
- Return type
Literal[“IPv6 Hop-by-Hop Options”]
- property payload: Protocol | NoReturn¶
Payload of current instance.
- Raises
UnsupportedCall – if the protocol is used as an IPv6 extension header
- Return type
- property protocol: Optional[str] | NoReturn¶
Name of next layer protocol (if any).
- Raises
UnsupportedCall – if the protocol is used as an IPv6 extension header
- property protochain: ProtoChain | NoReturn¶
Protocol chain of current instance.
- Raises
UnsupportedCall – if the protocol is used as an IPv6 extension header
- Return type
ProtoChain | NoReturn
- read(length=None, *, extension=False, **kwargs)[source]¶
Read IPv6 Hop-by-Hop Options.
Structure of HOPOPT header [RFC 8200]:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Header | Hdr Ext Len | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | . . . Options . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- classmethod register_option(code, meth)[source]¶
Register an option parser.
- Parameters
code (RegType_Option) – HOPOPT option code.
meth (str | OptionParser) – Method name or callable to parse the option.
- Return type
None
- _read_opt_type(kind)[source]¶
Read option type field.
- Parameters
kind (int) – option kind value
- Returns
Extracted HOPOPT option type field information (unknown option action and change flag), c.f. [RFC 8200#section-4.2].
- Return type
- _read_hopopt_options(length)[source]¶
Read HOPOPT options.
- Positional arguments:
length: length of options
- Return type
- Returns
Extracted HOPOPT options
- Raises
ProtocolError – If the threshold is NOT matching.
- Parameters
length (int) –
- _read_opt_none(code, acts, cflg, *, options)[source]¶
Read HOPOPT unassigned options.
Structure of HOPOPT unassigned options [RFC 8200]:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - - | Option Type | Opt Data Len | Option Data +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - -
- _read_opt_pad(code, acts, cflg, *, options)[source]¶
Read HOPOPT padding options.
Structure of HOPOPT padding options [RFC 8200]:
Pad1
option:+-+-+-+-+-+-+-+-+ | 0 | +-+-+-+-+-+-+-+-+
PadN
option:+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - - | 1 | Opt Data Len | Option Data +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - -
- Parameters
- Return type
DataType_PadOption
- Returns
Parsed option data.
- Raises
ProtocolError – If
code
is NOT0
or1
.
- _read_opt_tun(code, acts, cflg, *, options)[source]¶
Read HOPOPT Tunnel Encapsulation Limit option.
Structure of HOPOPT Tunnel Encapsulation Limit option [RFC 2473]:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Header |Hdr Ext Len = 0| Opt Type = 4 |Opt Data Len=1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Tun Encap Lim |PadN Opt Type=1|Opt Data Len=1 | 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_TunnelEncapsulationLimitOption
- Returns
Parsed option data.
- Raises
ProtocolError – If
hopopt.tun.length
is NOT1
.
- _read_opt_ra(code, acts, cflg, *, options)[source]¶
Read HOPOPT Router Alert option.
Structure of HOPOPT Router Alert option [RFC 2711]:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |0 0 0|0 0 1 0 1|0 0 0 0 0 0 1 0| Value (2 octets) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_RouterAlertOption
- Returns
Parsed option data.
- Raises
ProtocolError – If
hopopt.tun.length
is NOT2
.
- _read_opt_calipso(code, acts, cflg, *, options)[source]¶
Read HOPOPT Common Architecture Label IPv6 Security Option (CALIPSO) option.
Structure of HOPOPT CALIPSO option [RFC 5570]:
------------------------------------------------------------ | Next Header | Hdr Ext Len | Option Type | Option Length| +-------------+---------------+-------------+--------------+ | CALIPSO Domain of Interpretation | +-------------+---------------+-------------+--------------+ | Cmpt Length | Sens Level | Checksum (CRC-16) | +-------------+---------------+-------------+--------------+ | Compartment Bitmap (Optional; variable length) | +-------------+---------------+-------------+--------------+
- Parameters
- Return type
DataType_CALIPSOOption
- Returns
Parsed option data.
- Raises
ProtocolError – If the option is malformed.
- _read_opt_smf_dpd(code, acts, cflg, *, options)[source]¶
Read HOPOPT Simplified Multicast Forwarding Duplicate Packet Detection (
SMF_DPD
) option.Structure of HOPOPT
SMF_DPD
option [RFC 6621]:IPv6
SMF_DPD
option header in I-DPD (Identification-Based DPD) mode0 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ... |0|0|0| 01000 | Opt. Data Len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |0|TidTy| TidLen| TaggerID (optional) ... | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | Identifier ... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
IPv6
SMF_DPD
option header in H-DPD (Hash-Based) mode0 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ... |0|0|0| OptType | Opt. Data Len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |1| Hash Assist Value (HAV) ... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_SMFIdentificationBasedDPDOption | DataType_SMFHashBasedDPDOption
- Returns
Parsed option data.
- Raises
ProtocolError – If the option is malformed.
- _read_opt_pdm(code, acts, cflg, *, options)[source]¶
Read HOPOPT Performance and Diagnostic Metrics (PDM) option.
Structure of HOPOPT PDM option [RFC 8250]:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option Type | Option Length | ScaleDTLR | ScaleDTLS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PSN This Packet | PSN Last Received | |-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Delta Time Last Received | Delta Time Last Sent | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_PDMOption
- Returns
Parsed option data.
- Raises
ProtocolError – If
hopopt.pdm.length
is NOT10
.
- _read_opt_qs(code, acts, cflg, *, options)[source]¶
Read HOPOPT Quick Start option.
Structure of HOPOPT Quick-Start option [RFC 4782]:
A Quick-Start Request:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option | Length=6 | Func. | Rate | QS TTL | | | | 0000 |Request| | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QS Nonce | R | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Report of Approved Rate:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option | Length=6 | Func. | Rate | Not Used | | | | 1000 | Report| | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | QS Nonce | R | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_QuickStartOption
- Returns
Parsed option data.
- Raises
ProtocolError – If the option is malformed.
- _read_opt_rpl(code, acts, cflg, *, options)[source]¶
Read HOPOPT Routing Protocol for Low-Power and Lossy Networks (RPL) option.
Structure of HOPOPT RPL option [RFC 6553]:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option Type | Opt Data Len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |O|R|F|0|0|0|0|0| RPLInstanceID | SenderRank | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | (sub-TLVs) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_RPLOption
- Returns
Parsed option data.
- Raises
ProtocolError – If
hopopt.rpl.length
is NOT4
.
- _read_opt_mpl(code, acts, cflg, *, options)[source]¶
Read HOPOPT Multicast Protocol for Low-Power and Lossy Networks (MPL) option.
Structure of HOPOPT MPL option [RFC 7731]:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option Type | Opt Data Len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | S |M|V| rsv | sequence | seed-id (optional) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_MPLOption
- Returns
Parsed option data.
- Raises
ProtocolError – If the option is malformed.
- _read_opt_ilnp(code, acts, cflg, *, options)[source]¶
Read HOPOPT Identifier-Locator Network Protocol (ILNP) Nonce option.
Structure of HOPOPT ILNP Nonce option [RFC 6744]:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Header | Hdr Ext Len | Option Type | Option Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / Nonce Value / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- _read_opt_lio(code, acts, cflg, *, options)[source]¶
Read HOPOPT Line-Identification option.
Structure of HOPOPT Line-Identification option [RFC 6788]:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option Type | Option Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LineIDLen | Line ID... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- _read_opt_jumbo(code, acts, cflg, *, options)[source]¶
Read HOPOPT Jumbo Payload option.
Structure of HOPOPT Jumbo Payload option [RFC 2675]:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option Type | Opt Data Len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Jumbo Payload Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_JumboPayloadOption
- Returns
Parsed option data.
- Raises
ProtocolError – If
hopopt.jumbo.length
is NOT4
.
- _read_opt_home(code, acts, cflg, *, options)[source]¶
Read HOPOPT Home Address option.
Structure of HOPOPT Home Address option [RFC 6275]:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option Type | Option Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + + | | + Home Address + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_HomeAddressOption
- Returns
Parsed option data.
- Raises
ProtocolError – If
hopopt.jumbo.length
is NOT16
.
- _read_opt_ip_dff(code, acts, cflg, *, options)[source]¶
Read HOPOPT Depth-First Forwarding (
IP_DFF
) option.Structure of HOPOPT
IP_DFF
option [RFC 6971]: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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Header | Hdr Ext Len | OptTypeDFF | OptDataLenDFF | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |VER|D|R|0|0|0|0| Sequence Number | Pad1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Return type
DataType_IPDFFOption
- Returns
Parsed option data.
- Raises
ProtocolError – If
hopopt.ip_dff.length
is NOT2
.
- __option__: DefaultDict[int, str | OptionParser]¶
Option code to method mapping, c.f.
_read_hopopt_options()
. Method names are expected to be referred to the class by_read_opt_${name}
, and if such name not found, the value should then be a method that can parse the option by itself.- Type
DefaultDict[RegType_Option, str | OptionParser]
Data Structures¶
- class pcapkit.protocols.data.internet.hopopt.HOPOPT(next, length, options)[source]¶
Bases:
Info
Data model for HOPOPT protocol.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- options: OrderedMultiDict[RegType_Option, Option]¶
HOPOPT options.
- class pcapkit.protocols.data.internet.hopopt.Option(type, action, change, length)[source]¶
Bases:
Info
Data model for HOPOPT option data.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- type: RegType_Option¶
Option type.
- class pcapkit.protocols.data.internet.hopopt.UnassignedOption(type, action, change, length, data)[source]¶
Bases:
Option
Data model for HOPOPT unassigned option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.PadOption(type, action, change, length)[source]¶
Bases:
Option
Data model for HOPOPT padding options.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.TunnelEncapsulationLimitOption(type, action, change, length, limit)[source]¶
Bases:
Option
Data model for HOPOPT tunnel encapsulation limit option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.RouterAlertOption(type, action, change, length, value)[source]¶
Bases:
Option
Data model for HOPOPT router alter option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- value: RouterAlert¶
Router alter value.
- class pcapkit.protocols.data.internet.hopopt.CALIPSOOption(type, action, change, length, domain, cmpt_len, level, checksum)[source]¶
Bases:
Option
Data model for HOPOPT Common Architecture Label IPv6 Security Option (CALIPSO) option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.SMFDPDOption(type, action, change, length, dpd_type, tid_type)[source]¶
Bases:
Option
Data model for HOPOPT Simplified Multicast Forwarding Duplicate Packet Detection (
SMF_DPD
) option.- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- dpd_type: SMFDPDMode¶
DPD type.
- class pcapkit.protocols.data.internet.hopopt.SMFIdentificationBasedDPDOption(type, action, change, length, pdm_type, tid_type, tid_len, tid, id)[source]¶
Bases:
SMFDPDOption
Data model for HOPOPT I-DPD (Identification-Based DPD) option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.SMFHashBasedDPDOption(type, action, change, length, pdm_type, tid_type, hav)[source]¶
Bases:
SMFDPDOption
Data model for HOPOPT H-DPD (Hash-Based DPD) option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.PDMOption(type, action, change, length, scaledtlr, scaledtls, psntp, psnlr, deltatlr, deltatls)[source]¶
Bases:
Option
Data model for HOPOPT Performance Diagnostic Metrics (PDM) option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- scaledtlr: timedelta¶
Scale delta time last received.
- scaledtls: timedelta¶
Scale delta time last sent.
- deltatlr: timedelta¶
Delta time last received.
- deltatls: timedelta¶
Delta time last sent.
- class pcapkit.protocols.data.internet.hopopt.QuickStartOption(type, action, change, length, func, rate, ttl, nounce)[source]¶
Bases:
Option
Data model for HOPOPT Quick Start option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- func: QSFunction¶
QS function.
- ttl: Optional[timedelta]¶
TTL.
- class pcapkit.protocols.data.internet.hopopt.RPLOption(type, action, change, length, flags, id, rank)[source]¶
Bases:
Option
Data model for HOPOPT Routing Protocol for Low-Power and Lossy Networks (RPL) option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.RPLFlags(down, rank_err, fwd_err)[source]¶
Bases:
Info
Data model for HOPOPT RPL option flags fields.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.MPLOption(type, action, change, length, seed_type, flags, seq, seed_id)[source]¶
Bases:
Option
Data model for HOPOPT Multicast Protocol for Low-Power and Lossy Networks (MPL) option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.MPLFlags(max, verification)[source]¶
Bases:
Info
Data model for HOPOPT MPL option flags fields.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.ILNPOption(type, action, change, length, nounce)[source]¶
Bases:
Option
Data model for HOPOPT Identifier-Locator Network Protocol (ILNP) Nonce option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.LineIdentificationOption(type, action, change, length, line_id_len, line_id)[source]¶
Bases:
Option
Data model for HOPOPT Line-Identification option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.JumboPayloadOption(type, action, change, length, payload_len)[source]¶
Bases:
Option
Data model for Jumbo Payload option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.HomeAddressOption(type, action, change, length, address)[source]¶
Bases:
Option
Data model for HOPOPT Home Address option.
- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- address: IPv6Address¶
Home address.
- class pcapkit.protocols.data.internet.hopopt.IPDFFOption(type, action, change, length, version, flags, seq)[source]¶
Bases:
Option
Data model for HOPOPT Depth-First Forwarding (
IP_DFF
) option.- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type
- class pcapkit.protocols.data.internet.hopopt.DFFFlags(dup, ret)[source]¶
Bases:
Info
Data model for HOPOPT
IP_DFF
option flags.- Parameters
*args (VT) – Arbitrary positional arguments.
**kwargs (VT) – Arbitrary keyword arguments.
- Return type