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()

Submitted by:  hanhui <hanhui03>
Submitted on:  Tue 24 Jul 2012 11:30:17 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Ivan Delamer <idelamer>
Open/Closed: ClosedPlanned 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>
Project MemberIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 24 Jul 2012 04:37:57 PM UTCidelamerStatusNone=>Fixed
      Assigned toNone=>idelamer
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1