aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r--include/net/netlink.h63
1 files changed, 25 insertions, 38 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index 9690b0f6698a..2b47eaadba8f 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -225,44 +225,31 @@ struct nl_info {
225 u32 portid; 225 u32 portid;
226}; 226};
227 227
228extern int netlink_rcv_skb(struct sk_buff *skb, 228int netlink_rcv_skb(struct sk_buff *skb,
229 int (*cb)(struct sk_buff *, 229 int (*cb)(struct sk_buff *, struct nlmsghdr *));
230 struct nlmsghdr *)); 230int nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid,
231extern int nlmsg_notify(struct sock *sk, struct sk_buff *skb, 231 unsigned int group, int report, gfp_t flags);
232 u32 portid, unsigned int group, int report, 232
233 gfp_t flags); 233int nla_validate(const struct nlattr *head, int len, int maxtype,
234 234 const struct nla_policy *policy);
235extern int nla_validate(const struct nlattr *head, 235int nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
236 int len, int maxtype, 236 int len, const struct nla_policy *policy);
237 const struct nla_policy *policy); 237int nla_policy_len(const struct nla_policy *, int);
238extern int nla_parse(struct nlattr **tb, int maxtype, 238struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
239 const struct nlattr *head, int len, 239size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize);
240 const struct nla_policy *policy); 240int nla_memcpy(void *dest, const struct nlattr *src, int count);
241extern int nla_policy_len(const struct nla_policy *, int); 241int nla_memcmp(const struct nlattr *nla, const void *data, size_t size);
242extern struct nlattr * nla_find(const struct nlattr *head, 242int nla_strcmp(const struct nlattr *nla, const char *str);
243 int len, int attrtype); 243struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
244extern size_t nla_strlcpy(char *dst, const struct nlattr *nla, 244void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen);
245 size_t dstsize); 245struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
246extern int nla_memcpy(void *dest, const struct nlattr *src, int count); 246void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen);
247extern int nla_memcmp(const struct nlattr *nla, const void *data, 247void __nla_put(struct sk_buff *skb, int attrtype, int attrlen,
248 size_t size); 248 const void *data);
249extern int nla_strcmp(const struct nlattr *nla, const char *str); 249void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data);
250extern struct nlattr * __nla_reserve(struct sk_buff *skb, int attrtype, 250int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);
251 int attrlen); 251int nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data);
252extern void * __nla_reserve_nohdr(struct sk_buff *skb, int attrlen); 252int nla_append(struct sk_buff *skb, int attrlen, const void *data);
253extern struct nlattr * nla_reserve(struct sk_buff *skb, int attrtype,
254 int attrlen);
255extern void * nla_reserve_nohdr(struct sk_buff *skb, int attrlen);
256extern void __nla_put(struct sk_buff *skb, int attrtype,
257 int attrlen, const void *data);
258extern void __nla_put_nohdr(struct sk_buff *skb, int attrlen,
259 const void *data);
260extern int nla_put(struct sk_buff *skb, int attrtype,
261 int attrlen, const void *data);
262extern int nla_put_nohdr(struct sk_buff *skb, int attrlen,
263 const void *data);
264extern int nla_append(struct sk_buff *skb, int attrlen,
265 const void *data);
266 253
267/************************************************************************** 254/**************************************************************************
268 * Netlink Messages 255 * Netlink Messages