HIP - Host Identity Protocol¶
pcapkit.protocols.internet.hip contains
HIP only,
which implements extractor for Host Identity
Protocol (HIP) *, whose structure is described
as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Next Header |
1 |
8 |
|
Header Length |
2 |
16 |
Reserved ( |
|
2 |
17 |
|
Packet Type |
3 |
24 |
|
Version |
3 |
28 |
Reserved |
|
3 |
31 |
Reserved ( |
|
4 |
32 |
|
Checksum |
6 |
48 |
|
Controls |
8 |
64 |
|
Sender’s Host Identity Tag |
24 |
192 |
|
Receiver’s Host Identity Tag |
40 |
320 |
|
HIP Parameters |
-
class
pcapkit.protocols.internet.hip.HIP(file=None, length=None, **kwargs)[source]¶ Bases:
pcapkit.protocols.internet.internet.InternetThis class implements Host Identity Protocol.
-
classmethod
__index__()[source]¶ Numeral registry index of the protocol.
- Returns
Numeral registry index of the protocol in IANA.
- Return type
-
__post_init__(file, length=None, *, extension=False, **kwargs)[source]¶ Post initialisation hook.
- Parameters
file (io.BytesIO) – Source packet stream.
length (Optional[int]) – Length of packet data.
- Keyword Arguments
extension (bool) – If the protocol is used as an IPv6 extension header.
**kwargs – Arbitrary keyword arguments.
See also
For construction argument, please refer to
make().
-
_read_hip_para(length, *, version)[source]¶ Read HIP parameters.
- Parameters
length (int) – length of parameters
- Keyword Arguments
version (Litreal[1, 2]) – HIP version
- Returns
extracted HIP parameters
- Return type
Tuple[Tuple[pcapkit.const.hip.parameter.Parameter], DataType_Parameter]
- Raises
ProtocolError – if packet length threshold check failed
-
_read_para_ack(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ACKparameter.Structure of HIP
ACKparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | peer Update ID 1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / peer Update ID n | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT4modulo.
-
_read_para_ack_data(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ACK_DATAparameter.Structure of HIP
ACK_DATAparameter [RFC 6078]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Acked Sequence number / / / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT4modulo.
-
_read_para_cert(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
CERTparameter.Structure of HIP
CERTparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CERT group | CERT count | CERT ID | CERT type | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Certificate / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | Padding (variable length) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_dh_group_list(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
DH_GROUP_LISTparameter.Structure of HIP
DH_GROUP_LISTparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DH GROUP ID #1| DH GROUP ID #2| DH GROUP ID #3| DH GROUP ID #4| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DH GROUP ID #n| Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_diffie_hellman(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
DIFFIE_HELLMANparameter.Structure of HIP
DIFFIE_HELLMANparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Group ID | Public Value Length | Public Value / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
DataType_Param_Diffie_Hellman
-
_read_para_echo_request_signed(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ECHO_REQUEST_SIGNEDparameter.Structure of HIP
ECHO_REQUEST_SIGNEDparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Opaque data (variable length) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_echo_request_unsigned(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ECHO_REQUEST_UNSIGNEDparameter.Structure of HIP
ECHO_REQUEST_UNSIGNEDparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Opaque data (variable length) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_echo_response_signed(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ECHO_RESPONSE_SIGNEDparameter.Structure of HIP
ECHO_RESPONSE_SIGNEDparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Opaque data (variable length) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_echo_response_unsigned(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ECHO_RESPONSE_UNSIGNEDparameter.Structure of HIP
ECHO_RESPONSE_UNSIGNEDparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Opaque data (variable length) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_encrypted(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ENCRYPTEDparameter.Structure of HIP
ENCRYPTEDparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IV / / / / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / / Encrypted data / / / / +-------------------------------+ / | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_esp_info(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ESP_INFOparameter.Structure of HIP
ESP_INFOparameter [RFC 7402]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved | KEYMAT Index | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OLD SPI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NEW SPI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT12.
-
_read_para_esp_transform(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ESP_TRANSFORMparameter.Structure of HIP
ESP_TRANSFORMparameter [RFC 7402]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved | Suite ID #1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Suite ID #2 | Suite ID #3 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Suite ID #n | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT2modulo.
-
_read_para_from(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
FROMparameter.Structure of HIP
FROMparameter [RFC 8004]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT16.
-
_read_para_hip_cipher(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HIP_CIPHERparameter.Structure of HIP
HIP_CIPHERparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Cipher ID #1 | Cipher ID #2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Cipher ID #n | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT a2modulo.
-
_read_para_hip_mac(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HIP_MACparameter.Structure of HIP
HIP_MACparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | HMAC | / / / +-------------------------------+ | | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_hip_mac_2(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HIP_MAC_2parameter.Structure of HIP
HIP_MAC_2parameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | HMAC | / / / +-------------------------------+ | | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_hip_signature(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HIP_SIGNATUREparameter.Structure of HIP
HIP_SIGNATUREparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SIG alg | Signature / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_hip_signature_2(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HIP_SIGNATURE_2parameter.Structure of HIP
HIP_SIGNATURE_2parameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SIG alg | Signature / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_hip_transform(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HIP_TRANSFORMparameter.Structure of HIP
HIP_TRANSFORMparameter [RFC 5201]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Suite ID #1 | Suite ID #2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Suite ID #n | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – The parameter is ONLY supported in HIPv1.
-
_read_para_hip_transport_mode(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HIP_TRANSPORT_MODEparameter.Structure of HIP
HIP_TRANSPORT_MODEparameter [RFC 6261]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Port | Mode ID #1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Mode ID #2 | Mode ID #3 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Mode ID #n | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT2modulo.
-
_read_para_hit_suite_list(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HIT_SUITE_LISTparameter.Structure of HIP
HIT_SUITE_LISTparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID #1 | ID #2 | ID #3 | ID #4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID #n | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_host_id(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
HOST_IDparameter.Structure of HIP
HOST_IDparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HI Length |DI-Type| DI Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Algorithm | Host Identity / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | Domain Identifier / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_locator_set(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
LOCATOR_SETparameter.Structure of HIP
LOCATOR_SETparameter [RFC 8046]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Traffic Type | Locator Type | Locator Length | Reserved |P| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Locator Lifetime | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Locator | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Traffic Type | Locator Type | Locator Length | Reserved |P| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Locator Lifetime | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Locator | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If locator data is malformed.
-
_read_para_nat_traversal_mode(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
NAT_TRAVERSAL_MODEparameter.Structure of HIP
NAT_TRAVERSAL_MODEparameter [RFC 5770]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved | Mode ID #1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Mode ID #2 | Mode ID #3 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Mode ID #n | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT a2modulo.
-
_read_para_notification(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
NOTIFICATIONparameter.Structure of HIP
NOTIFICATIONparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved | Notify Message Type | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | / / Notification Data / / +---------------+ / | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – Unregistered notify message type.
-
_read_para_overlay_id(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
OVERLAY_IDparameter.Structure of HIP
OVERLAY_IDparameter [RFC 6079]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Identifier / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_overlay_ttl(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
OVERLAY_TTLparameter.Structure of HIP
OVERLAY_TTLparameter [RFC 6078]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TTL | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT4.
-
_read_para_payload_mic(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
PAYLOAD_MICparameter.Structure of HIP
PAYLOAD_MICparameter [RFC 6078]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Header | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload Data | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | / MIC Value / / +-+-+-+-+-+-+-+-+ | | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_puzzle(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
PUZZLEparameter.Structure of HIP
PUZZLEparameter [RFC 5201][RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | #K, 1 byte | Lifetime | Opaque, 2 bytes | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Random #I, RHASH_len / 8 bytes | / / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – The parameter is ONLY supported in HIPv1.
-
_read_para_r1_counter(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
R1_COUNTERparameter.Structure of HIP
R1_COUNTERparameter [RFC 5201][RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved, 4 bytes | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | R1 generation counter, 8 bytes | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT12or the parameter is NOT used in HIPv1.
-
_read_para_reg_failed(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
REG_FAILEDparameter.Structure of HIP
REG_FAILEDparameter [RFC 8003]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Lifetime | Reg Type #1 | Reg Type #2 | Reg Type #3 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | ... | Reg Type #n | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Padding + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If the registration type is invalid.
-
_read_para_reg_from(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
REG_FROMparameter.Structure of HIP
REG_FROMparameter [RFC 5770]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Port | Protocol | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT20.
-
_read_para_reg_info(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
REG_INFOparameter.Structure of HIP
REG_INFOparameter [RFC 8003]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Min Lifetime | Max Lifetime | Reg Type #1 | Reg Type #2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | ... | Reg Type #n | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Padding + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If the registration type is invalid.
-
_read_para_reg_request(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
REG_REQUESTparameter.Structure of HIP
REG_REQUESTparameter [RFC 8003]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Lifetime | Reg Type #1 | Reg Type #2 | Reg Type #3 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | ... | Reg Type #n | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Padding + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If the registration type is invalid.
-
_read_para_reg_response(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
REG_RESPONSEparameter.Structure of HIP
REG_RESPONSEparameter [RFC 8003]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Lifetime | Reg Type #1 | Reg Type #2 | Reg Type #3 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | ... | Reg Type #n | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Padding + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If the registration type is invalid.
-
_read_para_relay_from(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
RELAY_FROMparameter.Structure of HIP
RELAY_FROMparameter [RFC 5770]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Port | Protocol | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT20.
-
_read_para_relay_hmac(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
RELAY_HMACparameter.Structure of HIP
RELAY_HMACparameter [RFC 5770]: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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | HMAC | / / / +-------------------------------+ | | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_relay_to(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
RELAY_TOparameter.Structure of HIP
RELAY_TOparameter [RFC 5770]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Port | Protocol | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT20.
-
_read_para_route_dst(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ROUTE_DSTparameter.Structure of HIP
ROUTE_DSTparameter [RFC 6028]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Flags | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | HIT #1 | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | HIT #n | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If the parameter is malformed.
-
_read_para_route_via(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
ROUTE_VIAparameter.Structure of HIP
ROUTE_VIAparameter [RFC 6028]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Flags | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | HIT #1 | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | HIT #n | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If the parameter is malformed.
-
_read_para_rvs_hmac(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
RVS_HMACparameter.Structure of HIP
RVS_HMACparameter [RFC 8004]: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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | HMAC | / / / +-------------------------------+ | | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_seq(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
SEQparameter.Structure of HIP
SEQparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Update ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT4.
-
_read_para_seq_data(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
SEQ_DATAparameter.Structure of HIP
SEQ_DATAparameter [RFC 6078]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT4.
-
_read_para_solution(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
SOLUTIONparameter.Structure of HIP
SOLUTIONparameter [RFC 5201][RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | #K, 1 byte | Lifetime | Opaque, 2 bytes | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Random #I, n bytes | / / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Puzzle solution #J, RHASH_len / 8 bytes | / / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – The parameter is ONLY supported in HIPv1.
-
_read_para_transaction_id(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
TRANSACTION_IDparameter.Structure of HIP
TRANSACTION_IDparameter [RFC 6078]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Identifier / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_transaction_pacing(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
TRANSACTION_PACINGparameter.Structure of HIP
TRANSACTION_PACINGparameter [RFC 5770]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Min Ta | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT4.
-
_read_para_transport_format_list(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
TRANSPORT_FORMAT_LISTparameter.Structure of HIP
TRANSPORT_FORMAT_LISTparameter [RFC 7401]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TF type #1 | TF type #2 / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ / TF type #n | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT2modulo.
-
_read_para_unassigned(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP unassigned parameters.
Structure of HIP unassigned parameters [RFC 5201][RFC 7401]:
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 |C| Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | / Contents / / +-+-+-+-+-+-+-+-+ | | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
-
_read_para_via_rvs(code, cbit, clen, *, desc, length, version)[source]¶ Read HIP
VIA_RVSparameter.Structure of HIP
VIA_RVSparameter [RFC 6028]: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 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Address | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
- Keyword Arguments
desc (pcapkit.const.hip.parameter.Parameter) – parameter type
length (int) – remaining packet length
version (Literal[1, 2]) – HIP protocol version
- Returns
Parsed parameter data.
- Return type
- Raises
ProtocolError – If
clenis NOT16modulo.
-
make(**kwargs)[source]¶ Make (construct) packet data.
- Keyword Arguments
**kwargs – Arbitrary keyword arguments.
- Returns
Constructed packet data.
- Return type
-
read(length=None, *, extension=False, **kwargs)[source]¶ Read Host Identity Protocol.
Structure of HIP header [RFC 5201][RFC 7401]:
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 | Header Length |0| Packet Type |Version| RES.|1| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Checksum | Controls | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sender's Host Identity Tag (HIT) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Receiver's Host Identity Tag (HIT) | | | | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | / HIP Parameters / / / | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Parameters
length (Optional[int]) – Length of packet data.
- Keyword Arguments
extension (bool) – If the packet is used as an IPv6 extension header.
**kwargs – Arbitrary keyword arguments.
- Returns
Parsed packet data.
- Return type
- Raises
ProtocolError – If the packet is malformed.
-
property
name¶ Name of current protocol.
- Return type
Literal[‘Host Identity Protocol’, ‘Host Identity Protocol Version 2’]
-
property
payload¶ Payload of current instance.
- Raises
UnsupportedCall – if the protocol is used as an IPv6 extension header
- Return type
-
property
protocol¶ Name of next layer protocol.
- Return type
-
classmethod
Data Structure¶
Important
Following classes are only for documentation purpose.
They do NOT exist in the pcapkit module.
-
class
pcapkit.protocols.internet.hip.DataType_HIP¶ - Bases
TypedDict
HIP header [RFC 5201][RFC 7401].
-
next: pcapkit.const.reg.transtype.TransType¶ Next header.
-
type: pcapkit.const.hip.packet.Packet¶ Packet type.
-
version: Literal[1, 2]¶ Version.
-
control: DataType_Control¶ Controls.
-
parameters: Optional[Tuple[pcapkit.const.hip.parameter.Parameter]]¶ HIP parameters.
-
class
pcapkit.protocols.internet.hip.DataType_Control¶ - Bases
TypedDict
HIP controls.
-
class
pcapkit.protocols.internet.hip.DataType_Parameter¶ - Bases
TypedDict
HIP parameters.
-
type: pcapkit.const.hip.parameter.Parameter¶ Parameter type.
HIP Unassigned Parameters¶
For HIP unassigned parameters as described in RFC 5201 and RFC 7401, its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Contents Padding |
HIP ESP_INFO Parameter¶
For HIP ESP_INFO parameter as described in RFC 7402,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
Reserved |
|
6 |
48 |
|
KEYMAT Index |
8 |
64 |
|
OLD SPI |
12 |
96 |
|
NEW SPI |
HIP R1_COUNTER Parameter¶
For HIP R1_COUNTER parameter as described in RFC 5201 and RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
Reserved |
|
8 |
64 |
|
Generation of Valid Puzzles |
HIP LOCATOR_SET Parameter¶
For HIP LOCATOR_SET parameter as described in RFC 8046,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
? |
? |
… |
… |
4 |
32 |
|
Traffic Type |
5 |
40 |
|
Locator Type |
6 |
48 |
|
Locator Length |
7 |
56 |
Reserved |
|
7 |
63 |
|
Preferred Locator |
8 |
64 |
|
Locator Lifetime |
12 |
96 |
|
Locator |
? |
? |
… |
… |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Locator_Set¶ - Bases
DataType_Parameter
Structure of HIP
LOCATOR_SETparameter [RFC 8046].-
locator: Tuple[DataType_Locator]¶ Locator set.
-
class
pcapkit.protocols.internet.hip.DataType_Locator¶ - Bases
TypedDict
Locator.
-
object: DataType_Locator_Dict¶ Locator.
-
class
pcapkit.protocols.internet.hip.DataType_Locator_Dict¶ - Bases
TypedDict
Locator type 2.
HIP PUZZLE Parameter¶
For HIP PUZZLE parameter as described in RFC 5201 and RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Number of Verified Bits |
5 |
40 |
|
Lifetime |
6 |
48 |
|
Opaque |
8 |
64 |
|
Random Number |
HIP SOLUTION Parameter¶
For HIP SOLUTION parameter as described in RFC 5201 and RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Number of Verified Bits |
5 |
40 |
|
Lifetime |
6 |
48 |
|
Opaque |
8 |
64 |
|
Random Number |
? |
? |
|
Puzzle Solution |
HIP SEQ Parameter¶
For HIP SEQ parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Update ID |
HIP ACK Parameter¶
For HIP ACK parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Peer Update ID |
HIP DH_GROUP_LIST Parameter¶
For HIP DH_GROUP_LIST parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
DH GROUP ID |
-
class
pcapkit.protocols.internet.hip.DataType_Param_DH_Group_List¶ - Bases
DataType_Parameter
Structure of HIP
DH_GROUP_LISTparameter [RFC 7401].-
id: Tuple[pcapkit.const.hip.group.Group]¶ Array of DH group IDs.
HIP DEFFIE_HELLMAN Parameter¶
For HIP DEFFIE_HELLMAN parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Group ID |
5 |
40 |
|
Public Value Length |
6 |
48 |
|
Public Value |
? |
? |
Padding |
HIP HIP_TRANSFORM Parameter¶
For HIP HIP_TRANSFORM parameter as described in RFC 5201,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Group ID |
? |
? |
… |
… |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Transform¶ - Bases
DataType_Parameter
Structure of HIP
HIP_TRANSFORMparameter [RFC 5201].-
id: Tuple[pcapkit.const.hip.suite.Suite]¶ Array of group IDs.
HIP HIP_CIPHER Parameter¶
For HIP HIP_CIPHER parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
hip_cipher.type |
Parameter Type |
1 |
15 |
hip_cipher.critical |
Critical Bit |
2 |
16 |
hip_cipher.length |
Length of Contents |
4 |
32 |
hip_cipher.id |
Cipher ID |
? |
? |
… |
… |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Cipher¶ - Bases
DataType_Parameter
Structure of HIP
HIP_CIPHERparameter [RFC 7401].-
id: Tuple[pcapkit.const.hip.cipher.Cipher]¶ Array of cipher IDs.
HIP NAT_TRAVERSAL_MODE Parameter¶
For HIP NAT_TRAVERSAL_MODE parameter as described in RFC 5770,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
Reserved |
|
6 |
48 |
|
Mode ID |
? |
? |
… |
… |
? |
? |
Padding |
HIP TRANSACTION_PACING Parameter¶
For HIP TRANSACTION_PACING parameter as described in RFC 5770,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Min Ta |
HIP ENCRYPTED Parameter¶
For HIP ENCRYPTED parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
Reserved |
|
8 |
48 |
|
Initialization Vector |
? |
? |
|
Encrypted data |
? |
? |
Padding |
HIP HOST_ID Parameter¶
For HIP HOST_ID parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Host Identity Length |
6 |
48 |
|
Domain Identifier Type |
6 |
52 |
|
Domain Identifier Length |
8 |
64 |
|
Algorithm |
10 |
80 |
|
Host Identity |
? |
? |
|
Domain Identifier |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Host_ID¶ - Bases
DataType_Parameter
Structure of HIP
HOST_IDparameter [RFC 7401].-
di_type: pcapkit.const.hip.di_type.DIType¶ Domain identifier type.
-
algorithm: pcapkit.const.hip.hi_algorithm.HIAlgorithm¶ Algorithm.
-
class
pcapkit.protocols.internet.hip.DataType_Host_ID_ECDSA_Curve¶ - Bases
TypedDict
Host identity data.
-
curve: pcapkit.const.hip.ecdsa_curve.ECDSACurve¶ ECDSA curve.
-
class
pcapkit.protocols.internet.hip.DataType_Host_ID_ECDSA_LOW_Curve¶ - Bases
TypedDict
Host identity data.
-
curve: pcapkit.const.hip.ecdsa_low_curve.ECDSALowCurve¶ ECDSA_Low curve.
HIP HIT_SUITE_LIST Parameter¶
For HIP HIT_SUITE_LIST parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
HIT Suite ID |
? |
? |
… |
… |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_HIT_Suite_List¶ - Bases
DataType_Parameter
Structure of HIP
HIT_SUITE_LISTparameter [RFC 7401].-
id: Tuple[pcapkit.const.hip.hit_suite.HITSuite]¶ Array of HIT suite IDs.
HIP CERT Parameter¶
For HIP CERT parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
|
5 |
40 |
|
|
6 |
48 |
|
|
7 |
56 |
|
|
8 |
64 |
|
Certificate |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Cert¶ - Bases
DataType_Parameter
Structure of HIP
CERTparameter [RFC 7401].-
group: pcapkit.const.hip.group.Group¶ CERTgroup.
-
cert_type: pcapkit.const.hip.certificate.Certificate¶
HIP NOTIFICATION Parameter¶
For HIP NOTIFICATION parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
Reserved |
|
6 |
48 |
|
Notify Message Type |
8 |
64 |
|
Notification Data |
? |
? |
Padding |
HIP ECHO_REQUEST_SIGNED Parameter¶
For HIP ECHO_REQUEST_SIGNED parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Opaque Data |
HIP REG_INFO Parameter¶
For HIP REG_INFO parameter as described in RFC 8003,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Lifetime |
4 |
32 |
|
Min Lifetime |
5 |
40 |
|
Max Lifetime |
6 |
48 |
|
Reg Type |
? |
? |
… |
… |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Reg_Info¶ - Bases
DataType_Parameter
Structure of HIP
REG_INFOparameter [RFC 8003].-
lifetime: DataType_Lifetime¶ Lifetime.
-
reg_type: Tuple[pcapkit.const.hip.registration.Registration]¶ Array of registration type.
HIP REG_REQUEST Parameter¶
For HIP REG_REQUEST parameter as described in RFC 8003,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Lifetime |
4 |
32 |
|
Min Lifetime |
5 |
40 |
|
Max Lifetime |
6 |
48 |
|
Reg Type |
? |
? |
… |
… |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Reg_Request¶ - Bases
DataType_Parameter
Structure of HIP
REG_REQUESTparameter [RFC 8003].-
lifetime: DataType_Lifetime¶ Lifetime.
-
reg_type: Tuple[pcapkit.const.hip.registration.Registration]¶ Array of registration type.
HIP REG_RESPONSE Parameter¶
For HIP REG_RESPONSE parameter as described in RFC 8003,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Lifetime |
4 |
32 |
|
Min Lifetime |
5 |
40 |
|
Max Lifetime |
6 |
48 |
|
Reg Type |
? |
? |
… |
… |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Reg_Response¶ - Bases
DataType_Parameter
Structure of HIP
REG_RESPONSEparameter [RFC 8003].-
lifetime: DataType_Lifetime¶ Lifetime.
-
reg_type: Tuple[pcapkit.const.hip.registration.Registration]¶ Array of registration type.
HIP REG_FAILED Parameter¶
For HIP REG_FAILED parameter as described in RFC 8003,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Lifetime |
4 |
32 |
|
Min Lifetime |
5 |
40 |
|
Max Lifetime |
6 |
48 |
|
Reg Type |
? |
? |
… |
… |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Reg_Failed¶ - Bases
DataType_Parameter
Structure of HIP
REG_FAILEDparameter [RFC 8003].-
lifetime: DataType_Lifetime¶ Lifetime.
-
reg_type: Tuple[pcapkit.const.hip.registration.Registration]¶ Array of registration type.
HIP REG_FROM Parameter¶
For HIP REG_FROM parameter as described in RFC 5770,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Port |
6 |
48 |
|
Protocol |
7 |
56 |
Reserved |
|
8 |
64 |
|
Address (IPv6) |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Reg_From¶ - Bases
DataType_Parameter
Structure of HIP
REG_FROMparameter [RFC 5770].-
protocol: pcapkit.const.reg.transtype.TransType¶ Protocol.
-
ip: ipaddress.IPv6Address¶ IPv6 address.
HIP ECHO_RESPONSE_SIGNED Parameter¶
For HIP ECHO_RESPONSE_SIGNED parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Opaque Data |
HIP TRANSPORT_FORMAT_LIST Parameter¶
For HIP TRANSPORT_FORMAT_LIST parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
TF Type |
? |
? |
… |
… |
? |
? |
Padding |
HIP ESP_TRANSFORM Parameter¶
For HIP ESP_TRANSFORM parameter as described in RFC 7402,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
Reserved |
|
6 |
48 |
|
Suite ID |
? |
? |
… |
… |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_ESP_Transform¶ - Bases
DataType_Parameter
Structure of HIP
ESP_TRANSFORMparameter [RFC 7402].-
id: Tuple[pcapkit.const.hip.esp_transform_suite.ESPTransformSuite]¶ Array of suite IDs.
HIP SEQ_DATA Parameter¶
For HIP SEQ_DATA parameter as described in RFC 6078,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Sequence number |
HIP ACK_DATA Parameter¶
For HIP ACK_DATA parameter as described in RFC 6078,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Acked Sequence number |
HIP PAYLOAD_MIC Parameter¶
For HIP PAYLOAD_MIC parameter as described in RFC 6078,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Next Header |
5 |
40 |
Reserved |
|
8 |
64 |
|
Payload Data |
12 |
96 |
|
MIC Value |
? |
? |
Padding |
HIP TRANSACTION_ID Parameter¶
For HIP TRANSACTION_ID parameter as described in RFC 6078,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Identifier |
HIP OVERLAY_ID Parameter¶
For HIP OVERLAY_ID parameter as described in RFC 6079,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Identifier |
HIP ROUTE_DST Parameter¶
For HIP ROUTE_DST parameter as described in RFC 6079,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Flags |
4 |
32 |
|
SYMMETRIC [RFC 6028] |
4 |
33 |
|
MUST_FOLLOW [RFC 6028] |
6 |
48 |
Reserved |
|
8 |
64 |
|
HIT |
? |
? |
… |
… |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Route_Dst¶ - Bases
DataType_Parameter
Structure of HIP
ROUTE_DSTparameter [RFC 6028].-
flags: DataType_Flags¶ Flags.
-
ip: Tuple[ipaddress.IPv6Address]¶ Array of HIT addresses.
HIP HIP_TRANSPORT_MODE Parameter¶
For HIP HIP_TRANSPORT_MODE parameter as described in RFC 6261,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Port |
6 |
48 |
|
Mode ID |
? |
? |
… |
… |
? |
? |
Padding |
HIP HIP_MAC Parameter¶
For HIP HIP_MAC parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
HMAC |
? |
? |
Padding |
HIP HIP_MAC_2 Parameter¶
For HIP HIP_MAC_2 parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
HMAC |
? |
? |
Padding |
HIP HIP_SIGNATURE_2 Parameter¶
For HIP HIP_SIGNATURE_2 parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
SIG Algorithm |
6 |
48 |
|
Signature |
? |
? |
Padding |
HIP HIP_SIGNATURE Parameter¶
For HIP HIP_SIGNATURE parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
SIG Algorithm |
6 |
48 |
|
Signature |
? |
? |
Padding |
HIP ECHO_REQUEST_UNSIGNED Parameter¶
For HIP ECHO_REQUEST_UNSIGNED parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Opaque Data |
HIP ECHO_RESPONSE_UNSIGNED Parameter¶
For HIP ECHO_RESPONSE_UNSIGNED parameter as described in RFC 7401,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Opaque Data |
HIP RELAY_FROM Parameter¶
For HIP RELAY_FROM parameter as described in RFC 5770,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Port |
6 |
48 |
|
Protocol |
7 |
56 |
Reserved |
|
8 |
64 |
|
Address (IPv6) |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Relay_From¶ - Bases
DataType_Parameter
Structure of HIP
RELAY_FROMparameter [RFC 5770].-
protocol: pcapkit.const.reg.transtype.TransType¶ Protocol.
-
ip: ipaddress.IPv6Address¶ IPv6 address.
HIP RELAY_TO Parameter¶
For HIP RELAY_TO parameter as described in RFC 5770,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Port |
6 |
48 |
|
Protocol |
7 |
56 |
Reserved |
|
8 |
64 |
|
Address (IPv6) |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Relay_To¶ - Bases
DataType_Parameter
Structure of HIP
RELAY_TOparameter [RFC 5770].-
port: in¶ Port.
-
protocol: pcapkit.const.reg.transtype.TransType¶ Protocol.
-
ip: ipaddress.IPv6Address¶ IPv6 address.
HIP OVERLAY_TTL Parameter¶
For HIP OVERLAY_TTL parameter as described in RFC 6078,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
TTL |
6 |
48 |
Reserved |
HIP ROUTE_VIA Parameter¶
For HIP ROUTE_VIA parameter as described in RFC 6028,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Flags |
4 |
32 |
|
|
4 |
33 |
|
|
6 |
48 |
Reserved |
|
8 |
64 |
|
HIT |
? |
? |
… |
… |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Route_Via¶ - Bases
DataType_Parameter
Structure of HIP
ROUTE_VIAparameter [RFC 6028].-
flags: DataType_Flags¶ Flags.
-
ip: Tuple[ipaddress.IPv6Address]¶ Array of HITs.
HIP FROM Parameter¶
For HIP FROM parameter as described in RFC 8004,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Address |
-
class
pcapkit.protocols.internet.hip.DataType_Param_From¶ - Bases
DataType_Parameter
Structure of HIP
FROMparameter [RFC 8004].-
ip: ipaddress.IPv6Address¶ IPv6 address.
HIP RVS_HMAC Parameter¶
For HIP RVS_HMAC parameter as described in RFC 8004,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
HMAC |
? |
? |
Padding |
HIP VIA_RVS Parameter¶
For HIP VIA_RVS parameter as described in RFC 6028,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
Address |
? |
? |
… |
… |
HIP RELAY_HMAC Parameter¶
For HIP RELAY_HMAC parameter as described in RFC 5770,
its structure is described as below:
Octets |
Bits |
Name |
Description |
|---|---|---|---|
0 |
0 |
|
Parameter Type |
1 |
15 |
|
Critical Bit |
2 |
16 |
|
Length of Contents |
4 |
32 |
|
HMAC |
? |
? |
Padding |
-
class
pcapkit.protocols.internet.hip.DataType_Param_Relay_HMAC¶ - Bases
DataType_Parameter