[Top][All Lists]

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

[lwip-devel] [bug #36935] faulty behaviour in listen()

From: hanhui
Subject: [lwip-devel] [bug #36935] faulty behaviour in listen()
Date: Tue, 24 Jul 2012 11:30:17 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30


                 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



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!



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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