lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #8846] udp_bind: Allocate a random port earlier to c


From: Axel Lin
Subject: [lwip-devel] [patch #8846] udp_bind: Allocate a random port earlier to correctly detect port conflict
Date: Sat, 09 Jan 2016 04:15:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?8846>

                 Summary: udp_bind: Allocate a random port earlier to
correctly detect port conflict
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: axellin
            Submitted on: Sat 09 Jan 2016 04:15:37 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

Current code does not correctly detect port conflict if no port specified
because it checks ipcb->local_port == port before udp_new_port().
Fix it by allocating a random port earlier.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 09 Jan 2016 04:15:37 AM GMT  Name:
0001-udp_bind-Allocate-a-random-port-earlier-to-correctly.patch  Size: 2kB  
By: axellin

<http://savannah.nongnu.org/patch/download.php?file_id=35950>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8846>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]