Re: About enabling multiple NET_SOCK_FAMILY at the same time

2022-09-02 Thread Gregory Nutt
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 configurat

About enabling multiple NET_SOCK_FAMILY at the same time

2022-09-02 Thread Hai To
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