Re: kern/95665: [if_tun] "ping: sendto: No buffer space available" with TUN interface (easily reproducable with test program)



The following reply was made to PR kern/95665; it has been noted by GNATS.

From: Astrodog <astrodog@xxxxxxxxx>
To: bug-followup@xxxxxxxxxxx, johan@xxxxxxxxxx
Cc:
Subject: Re: kern/95665: [if_tun] "ping: sendto: No buffer space available" with TUN interface (easily reproducable with test program)
Date: Sun, 8 Oct 2006 00:22:20 -0500

I can reproduce this problem with some ease.

It occurs when the buffer for tun0 fills up, because the NIC is unable
to send the packets as quickly as the program is generating them.

This is fairly common on slow or dodgy NICs, when combined with tun/gif/etc.

There is not a real fix, because the outgoing NIC used by tun can
change, so any attempt to make it aware of the buffer, and throttle
accordingly would be painfully hacked together.

To confirm that this is actually the issue, increase the size of the
buffer. You should see a larger number of packets make it through.
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: In-tree version of new FireWire drivers available
    ... Just to recap, the dual buffer receive mode, as described in section ... quadlet aligned amount of header data can be appended into one buffer ... *either* the header buffer or the payload buffer fills up. ... enough to hold headers for all the packets it takes to fill up the ...
    (Linux-Kernel)
  • Re: Waveform Audio - MMSYSERR_INVALPARAM
    ... Also, packets/buffers that you waveOutWrite, are packets ... right after the last sample from the previous buffer seamlessly. ... the waveOutWrite function DON'T return the error. ...
    (microsoft.public.pocketpc.developer)
  • Re: Persistent stall in the Cypress FX2 FIFO
    ... the FX2's firmware code, would be to install some sort of stub routines ... > how long they are (it appends even for 4 byte long packets). ... > a packet from the FIFO before sending the next one all works fine... ... smaller or larger than what a single buffer could hold. ...
    (comp.arch.embedded)
  • Re: Self restarting property of RTOS-How it works?
    ... >> paradigm that is susceptible to attacks as simple as buffer ... > computer science end of things, but I don't share your evident ... > that no packets will arrive in an interval of five seconds? ... Whatever the synchronizing requires, ...
    (comp.arch.embedded)
  • Re: Multicast Packet Delay
    ... the packets and stuffs them into the datalink layer. ... There's a buffer here of course, ... MTU of all network it traverses in order to avoid fragmenting ...
    (microsoft.public.win32.programmer.networks)