Skip to content

Commit

Permalink
net/usrsock: usrsock supports offload netlink
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
zhhyu7 authored and xiaoxiang781216 committed Oct 28, 2024
1 parent 0095009 commit 583ff3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/usrsock/usrsock_sockif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit 583ff3b

Please sign in to comment.