Commit 8b6d307f authored by Juntong Deng's avatar Juntong Deng Committed by Jakub Kicinski

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: default avatarJuntong Deng <juntong.deng@outlook.com>
Link: https://lore.kernel.org/r/AM6PR03MB58482322B7B335308DA56FE599272@AM6PR03MB5848.eurprd03.prod.outlook.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a290d4cb
......@@ -1773,6 +1773,9 @@ static int netlink_getsockopt(struct socket *sock, int level, int optname,
netlink_unlock_table();
return err;
}
case NETLINK_LISTEN_ALL_NSID:
flag = NETLINK_F_LISTEN_ALL_NSID;
break;
case NETLINK_CAP_ACK:
flag = NETLINK_F_CAP_ACK;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment