lwip-devel
[Top][All Lists]
Advanced

[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

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/




reply via email to

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