Re: Sockperf for FreeBSD not working while running as server
Date: Fri, 26 Sep 2025 03:33:21 UTC
> On Sep 24, 2025, at 11:58 PM, Wei Hu <weh@microsoft.com> wrote: > > Hi, > > I want to use sockperf (https://github.com/Mellanox/sockperf.git) to test latency for a network interface. > > I can build it after some changes in C++ source to suit it for the latest C++ compiler on FreeBSD 15. Running > Sockperf client on FreeBSD (with command like ' sockperf ping-pong -i x.x.x.x -p 8201 -t 20 --tcp --pps=max --full-rtt) > was successful. It can send and receive packets to sockperf server running on Linux and print out the latency stats. > > However, running it as sockperf server ( with command 'sockperf server -i x.x.x.x --tcp -p 8201') failed with tons > of following errors which receiving packets from the Linux client: > > ... > [debug] raw: receive_pending_data IP: (unknown):(unk) [fd=4 ret=14] Bad file descriptor <src/input_handlers.h: receive_pending_data #91> size 74 > sockperf: src/common.cpp:73:ERROR: getnameinfo returned 5: Address family not recognized, addr family: 88 > (errno=9 Bad file descriptor) There is no address family == 88 on FreeBSD.. Having an idea of what you’ve modified in your fork/branch would probably be a really helpful start. Cheers, -Enji