lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #39718] disconnecting an UDP socket reports an error


From: Kai Raschick
Subject: [lwip-devel] [bug #39718] disconnecting an UDP socket reports an error
Date: Tue, 11 Feb 2014 10:59:13 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0

Follow-up Comment #2, bug #39718 (project lwip):

it can be found in the 2013 version of the posix standard:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html

"For SOCK_DGRAM sockets, the peer address identifies where all datagrams are
sent on subsequent send() functions, and limits the remote sender for
subsequent recv() functions. If the sa_family member of address is AF_UNSPEC,
the socket's peer address shall be reset"

This is allready implemented in the function lwip_connect:
if (name_in->sin_family == AF_UNSPEC) {
    LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d, AF_UNSPEC)n", s));
    err = netconn_disconnect(sock->conn);
  }

The problem is, that a few lines above, an error is returned if
name->sa_family is not eaqual to AF_INET. So the netconn_disconnect function
will never be called.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?39718>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]