Skip to content

Commit 583ff3b

Browse files
zhhyu7xiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent 0095009 commit 583ff3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net/usrsock/usrsock_sockif.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ static int usrsock_sockif_setup(FAR struct socket *psock)
102102
{
103103
int ret;
104104

105-
if (psock->s_domain != PF_INET && psock->s_domain != PF_INET6)
105+
if (psock->s_domain != PF_INET && psock->s_domain != PF_INET6 &&
106+
psock->s_domain != PF_NETLINK)
106107
{
107-
return -ENOTSUP; /* Only ipv4 and ipv6 support the offload */
108+
return -ENOTSUP; /* Only ipv4, ipv6 and netlink support the offload */
108109
};
109110

110111
/* Let the user socket logic handle the setup...

0 commit comments

Comments
 (0)