patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9134, bind udp and tcp pcbs to a...


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

patch #9134: bind udp and tcp pcbs to a specific netif

Submitter:  Elias Reichart <alicer>
Submitted:  Tue 04 Oct 2016 01:09:58 PM UTC
Category:  None Priority:  5 - Normal
Status:  Wont Do Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Planned Release:  None

Tue 04 Oct 2016 08:11:51 PM UTC, comment #1: 

I'm sorry to turn you down, but I won't integrate this one.

The standard way to achieve what you want is to bind to the netif's IP address. That means you'll have to adopt to address changes, but with lwIP this is easy to do.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 04 Oct 2016 01:09:58 PM UTC, original submission:  

We have a setup with two different network interfaces, in two different networks. We want some udp/tcp_pcbs to only listen on one of these interfaces.

These patches add a struct netif * to the IP_PCB struct and add the possibility to bind pcbs to a netif via udp_bind_if() / tcp_bind_if().

(The tcp patch depends on udp patch)

Elias Reichart <alicer>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by alicer (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-04 goldsimon StatusNone Wont Do
        Open/ClosedOpen Closed
    2016-10-04 alicer Attached File- Added 0001-bind-udp_pcbs-to-netif.patch, #38661
        Attached File- Added 0001-bind-tcp_pcbs-to-netif.patch, #38662

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code