netdev
[Top] [All Lists]

Re: PATCH Re: udp weirdness

To: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Subject: Re: PATCH Re: udp weirdness
From: jamal <hadi@xxxxxxxxxx>
Date: Tue, 1 Oct 2002 13:55:24 -0400 (EDT)
Cc: <kuznet@xxxxxxxxxxxxx>, Chris Friesen <cfriesen@xxxxxxxxxxxxxxxxxx>, <netdev@xxxxxxxxxxx>
In-reply-to: <3D99D061.1090208@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx

On Tue, 1 Oct 2002, Ben Greear wrote:

> get my pktgen and send-to-self code cleaned up, I am planning to start
> working on making UDP reliably send packets, or return an error to
> the calling code.  I will, of course, keep you informed if I actually
> get something working...

If you want realibility then thats what TCP is for.
I am curious why you would even want to retransmit a voice packet or
why a local drop should be treated any different from a remote/network
drop in a voice application ...

When you fail in sendto/sendmsg, errno is set to ENOBUFS as long as you
set IP_RECVERR in the socket options; you can also receive ICMP errors
as described in the manpages (use a msg_control buffer and call recvmsg
with MSG_ERRQUEUE).

BTW, a good sample of an app that makes good use of ENOBUFS to do
congestion control, IP_RECVERR and MSG_ERRQUEUE is the ping app in Alexeys
iputils package. Why did i not remember all this before chasing the
phantom with Eric is an indication i need to increase my cafeine
consumption.

cheers,
jamal


<Prev in Thread] Current Thread [Next in Thread>