Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/source/pcapkit/protocols/internet/hopopt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ Header Schemas
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.schema.internet.hopopt._SMFDPDOption
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.schema.internet.hopopt.SMFDPDOption
:members:
:show-inheritance:
Expand Down Expand Up @@ -291,6 +295,14 @@ Data Models
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.data.internet.hopopt.QuickStartRequestOption
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.data.internet.hopopt.QuickStartReportOption
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.data.internet.hopopt.RPLOption
:members:
:show-inheritance:
Expand Down
8 changes: 8 additions & 0 deletions docs/source/pcapkit/protocols/internet/ipv4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,14 @@ Data Models
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.data.internet.ipv4.QuickStartRequestOption
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.data.internet.ipv4.QuickStartReportOption
:members:
:show-inheritance:

.. rubric:: Footnotes

.. [*] https://en.wikipedia.org/wiki/IPv4
12 changes: 12 additions & 0 deletions docs/source/pcapkit/protocols/internet/ipv6_opts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ Header Schemas
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.schema.internet.ipv6_opts._SMFDPDOption
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.schema.internet.ipv6_opts.SMFDPDOption
:members:
:show-inheritance:
Expand Down Expand Up @@ -291,6 +295,14 @@ Data Models
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.data.internet.ipv6_opts.QuickStartRequestOption
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.data.internet.ipv6_opts.QuickStartReportOption
:members:
:show-inheritance:

.. autoclass:: pcapkit.protocols.data.internet.ipv6_opts.RPLOption
:members:
:show-inheritance:
Expand Down
150 changes: 132 additions & 18 deletions pcapkit/protocols/data/internet/hip.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@

@info_final
class Control(Data):
"""Data model for HIP controls."""
"""Data model for HIP controls.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1328`).

"""

#: Anonymous flag.
anonymous: 'bool'
Expand Down Expand Up @@ -92,7 +98,14 @@ class Parameter(Data):

@info_final
class HIP(Protocol):
"""Data model for HIP header."""
"""Data model for HIP header.

.. versionchanged:: 1.5.0

New required fields ``packet_fixed``, ``reserved`` and ``version_fixed``
(:issue:`1417`, :issue:`1459`).

"""

#: Next header.
next: 'TransType'
Expand Down Expand Up @@ -142,7 +155,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', cont

@info_final
class ESPInfoParameter(Parameter):
"""Data model for HIP ``ESP_INFO`` parameter."""
"""Data model for HIP ``ESP_INFO`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1328`).

"""

#: Reserved octets, carried verbatim so that re-serialising reproduces them.
reserved: 'int'
Expand All @@ -159,7 +178,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', rese

@info_final
class R1CounterParameter(Parameter):
"""Data model for HIP ``R1_COUNTER`` parameter."""
"""Data model for HIP ``R1_COUNTER`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The four reserved octets, as captured.
reserved: 'bytes'
Expand All @@ -185,7 +210,13 @@ def __init__(self, spi: 'int', ip: 'IPv6Address') -> 'None': ... # pylint: disa

@info_final
class Locator(Data):
"""Data model for HIP locator."""
"""Data model for HIP locator.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1365`).

"""

#: Traffic.
traffic: 'int'
Expand Down Expand Up @@ -220,7 +251,14 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', loca

@info_final
class PuzzleParameter(Parameter):
"""Data model for HIP ``PUZZLE`` parameter."""
"""Data model for HIP ``PUZZLE`` parameter.

.. versionchanged:: 1.5.0

New required fields ``lifetime_exponent`` and ``rhash_len``
(:issue:`653`, :issue:`1323`).

"""

#: Numeric index.
index: 'int'
Expand Down Expand Up @@ -254,6 +292,10 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', inde
class SolutionParameter(Parameter):
"""Data model for HIP ``SOLUTION`` parameter.

.. versionchanged:: 1.5.0

New required field ``rhash_len`` (:issue:`653`).

.. versionremoved:: 1.5.0

``lifetime``, now :attr:`reserved`: only ``PUZZLE`` carries a lifetime
Expand Down Expand Up @@ -361,7 +403,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', ciph

@info_final
class NATTraversalModeParameter(Parameter):
"""Data model for HIP ``NAT_TRAVERSAL_MODE`` parameter."""
"""Data model for HIP ``NAT_TRAVERSAL_MODE`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The two reserved octets, as captured.
reserved: 'bytes'
Expand All @@ -385,7 +433,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', min_

