Skip to content

fix(hip): HOST_ID maker prefixes its errors [HIPv2] instead of HIPv2: [ParamNo 705] #2299

Closed

Description

@JarryShaw

Describe the bug
HIP._make_param_host_id puts the version in brackets and leaves out the parameter code: [HIPv2] invalid curve: …. Every other HIP message is written HIPv{version}: [ParamNo {code}] …, so this one does not follow the <prefix>: <lowercase description>: … {value!r} form (#2232, #2257). It occurs in the hi_curve branch and in the branch for a Data_HostIdentity passed as hi.

Reproduction (main 9d504ead5)

>>> HIP.__new__(HIP)._make_param_host_id(Parameter.HOST_ID, hi_curve='bogus', hi_pub_key=b'', version=2)
ProtocolError: [HIPv2] invalid curve: 'bogus'

Expected behavior
HIPv2: [ParamNo 705] invalid curve: 'bogus'. No test pins the current text.

System information
Linux, CPython 3.14.9, checkout main 9d504ead5.

Activity

  1. added this to the PyPCAPKit v1.5 milestone on Oct 26, 2026
  2. added
    bugIssues reporting a defect (set by the bug report template; a default, not an assessment)
    on Oct 26, 2026
  3. moved this to Pending in PyPCAPKiton Oct 26, 2026
  4. JarryShaw commented on Oct 26, 2026

    @JarryShaw
    OwnerAuthor

    Blocked until the #2309 fix PR merges. That fix edits the HIP REG_* parameters in hip.py, and this one edits the same file, so it starts from the merged tree.

  5. added
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Oct 26, 2026
  6. moved this from Pending to Blocked in PyPCAPKiton Oct 26, 2026
  7. added
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    and removed
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Oct 27, 2026
  8. JarryShaw commented on Oct 27, 2026

    @JarryShaw
    OwnerAuthor

    Unblocking — #2309 merged. Open to pick up now.

  9. added
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 27, 2026
  10. moved this from Blocked to WIP in PyPCAPKiton Oct 27, 2026
  11. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 27, 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

    bugIssues reporting a defect (set by the bug report template; a default, not an assessment)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions