Skip to content

fix(const): re-export the Linux ARPHRD registry as Linux_ARPHRD (#2661) - #2663

Merged
JarryShaw merged 1 commit into
mainfrom
fix/2661-const-linux-export
Nov 2, 2026
Merged

JarryShaw merged 1 commit into
mainfrom
fix/2661-const-linux-export

Conversation

@JarryShaw

Copy link
Copy Markdown
Owner

What is the purpose of your pull request?

  • fix — fixes a bug

Description of your pull request and other information

pcapkit.const re-exports the Linux ARPHRD registry. It is the one const subpackage pcapkit/const/__init__.py did not star-import, and #2656's guard records it as a known gap.

  • pcapkit.const.linux exports it as Linux_ARPHRD, the house prefix that pcapkit.vendor.linux already uses. The name is in no release, so the rename breaks nothing that shipped.
  • pcapkit/const/__init__.py star-imports it, and the docs page uses the new name.
  • The KNOWN_UNWIRED entry in test_const_package_exports_2656_unit comes out, and a new test pins the export.

No caller imported the name from the package; every one imports from pcapkit.const.linux.arphrd, which is unchanged. I reviewed the diff (the worker ran on Sonnet). With the pcapkit/ change reverted, the new test and the #2656 guard both fail.

Closes #2661

- pcapkit.const.linux exported ARPHRD unprefixed, where every other package
  prefixes its registries and pcapkit.vendor.linux exports Linux_ARPHRD.
  Re-export it as Linux_ARPHRD and list that in __all__.
- pcapkit.const star-imported no Linux package, so the registry was missing
  from pcapkit.const.__all__. Import it and list it.
- Name Linux_ARPHRD on the linux docs page, and drop the linux entry from
  KNOWN_UNWIRED in test_const_package_exports_2656_unit.
- Add test_const_linux_export_2661_unit for the runtime surface.
No caller imported the unprefixed name, and it is in no release tag, so no
alias or versionchanged is kept.
@JarryShaw JarryShaw added this to the PyPCAPKit v1.6 milestone Nov 2, 2026
@JarryShaw JarryShaw added fix Pull requests that fix a defect (fix: subject prefix) review: good-to-go Cross-review at the current head says ready; CI state is separate labels Nov 2, 2026
@JarryShaw

Copy link
Copy Markdown
Owner Author

GOOD TO GO at 0436f0a82, a three-line re-export and its test, reviewed directly. No caller used the old package-level name. Both the new test and #2656's guard fail with the change reverted.

@JarryShaw
JarryShaw merged commit 0add177 into main Nov 2, 2026
16 checks passed
@JarryShaw
JarryShaw deleted the fix/2661-const-linux-export branch November 2, 2026 17:06
@github-project-automation github-project-automation Bot moved this to Done in PyPCAPKit Nov 2, 2026
@JarryShaw JarryShaw removed the review: good-to-go Cross-review at the current head says ready; CI state is separate label Nov 2, 2026
JarryShaw added a commit that referenced this pull request Nov 2, 2026
…he cut-frame fixes and GRE's bindings into 1.6.0 (#2449)

- Breaking: TCP, UDP and SCTP makers (#2670) and PCAP-NG's (#2671) raise
  on a value a field cannot hold, where 1.5.x wrote it masked; each entry
  gives the old and new values. The TTL Diff wraps as before.
- Changed: __index__ returns the LinkType, EtherType, TransType or AppType
  value, ports as ints (#2652); only Create Release waits for a deployment
  approval (#2658). The conventions entry records the index rule.
- Fixed: a cut HTTP/2 SETTINGS frame parses and rebuilds; HTTPv2.make
  takes frame_length (#2666).
- Folded into unreleased entries: FRAD at LinkType 107 and GRE at IP
  protocol 47 (#2667); cut IGMPv3 messages and num_group_records (#2662,
  #2672); Linux_ARPHRD (#2663); DCCP's range checks (#2670); a cut GRE
  frame is TRUNCATED, replacing fold-12's INVALID note, and frame_length
  in pcapkit.utilities.contextvars (#2668).
- No entry for _make_sint's private allow_unsigned, ARP's private
  PAT_MAC_ADDR, or the test- and docs-only d728873, 326a6cf,
  fc80fb1, a37edf1 and 2766707.
- CHANGELOG.md regenerated; util/changelog_md.py --check passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull requests that fix a defect (fix: subject prefix)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fix(const): pcapkit.const does not re-export the Linux ARPHRD registry

1 participant