Skip to content

some Haiku support#847

Merged
fklassen merged 2 commits intoappneta:4.5.0from
infrastation:some_haiku_support
Jun 3, 2024
Merged

some Haiku support#847
fklassen merged 2 commits intoappneta:4.5.0from
infrastation:some_haiku_support

Conversation

@infrastation
Copy link
Copy Markdown
Contributor

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 self-assigned this Jun 3, 2024
@fklassen fklassen merged commit 0d86947 into appneta:4.5.0 Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants