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

Submitted by:  steven heintz <stevenheintz>
Submitted on:  Mon 19 Mar 2012 06:32:44 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Change RequestStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned 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>
Project Administrator
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>
Project Administrator
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>

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 21 Mar 2012 11:39:14 AM UTCkieranmStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1