Uploaded image for project: 'LWIP based TCP/IP'
  1. LWIP based TCP/IP
  2. PSLWIP-329

"Arbitrary" port for client sockets should be randomized on system start

    Details

    • Type: Change
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.3.0.2
    • Fix Version/s: V4.5.1.0
    • Labels:
      None
    • Account:
      SPC TCP_IP (SPCTCPIP)

      Description

      When I boot the netX and, via the DPM SOCKAPI, create a socket, _not_ bind it, but just connect it, the source port 49152 is always used by lwIP. Any further connect request on any unbound socket will of course use a different port (the initial value is being incremented for round-robin port arbitration)

      Anyway, when I reboot the netX, and repeat the sequence of operations, then again source port 49152 is used with the first connect request. This sometimes causes the peer to recognize this as an "old" connection and, e.g. send a RST straight away or whatever the state of the connection was.

      I think we should randomize this fixed initial source port value of 49152 to reduce the probability for this to occur. New functions from PSTBNETX-49 may be used for this.

        Attachments

          Issue Links

            Expenses

              Activity

                Status Description

                  People

                  • Reporter:
                    MBommert Marc Bommert
                  • Votes:
                    1 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: