buglwIP - A Lightweight TCP/IP stack - Bugs: bug #36935, faulty behaviour in listen()

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36935: faulty behaviour in listen()

Submitter:  hanhui <hanhui03>
Submitted:  Tue 24 Jul 2012 11:30:17 AM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  idelamer
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Tue 24 Jul 2012 04:37:57 PM UTC, comment #2: 

Fixed as per patch in bug #36857. Thanks for reporting. Cheers, Ivan

Ivan Delamer <idelamer>
Group Member
Tue 24 Jul 2012 11:46:39 AM UTC, comment #1: 

FYI: I already submitted bug #36857 regarding this problem, along with a proposed fix.


James Smith <rallysmith>
Tue 24 Jul 2012 11:30:17 AM UTC, original submission:  

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

hanhui <hanhui03>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by idelamer (Posted a comment)
  • -email is unavailable- added by rallysmith (Posted a comment)
  • -email is unavailable- added by hanhui03 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-07-24 idelamer StatusNone Fixed
        Assigned toNone idelamer
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code