24 Jul 2012 13:30
[bug #36935] faulty behaviour in listen()
hanhui <INVALID.NOREPLY <at> gnu.org>
2012-07-24 11:30:17 GMT
2012-07-24 11:30:17 GMT
URL: <http://savannah.nongnu.org/bugs/?36935> Summary: faulty behaviour in listen() Project: lwIP - A Lightweight TCP/IP stack Submitted by: hanhui03 Submitted on: Tue Jul 24 11:30:17 2012 Category: TCP Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: CVS Head _______________________________________________________ Details: hello develops there are some error in listen(), that cause a faulty behaviour. for example: struct sockaddr_in me; me.sin6_len = sizeof(struct sockaddr_in); me.sin_family = AF_INET; me.sin_port = 0; me.sin_addr.s_addr = <NOT INADDR_ANY> ... listen(s, (struct sockaddr *)&me, 1) < 0 is true because that in tcp_listen_dual_with_backlog(), if I allows to accept IPv4 and IPv6 connections, and me.sin_addr.s_addr is not INADDR_ANY, tcp_listen_dual_with_backlog() return NULL! hanhui03 _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?36935> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
RSS Feed