Re: when send() function returns?



Sean <srkang@xxxxxxxxxxxx> wrote:
I am still not clear what's going on between send() call and actual
sending. Is there any way to achieve that I want as I described in
previous message?

Being able to just call send() on a UDP socket and "know" that the
datagram was sent? No. At least not with just the one system.

Based on my experiences with netperf, Linux does seem to have
"intra-stack" flow control (try a netperf UDP_STREAM test), but even
that does not _REALLY_ mean that every send() call you make becomes a
packet on the wire.

To _REALLY_ know, without getting hip-deep in the kernel, you have to
know that it was received by another system. That is what the netperf
UDP_STREAM test does. Of course, now you are concerned not only with
did the packet get out the host OK, but did it get up the other host
to the receiving app OK.

rick jones
--
a wide gulf separates "what if" from "if only"
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
.



Relevant Pages

  • bge(4) one packet wedge
    ... I've faced a problem in bgewhen a single packet is in the RX ... ring, but it isn't noticed by the driver. ... To reproduce the problem you need to run netperf (from ports ... the host, where tested bgeis installed - 10.0.0.2. ...
    (freebsd-net)
  • Re: bge(4) one packet wedge
    ... I've faced a problem in bgewhen a single packet is in the RX ... ring, but it isn't noticed by the driver. ... To reproduce the problem you need to run netperf (from ports ... the host, where tested bgeis installed - 10.0.0.2. ...
    (freebsd-net)
  • Re: bge(4) one packet wedge
    ... I've faced a problem in bgewhen a single packet is in the RX ... ring, but it isn't noticed by the driver. ... To reproduce the problem you need to run netperf (from ports ... the host, where tested bgeis installed - 10.0.0.2. ...
    (freebsd-net)
  • Re: bge(4) one packet wedge
    ... I've faced a problem in bgewhen a single packet is in the RX ... ring, but it isn't noticed by the driver. ... To reproduce the problem you need to run netperf (from ports ... the host, where tested bgeis installed - 10.0.0.2. ...
    (freebsd-net)
  • Re: Strange pings from 127.0.0.1
    ... I know you said the MAC address is also spoofed but this might help anyway: ... that are reporting port scans to their network all of which have a source ... Infected host picks address as source address and sends Syn packet to ... TCP/IP stack receives packet, responds with reset (if there is nothing ...
    (Security-Basics)