mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: netlink: add helper to retrieve NETLINK_F_STRICT_CHK
Dumps can read state of the NETLINK_F_STRICT_CHK flag from a field in the callback structure. For non-dump GET requests we need a way to access the state of that flag from a socket. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
133bbb18ab
commit
59c28058fa
2 changed files with 9 additions and 0 deletions
|
@ -126,6 +126,7 @@ void __netlink_clear_multicast_users(struct sock *sk, unsigned int group);
|
|||
void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
|
||||
const struct netlink_ext_ack *extack);
|
||||
int netlink_has_listeners(struct sock *sk, unsigned int group);
|
||||
bool netlink_strict_get_check(struct sk_buff *skb);
|
||||
|
||||
int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock);
|
||||
int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 portid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue