Skip to content

Commit 8b6d307

Browse files
juntongdengkuba-moo
authored andcommitted
net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID
Currently getsockopt does not support NETLINK_LISTEN_ALL_NSID, and we are unable to get the value of NETLINK_LISTEN_ALL_NSID socket option through getsockopt. This patch adds getsockopt support for NETLINK_LISTEN_ALL_NSID. Signed-off-by: Juntong Deng <[email protected]> Link: https://lore.kernel.org/r/AM6PR03MB58482322B7B335308DA56FE599272@AM6PR03MB5848.eurprd03.prod.outlook.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a290d4c commit 8b6d307

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/netlink/af_netlink.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,9 @@ static int netlink_getsockopt(struct socket *sock, int level, int optname,
17731773
netlink_unlock_table();
17741774
return err;
17751775
}
1776+
case NETLINK_LISTEN_ALL_NSID:
1777+
flag = NETLINK_F_LISTEN_ALL_NSID;
1778+
break;
17761779
case NETLINK_CAP_ACK:
17771780
flag = NETLINK_F_CAP_ACK;
17781781
break;

0 commit comments

Comments
 (0)