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

some Haiku support #847

Merged
merged 2 commits into from
Jun 3, 2024
Merged

Conversation

infrastation
Copy link

No description provided.

Link with two additional libraries if required.  Do not include
<netinet/if_ether.h>, which does not exist, and which the source does
not require to compile.  These changes allow tcpreplay to build on
Haiku hrev57588 as follows:

./configure --with-libpcap=/path/to/libpcap/ --enable-static-link

However, since Haiku ports do not have GNU AutoGen, the master branch
would need some files either copied from the 4.4.4 release tarball or
generated on a Linux host.  Even after the build completes, tcpreplay
is still not entirely functional because libpcap on Haiku does not
implement pcap_inject() and tcpreplay fails to handle Haiku interfaces
correctly:

> ./src/tcpreplay --listnics
Available network interfaces:
/dev/net/ipro1000/1
vale:/dev/net/ipro1000/1
netmap:/dev/net/ipro1000/1
/dev/net/ipro1000/0
vale:/dev/net/ipro1000/0
netmap:/dev/net/ipro1000/0
> ./src/tcpreplay -i /dev/net/ipro1000/1 icmp-echoreply.pcap

Fatal Error: failed to open device /dev/net/ipro1000/1: error opening
  khial device: Device/File/Resource busy

So proper Haiku support would require some more work.
@fklassen fklassen changed the base branch from master to 4.5.0 June 3, 2024 00:24
@fklassen fklassen added this to In progress in 4.5 via automation Jun 3, 2024
@fklassen fklassen self-assigned this Jun 3, 2024
@fklassen fklassen merged commit 0d86947 into appneta:4.5.0 Jun 3, 2024
4.5 automation moved this from In progress to Done Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
4.5
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants