diff options
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r-- | include/net/netlink.h | 63 |
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 | ||
228 | extern int netlink_rcv_skb(struct sk_buff *skb, | 228 | int netlink_rcv_skb(struct sk_buff *skb, |
229 | int (*cb)(struct sk_buff *, | 229 | int (*cb)(struct sk_buff *, struct nlmsghdr *)); |
230 | struct nlmsghdr *)); | 230 | int nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid, |
231 | extern 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); | 233 | int nla_validate(const struct nlattr *head, int len, int maxtype, |
234 | 234 | const struct nla_policy *policy); | |
235 | extern int nla_validate(const struct nlattr *head, | 235 | int 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); | 237 | int nla_policy_len(const struct nla_policy *, int); |
238 | extern int nla_parse(struct nlattr **tb, int maxtype, | 238 | struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype); |
239 | const struct nlattr *head, int len, | 239 | size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize); |
240 | const struct nla_policy *policy); | 240 | int nla_memcpy(void *dest, const struct nlattr *src, int count); |
241 | extern int nla_policy_len(const struct nla_policy *, int); | 241 | int nla_memcmp(const struct nlattr *nla, const void *data, size_t size); |
242 | extern struct nlattr * nla_find(const struct nlattr *head, | 242 | int nla_strcmp(const struct nlattr *nla, const char *str); |
243 | int len, int attrtype); | 243 | struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); |
244 | extern size_t nla_strlcpy(char *dst, const struct nlattr *nla, | 244 | void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen); |
245 | size_t dstsize); | 245 | struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); |
246 | extern int nla_memcpy(void *dest, const struct nlattr *src, int count); | 246 | void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen); |
247 | extern int nla_memcmp(const struct nlattr *nla, const void *data, | 247 | void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, |
248 | size_t size); | 248 | const void *data); |
249 | extern int nla_strcmp(const struct nlattr *nla, const char *str); | 249 | void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data); |
250 | extern struct nlattr * __nla_reserve(struct sk_buff *skb, int attrtype, | 250 | int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); |
251 | int attrlen); | 251 | int nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data); |
252 | extern void * __nla_reserve_nohdr(struct sk_buff *skb, int attrlen); | 252 | int nla_append(struct sk_buff *skb, int attrlen, const void *data); |
253 | extern struct nlattr * nla_reserve(struct sk_buff *skb, int attrtype, | ||
254 | int attrlen); | ||
255 | extern void * nla_reserve_nohdr(struct sk_buff *skb, int attrlen); | ||
256 | extern void __nla_put(struct sk_buff *skb, int attrtype, | ||
257 | int attrlen, const void *data); | ||
258 | extern void __nla_put_nohdr(struct sk_buff *skb, int attrlen, | ||
259 | const void *data); | ||
260 | extern int nla_put(struct sk_buff *skb, int attrtype, | ||
261 | int attrlen, const void *data); | ||
262 | extern int nla_put_nohdr(struct sk_buff *skb, int attrlen, | ||
263 | const void *data); | ||
264 | extern int nla_append(struct sk_buff *skb, int attrlen, | ||
265 | const void *data); | ||
266 | 253 | ||
267 | /************************************************************************** | 254 | /************************************************************************** |
268 | * Netlink Messages | 255 | * Netlink Messages |