[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Issue with SO_BINDTODEVICE
From: |
Oliver Hitz |
Subject: |
Re: [lwip-users] Issue with SO_BINDTODEVICE |
Date: |
Tue, 27 Oct 2020 11:48:52 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
I have found the problem: It seems that lwip_listen() creates a new pcb
but doesn't copy the netbuf_idx field from the original pcb. If
lwip_setsockopt() is called after lwip_listen(), it works as expected.
I will submit a patch which fixes this behaviour, as I think we
shouldn't have to listen on all interfaces first before restricting it
to a single interface.
Regards
Oliver
signature.asc
Description: PGP signature