-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
ipsplit tests fails due to endianess #250
Comments
Heh, I actually found a note about this issue when I wrote these tests a few years back: https://github.com/DNS-OARC/dnsjit/blob/develop/src/test/test_ipsplit.lua#L2 This doesn't matter for the On BE-platform, I'd recommend disabling / commenting out the related checks if needed, or just skipping the ipsplit test. IMO this is not worth fixing. It could be commented out in the upstream test suite if you insist. |
I know it doesn't matter for ipsplit, but what is the purpose of overwrite
and shouldn't it be consistent no matter the byte order?
|
The overwrite is to create a sequential 4 byte client ID for each unique input address. This is then used in shotgun which keeps track of each of those clients and has to have a memory structure allocated for each of them. This client ID then basically serves as an index into the allocated array. The reason it's done in In practice, the byte order doesn't matter as long as you don't attempt to use the pre-processed data from BE platform to run shotgun on LE platform. It could be fixed to always be consistent. The other part that does the decoding which would have to be adjusted is in https://gitlab.nic.cz/knot/shotgun/-/blob/master/replay/dnssim/src/output/dnssim.c#L176 |
OK. I'll fix the test and mark the overwrite function as non-portable (once
I'm back).
|
@nicki-krizek can you fix ipsplit tests using overwrite or make overwrite handle endianess correctly?
They fail on other endian systems such as s390x:
https://bugzilla.redhat.com/show_bug.cgi?id=2323980#c7
The text was updated successfully, but these errors were encountered: