buglwIP - A Lightweight TCP/IP stack - Bugs: bug #35892, tcp_new_port() should be exposed...

 
 

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

bug #35892: tcp_new_port() should be exposed as external API

Submitter:  steven heintz <stevenheintz>
Submitted:  Mon 19 Mar 2012 06:32:44 AM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Change Request Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  1.4.0

Wed 21 Mar 2012 11:39:14 AM UTC, comment #3: 

Great, glad that works.  I just checked the wiki and it's already documented there:

http://lwip.wikia.com/wiki/Raw/TCP

so I'm closing this now

Kieran Mansley <kieranm>
Group Member
Tue 20 Mar 2012 09:05:59 PM UTC, comment #2: 

Ok, confirmed that works - just wasn't clear

so in cases where the LWIP host is responsible for selecting and communicating an arbitrary high port for further communication, bind to INADDR_ANY with port = 0, then do a getsockname() request back into the sockaddr_in struct to get the port number you were granted

then communicate this port number to the other connected client


steven heintz <stevenheintz>
Tue 20 Mar 2012 08:01:51 PM UTC, comment #1: 

Before we do this, does tcp_bind() with the requested port of 0 not do what you need?

Kieran Mansley <kieranm>
Group Member
Mon 19 Mar 2012 06:32:44 AM UTC, original submission:  


at times, you need to select an unallocated high port (i.e.: writing an FTP server - and sending a PASV data port)

instead of just picking a port, it would be nice to call tcp_port_new() to cooperatively choose one from the port allocator


steven heintz <stevenheintz>

 

(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 kieranm (Posted a comment)
  • -email is unavailable- added by stevenheintz (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-03-21 kieranm StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code