1
0
Fork 0
forked from nuttx/nuttx-update

net/usrsock: usrsock supports offload netlink

supports the usrsock client to subscribe netlink events,
so that it can detect events such as link connection changes.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2024-10-24 19:53:35 +08:00 committed by Xiang Xiao
parent 0095009076
commit 583ff3b962

View file

@ -102,9 +102,10 @@ static int usrsock_sockif_setup(FAR struct socket *psock)
{
int ret;
if (psock->s_domain != PF_INET && psock->s_domain != PF_INET6)
if (psock->s_domain != PF_INET && psock->s_domain != PF_INET6 &&
psock->s_domain != PF_NETLINK)
{
return -ENOTSUP; /* Only ipv4 and ipv6 support the offload */
return -ENOTSUP; /* Only ipv4, ipv6 and netlink support the offload */
};
/* Let the user socket logic handle the setup...