@@ -1758,7 +1758,7 @@ def _read_param_cert(self, schema: 'Schema_CertParameter', *, version: 'int', #
17581758 options : 'Parameter' ) -> 'Data_CertParameter' : # pylint: disable=unused-argument
17591759 """Read HIP ``CERT`` parameter.
17601760
1761- Structure of HIP ``CERT`` parameter [:rfc:`7401 `]:
1761+ Structure of HIP ``CERT`` parameter [:rfc:`8002 `]:
17621762
17631763 .. code-block:: text
17641764
@@ -3028,7 +3028,7 @@ def _read_param_relay_hmac(self, schema: 'Schema_RelayHMACParameter', version: '
30283028
30293029 Structure of HIP ``RELAY_HMAC`` parameter [:rfc:`5770`]:
30303030
3031- .. code-block::
3031+ .. code-block:: text
30323032
30333033 0 1 2 3
30343034 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
@@ -3162,7 +3162,7 @@ def _make_param_esp_info(self, code: 'Enum_Parameter', param: 'Optional[Data_ESP
31623162 code: parameter code
31633163 param: parameter data
31643164 version: HIP protocol version
3165- reserved: reserved octets, zero when sent (:rfc:`7402#section-5.1.1`)
3165+ reserved: reserved octets (:rfc:`7402#section-5.1.1`)
31663166 index: KEYMAT index
31673167 old_spi: old SPI
31683168 new_spi: new SPI
@@ -3355,8 +3355,9 @@ def _make_puzzle_lifetime(code: 'Enum_Parameter', version: 'int',
33553355 """Encode a ``PUZZLE`` ``Lifetime`` octet.
33563356
33573357 :rfc:`7401#section-5.2.4` gives the puzzle lifetime as ``2^(value - 32)``
3358- seconds -- and it is the *only* place either RFC defines that encoding, so
3359- it applies to ``PUZZLE`` alone. ``SOLUTION``'s octet at the same offset is
3358+ seconds -- and the ``PUZZLE`` section is the only place either RFC defines
3359+ that encoding (:rfc:`5201#section-5.2.4` identically), so it applies to
3360+ ``PUZZLE`` alone. ``SOLUTION``'s octet at the same offset is
33603361 ``Reserved`` (:rfc:`7401#section-5.2.5`) and does not come through here.
33613362
33623363 Args:
@@ -4022,6 +4023,12 @@ def _make_param_host_id(self, code: 'Enum_Parameter', param: 'Optional[Data_Host
40224023 Returns:
40234024 HIP parameter schema.
40244025
4026+ Raises:
4027+ ProtocolError: If neither ``hi`` nor ``param`` is given and
4028+ ``hi_curve`` is not an ECDSA, ECDSA_LOW or EdDSA curve, or if
4029+ ``hi`` is a :class:`~pcapkit.protocols.data.internet.hip.HostIdentity`
4030+ whose ``curve`` is none of those.
4031+
40254032 """
40264033 if param is not None :
40274034 hi = param .hi
@@ -5082,7 +5089,8 @@ def _make_param_relay_from(self, code: 'Enum_Parameter', param: 'Optional[Data_R
50825089 protocol_default: default transport protocol
50835090 protocol_namespace: transport protocol namespace
50845091 protocol_reversed: reverse transport protocol namespace
5085- address: relay address
5092+ address: the address the relay server received the relayed
5093+ packet from (:rfc:`5770`)
50865094 reserved: the reserved octet, truncated or
50875095 zero-filled to 1 octet
50885096 **kwargs: arbitrary keyword arguments
@@ -5130,7 +5138,8 @@ def _make_param_relay_to(self, code: 'Enum_Parameter', param: 'Optional[Data_Rel
51305138 protocol_default: default transport protocol
51315139 protocol_namespace: transport protocol namespace
51325140 protocol_reversed: reverse transport protocol namespace
5133- address: relay address
5141+ address: the address the relay server forwards the packet to
5142+ (:rfc:`5770`)
51345143 reserved: the reserved octet, truncated or
51355144 zero-filled to 1 octet
51365145 **kwargs: arbitrary keyword arguments
@@ -5247,7 +5256,8 @@ def _make_param_from(self, code: 'Enum_Parameter', param: 'Optional[Data_FromPar
52475256 code: parameter code
52485257 param: parameter data
52495258 version: HIP protocol version
5250- address: relay address
5259+ address: the original source address of the relayed packet
5260+ (:rfc:`8004`)
52515261 **kwargs: arbitrary keyword arguments
52525262
52535263 Returns:
0 commit comments