No, that logic is not limiting the number of socket families, it is simply
picking a valid socket family to access socket IOCTLs.  See line 78 in that
same file:

/* The address family that we used to create the socket really does not
* matter. It should, however, be valid in the current configuration.
*/

On Fri, Sep 2, 2022 at 5:46 PM Hai To <hai...@unikie.com> wrote:

> Hi,
>
> My current usage requires SocketCAN and Internet connection at the same
> time. But according to this:
>
> https://github.com/tiiuae/nuttx/blob/3c2a3172010a0d773a404ffe610341fd6334d35d/include/nuttx/net/netconfig.h#L82
> It seems that this is impossible. One of the NET_SOCK_FAMILY can be enabled
> If I got it correctly.
> This seems weird to me. Please let me know if I missed something.
>
> Thanks
> BR
> Hai To
>

Reply via email to