Skip to content

Limit long-based Ethernet addresses to 48 bits - #150

Open
PHJ2000 wants to merge 1 commit into
cowtowncoder:mainfrom
PHJ2000:fix-ethernet-address-long-mask
Open

PHJ2000 wants to merge 1 commit into
cowtowncoder:mainfrom
PHJ2000:fix-ethernet-address-long-mask

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 5, 2026

Copy link
Copy Markdown

Mask long constructor input to the documented lower 48 bits. Tests cover nonzero upper bits and negative input, checking canonical values, equality, hashes, ordering and string/byte round trips.

Validation: mvn clean verify — 159 tests, no failures/errors, 0 skipped (JDK 21).

Fixes #149.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EthernetAddress(long) retains bits outside the documented address range

1 participant