mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00

This simple patch causes tcp_listen() to inherit the netbuf_idx setting of the original pcb. Without this, it is not possible to restrict a socket to a specific interface using SO_BINDTODEVICE before listening. Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>