Skip to content

OSPF checksum verification and computation (one's-complement, queued with #2470/#2471) #2475

Closed

Description

@JarryShaw

OSPF checksum verification and computation (one's-complement, queued with #2470/#2471)

Summary

Part of the owner's 2026-10-30 ruling on #2470: the one's-complement checksum work for IPv4/TCP/UDP/ICMP/ICMPv6/OSPF is queued and done together rather than piecemeal, through #2471's shared pseudo-protocol class.

  • pcapkit.protocols.application.ospf.OSPF.read() does not verify the wire checksum field; a corrupted capture parses silently.
  • pcapkit.protocols.application.ospf.OSPF.make() leaves checksum unset/zero rather than computing the real checksum (RFC 2328 §D.3, over the OSPF packet alone (no IP pseudo-header)).

Scope

Follows the Protocol class conventions, using #2471's pseudo-protocol class for any value from the enclosing IP layer this checksum needs. See docs/source/contributing/pep.rst, "Checksum and Integrity Verification", for the full cross-protocol plan.

Blocked on

#2471 (the shared pseudo-protocol class) landing first.

Activity

  1. added
    enhancementIssues requesting a new capability (set by the feature request template)
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Oct 30, 2026
  2. added this to the PyPCAPKit v1.5 milestone on Oct 30, 2026
  3. moved this to Blocked in PyPCAPKiton Oct 30, 2026
  4. JarryShaw commented on Nov 1, 2026

    @JarryShaw
    OwnerAuthor

    Unblocked: #2479 (IP_Pseudo) merged as a7d332147. Dispatched as a single checksum wave covering #2470, #2472, #2473, #2474 and #2475 on one branch, since these issues say they land together. It follows pep.rst's checksum section: an opt-in flag, a ProtocolWarning plus a recorded status in the ESPStatus shape, and the pseudo-header taken from IP_Pseudo. It opens as one PR once reviewed.

  5. added
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Nov 1, 2026
  6. moved this from Blocked to WIP in PyPCAPKiton Nov 1, 2026
  7. JarryShaw commented on Nov 1, 2026

    @JarryShaw
    OwnerAuthor

    Done in #2543, which merged as the checksum wave. Its body listed this issue after one Closes, which GitHub reads as closing only the first.

  8. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssues requesting a new capability (set by the feature request template)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions