Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IPv4 initialization for test_address_ipv4 #348

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

musicinmybrain
Copy link
Contributor

The address used in the test was incorrectly initialized on big-endian hosts.

Fixes #347.

I tested this as a patch using real s390x hardware.

The address used in the test was incorrectly initialized on big-endian hosts.

Fixes rust-pcap#347.
@Stargateur
Copy link
Contributor

In perfect world I would prefer a better API, probably set_addr should do the to_be() but it's only for testing soooooo.

@Wojtek242
Copy link
Collaborator

Thanks for the PR! The CI doesn't pass, but the failures are the same as on main (I just haven't gotten around to resolving them). I'll handle it and merge soon.

@musicinmybrain
Copy link
Contributor Author

You’re welcome! Thanks for reviewing it.

@Wojtek242 Wojtek242 merged commit 4210344 into rust-pcap:main Apr 21, 2024
12 of 16 checks passed
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.

On big-endian systems, test_address_ipv4 fails
3 participants