lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Single Socket for IPv4 and IPv6


From: address@hidden
Subject: Re: [lwip-users] Single Socket for IPv4 and IPv6
Date: Tue, 25 Jun 2019 20:37:47 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

Am 18.06.2019 um 06:10 schrieb Singaravelu Balasubramani:
Hi,

I need to know is there any way, we can create a single socket to accept
connection from both IPv4 and IPv6 with the constrain of binding to
specific interface.

I know that IPV6_V6ONLY socket option with value as 0 can listen to both
IPv4 and IPv6 and SO_BINDTODEVICE socket option bind to specific
interface instead of specific IP address. Can we use this two socket
option to achieve the single socket to accept both IPv4 and IPv6
connection specific to interface? or is there any other way to achieve
this? If not, why cannot we do this?

We aim to be standard here. Regarding sockets, your question seems
wrong. Instead, try to implement what you want with Linux or *BSD and if
it then doesn't work with lwIP, come back here and ask why ;-)

Regards,
Simon



reply via email to

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