talkd
David S. Miller
davem en redhat.com
Lun Ene 31 07:24:20 CST 2000
From: Mateus Cordeiro Inssa <mateus en ifnet.com.br>
Date: Mon, 31 Jan 2000 09:13:57 -0200 (BRDT)
Of course the application check for errors, but the error always
occur in the first recvfrom. The application doesn't change any
socket property, so I assume it is on blocking mode.
The sequence is: socket, bind, select,recvfrom. No one uses any
extra param.
Right, and if recvfrom returns an error, the sockaddr structure
holds garbage. It's contents cannot be relied upon, and what
I get from your report is that the sockaddr passed to recvfrom
is the same one which gets passed to sendto/sendmsg. That is
wrong, and is what causes the problem. The application in question
needs to be fixed if this is the case.
Later,
David S. Miller
davem en redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda