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

Endianness issues? #8

Open
satta opened this issue Dec 4, 2022 · 2 comments
Open

Endianness issues? #8

satta opened this issue Dec 4, 2022 · 2 comments

Comments

@satta
Copy link
Contributor

satta commented Dec 4, 2022

We have been noticing issues when running pktanon test cases on Debian GNU/Linux on the s390x platform. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012382

-----------------------------------------------
pktanon --- profile-based traffic anonymization
-----------------------------------------------
initializing PktAnon,  configuration = /usr/share/doc/pktanon/examples/profiles/profile.xml
istream: opened file /tmp/autopkgtest-lxc.1djzl_hk/downtmp/build.oQb/src/profiles/sample.pcap
ostream: opened output file ./out.pcap
initialized
error: wrong pcap file version: should be 2.4
error: unsupported link type: 16777216

s390x is big-endian. Could that be an issue here?

@roland-bless
Copy link
Contributor

Yes, I guess that this could be the issue. The code seems to check for a swapped magic number, but fails to continue to also perform conversions for subsequent variables. I have to check with the pcap format, too.

@satta
Copy link
Contributor Author

satta commented Dec 5, 2022

I'd be happy to test any patches on our (Debian's) porting boxes for that architecture if it helps.

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

No branches or pull requests

2 participants