@info_final
class EncryptedParameter(Parameter):
"""Data model for HIP ``ENCRYPTED`` parameter."""
"""Data model for HIP ``ENCRYPTED`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The four reserved octets, as captured.
reserved: 'bytes'
Expand Down Expand Up @@ -468,7 +522,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', cert

@info_final
class NotificationParameter(Parameter):
"""Data model for HIP ``NOTIFICATION`` parameter."""
"""Data model for HIP ``NOTIFICATION`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The two reserved octets, as captured.
reserved: 'bytes'
Expand Down Expand Up @@ -559,7 +619,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', life

@info_final
class RegFromParameter(Parameter):
"""Data model for HIP ``REG_FROM`` parameter."""
"""Data model for HIP ``REG_FROM`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The reserved octet, as captured.
reserved: 'bytes'
Expand Down Expand Up @@ -598,7 +664,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', tf_t

@info_final
class ESPTransformParameter(Parameter):
"""Data model for HIP ``ESP_TRANSFORM`` parameter."""
"""Data model for HIP ``ESP_TRANSFORM`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The two reserved octets, as captured.
reserved: 'bytes'
Expand Down Expand Up @@ -633,7 +705,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', ack:

@info_final
class PayloadMICParameter(Parameter):
"""Data model for HIP ``PAYLOAD_MIC`` parameter."""
"""Data model for HIP ``PAYLOAD_MIC`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The three reserved octets, as captured.
reserved: 'bytes'
Expand Down Expand Up @@ -672,7 +750,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', id:

@info_final
class Flags(Data):
"""Data model for the flags in HIP ``ROUTE_DST`` and ``ROUTE_VIA`` parameters."""
"""Data model for the flags in HIP ``ROUTE_DST`` and ``ROUTE_VIA`` parameters.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1417`).

"""

#: Symmetric flag.
symmetric: 'bool'
Expand All @@ -688,7 +772,13 @@ def __init__(self, symmetric: 'bool', must_follow: 'bool', reserved: 'int') -> '

@info_final
class RouteDstParameter(Parameter):
"""Data model for HIP ``ROUTE_DST`` parameter."""
"""Data model for HIP ``ROUTE_DST`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The two reserved octets, as captured.
reserved: 'bytes'
Expand Down Expand Up @@ -786,7 +876,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', opaq

@info_final
class RelayFromParameter(Parameter):
"""Data model for HIP ``RELAY_FROM`` parameter."""
"""Data model for HIP ``RELAY_FROM`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The reserved octet, as captured.
reserved: 'bytes'
Expand All @@ -803,7 +899,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', rese

@info_final
class RelayToParameter(Parameter):
"""Data model for HIP ``RELAY_TO`` parameter."""
"""Data model for HIP ``RELAY_TO`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The reserved octet, as captured.
reserved: 'bytes'
Expand All @@ -820,7 +922,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', rese

@info_final
class OverlayTTLParameter(Parameter):
"""Data model for HIP ``OVERLAY_TTL`` parameter."""
"""Data model for HIP ``OVERLAY_TTL`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The two reserved octets, as captured.
reserved: 'bytes'
Expand All @@ -833,7 +941,13 @@ def __init__(self, type: 'Enum_Parameter', critical: 'bool', length: 'int', rese

@info_final
class RouteViaParameter(Parameter):
"""Data model for HIP ``ROUTE_VIA`` parameter."""
"""Data model for HIP ``ROUTE_VIA`` parameter.

.. versionchanged:: 1.5.0

New required field ``reserved`` (:issue:`1223`).

"""

#: The two reserved octets, as captured.
reserved: 'bytes'
Expand Down
Loading
Loading