aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netlink.h')
-rw-r--r--include/linux/netlink.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
index aad8eeaf416d..034cda789a15 100644
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -16,9 +16,10 @@ static inline struct nlmsghdr *nlmsg_hdr(const struct sk_buff *skb)
16} 16}
17 17
18enum netlink_skb_flags { 18enum netlink_skb_flags {
19 NETLINK_SKB_MMAPED = 0x1, /* Packet data is mmaped */ 19 NETLINK_SKB_MMAPED = 0x1, /* Packet data is mmaped */
20 NETLINK_SKB_TX = 0x2, /* Packet was sent by userspace */ 20 NETLINK_SKB_TX = 0x2, /* Packet was sent by userspace */
21 NETLINK_SKB_DELIVERED = 0x4, /* Packet was delivered */ 21 NETLINK_SKB_DELIVERED = 0x4, /* Packet was delivered */
22 NETLINK_SKB_DST = 0x8, /* Dst set in sendto or sendmsg */
22}; 23};
23 24
24struct netlink_skb_parms { 25struct netlink_skb_parms {
@@ -169,4 +170,11 @@ struct netlink_tap {
169extern int netlink_add_tap(struct netlink_tap *nt); 170extern int netlink_add_tap(struct netlink_tap *nt);
170extern int netlink_remove_tap(struct netlink_tap *nt); 171extern int netlink_remove_tap(struct netlink_tap *nt);
171 172
173bool __netlink_ns_capable(const struct netlink_skb_parms *nsp,
174 struct user_namespace *ns, int cap);
175bool netlink_ns_capable(const struct sk_buff *skb,
176 struct user_namespace *ns, int cap);
177bool netlink_capable(const struct sk_buff *skb, int cap);
178bool netlink_net_capable(const struct sk_buff *skb, int cap);
179
172#endif /* __LINUX_NETLINK_H */ 180#endif /* __LINUX_NETLINK_H */