kern/95665: "ping: sendto: No buffer space available" with TUN
interface (easily reproducable with test program)
johan at nocrew.org
Wed Apr 12 20:40:14 UTC 2006
>Synopsis: "ping: sendto: No buffer space available" with TUN interface (easily reproducable with test program)
>Arrival-Date: Wed Apr 12 20:40:13 GMT 2006
>Originator: Johan Bolmsjö
>Release: FreeBSD 6.0-RELEASE
FreeBSD matilda.nocrew.org 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Mar 18 15:18:13 CET 2006 root at matilda.nocrew.org:/usr/obj/usr/src/sys/SMP i386
I was playing a little with the TUN device under FreeBSD. I wanted to test the performance of the driver so I wrote a small ICMP echo reply server using the TUN device. When I ping flood this interface with a large amount of 1k byte packets the interface is "hung".
Pinging the interface shows the dreaded "ping: sendto: No buffer space available" message.
Pinging the interface from another PC on the LAN shows no problems what so ever. It seems that the sheer amount of traffic doing this localy is causing this problem. No successfull flood ping rounds have shown any dropped ping requests. What buffer space is out? This certainly looks like a bug to me.
I have a 200 line test program to reproduce this very easily. At the start of the test program there are detailed instructions on how to setup this test.
You can find it at:
Run this test program:
There are detailed instructions at the top of the file on how to reproduce the problem.
More information about the freebsd-bugs