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:
parent
0095009076
commit
583ff3b962
1 changed files with 3 additions and 2 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue