netlink.h (9ca718743ad8402958637bfc196d7b62371a1b9f) | netlink.h (872f690341948b502c93318f806d821c56772c42) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __NET_NETLINK_H 3#define __NET_NETLINK_H 4 5#include <linux/types.h> 6#include <linux/netlink.h> 7#include <linux/jiffies.h> 8#include <linux/in6.h> --- 128 unchanged lines hidden (view full) --- 137 * nla_get_s32(nla) get payload for a s32 attribute 138 * nla_get_s64(nla) get payload for a s64 attribute 139 * nla_get_flag(nla) return 1 if flag is true 140 * nla_get_msecs(nla) get payload for a msecs attribute 141 * 142 * Attribute Misc: 143 * nla_memcpy(dest, nla, count) copy attribute into memory 144 * nla_memcmp(nla, data, size) compare attribute with memory area | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __NET_NETLINK_H 3#define __NET_NETLINK_H 4 5#include <linux/types.h> 6#include <linux/netlink.h> 7#include <linux/jiffies.h> 8#include <linux/in6.h> --- 128 unchanged lines hidden (view full) --- 137 * nla_get_s32(nla) get payload for a s32 attribute 138 * nla_get_s64(nla) get payload for a s64 attribute 139 * nla_get_flag(nla) return 1 if flag is true 140 * nla_get_msecs(nla) get payload for a msecs attribute 141 * 142 * Attribute Misc: 143 * nla_memcpy(dest, nla, count) copy attribute into memory 144 * nla_memcmp(nla, data, size) compare attribute with memory area |
145 * nla_strlcpy(dst, nla, size) copy attribute to a sized string | 145 * nla_strscpy(dst, nla, size) copy attribute to a sized string |
146 * nla_strcmp(nla, str) compare attribute with string 147 * 148 * Attribute Parsing: 149 * nla_ok(nla, remaining) does nla fit into remaining bytes? 150 * nla_next(nla, remaining) get next netlink attribute 151 * nla_validate() validate a stream of attributes 152 * nla_validate_nested() validate a stream of nested attributes 153 * nla_find() find attribute in stream of attributes --- 347 unchanged lines hidden (view full) --- 501int __nla_validate(const struct nlattr *head, int len, int maxtype, 502 const struct nla_policy *policy, unsigned int validate, 503 struct netlink_ext_ack *extack); 504int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, 505 int len, const struct nla_policy *policy, unsigned int validate, 506 struct netlink_ext_ack *extack); 507int nla_policy_len(const struct nla_policy *, int); 508struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype); | 146 * nla_strcmp(nla, str) compare attribute with string 147 * 148 * Attribute Parsing: 149 * nla_ok(nla, remaining) does nla fit into remaining bytes? 150 * nla_next(nla, remaining) get next netlink attribute 151 * nla_validate() validate a stream of attributes 152 * nla_validate_nested() validate a stream of nested attributes 153 * nla_find() find attribute in stream of attributes --- 347 unchanged lines hidden (view full) --- 501int __nla_validate(const struct nlattr *head, int len, int maxtype, 502 const struct nla_policy *policy, unsigned int validate, 503 struct netlink_ext_ack *extack); 504int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, 505 int len, const struct nla_policy *policy, unsigned int validate, 506 struct netlink_ext_ack *extack); 507int nla_policy_len(const struct nla_policy *, int); 508struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype); |
509ssize_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize); | 509ssize_t nla_strscpy(char *dst, const struct nlattr *nla, size_t dstsize); |
510char *nla_strdup(const struct nlattr *nla, gfp_t flags); 511int nla_memcpy(void *dest, const struct nlattr *src, int count); 512int nla_memcmp(const struct nlattr *nla, const void *data, size_t size); 513int nla_strcmp(const struct nlattr *nla, const char *str); 514struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 515struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype, 516 int attrlen, int padattr); 517void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen); --- 1449 unchanged lines hidden --- | 510char *nla_strdup(const struct nlattr *nla, gfp_t flags); 511int nla_memcpy(void *dest, const struct nlattr *src, int count); 512int nla_memcmp(const struct nlattr *nla, const void *data, size_t size); 513int nla_strcmp(const struct nlattr *nla, const char *str); 514struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 515struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype, 516 int attrlen, int padattr); 517void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen); --- 1449 unchanged lines hidden --- |