nla                99 drivers/block/drbd/drbd_nl.c 	struct nlattr *nla;
nla               105 drivers/block/drbd/drbd_nl.c 	nla = nla_nest_start_noflag(skb, DRBD_NLA_CFG_REPLY);
nla               106 drivers/block/drbd/drbd_nl.c 	if (!nla)
nla               111 drivers/block/drbd/drbd_nl.c 		nla_nest_cancel(skb, nla);
nla               114 drivers/block/drbd/drbd_nl.c 		nla_nest_end(skb, nla);
nla               122 drivers/block/drbd/drbd_nl.c 	struct nlattr *nla, *txt;
nla               126 drivers/block/drbd/drbd_nl.c 	nla = nla_nest_start_noflag(skb, DRBD_NLA_CFG_REPLY);
nla               127 drivers/block/drbd/drbd_nl.c 	if (!nla)
nla               132 drivers/block/drbd/drbd_nl.c 		nla_nest_cancel(skb, nla);
nla               142 drivers/block/drbd/drbd_nl.c 	nla_nest_end(skb, nla);
nla               192 drivers/block/drbd/drbd_nl.c 		struct nlattr *nla;
nla               207 drivers/block/drbd/drbd_nl.c 		nla = nested_attr_tb[__nla_type(T_ctx_volume)];
nla               208 drivers/block/drbd/drbd_nl.c 		if (nla)
nla               209 drivers/block/drbd/drbd_nl.c 			adm_ctx->volume = nla_get_u32(nla);
nla               210 drivers/block/drbd/drbd_nl.c 		nla = nested_attr_tb[__nla_type(T_ctx_resource_name)];
nla               211 drivers/block/drbd/drbd_nl.c 		if (nla)
nla               212 drivers/block/drbd/drbd_nl.c 			adm_ctx->resource_name = nla_data(nla);
nla              3259 drivers/block/drbd/drbd_nl.c 	struct nlattr *nla;
nla              3260 drivers/block/drbd/drbd_nl.c 	nla = nla_nest_start_noflag(skb, DRBD_NLA_CFG_CONTEXT);
nla              3261 drivers/block/drbd/drbd_nl.c 	if (!nla)
nla              3276 drivers/block/drbd/drbd_nl.c 	nla_nest_end(skb, nla);
nla              3280 drivers/block/drbd/drbd_nl.c 	if (nla)
nla              3281 drivers/block/drbd/drbd_nl.c 		nla_nest_cancel(skb, nla);
nla              3294 drivers/block/drbd/drbd_nl.c 	struct nlattr *nla;
nla              3296 drivers/block/drbd/drbd_nl.c 	nla = nla_find(nlmsg_attrdata(nlh, hdrlen), nlmsg_attrlen(nlh, hdrlen),
nla              3298 drivers/block/drbd/drbd_nl.c 	if (!nla)
nla              3300 drivers/block/drbd/drbd_nl.c 	return drbd_nla_find_nested(maxtype, nla, __nla_type(attr));
nla              3782 drivers/block/drbd/drbd_nl.c 	struct nlattr *nla;
nla              3828 drivers/block/drbd/drbd_nl.c 	nla = nla_nest_start_noflag(skb, DRBD_NLA_STATE_INFO);
nla              3829 drivers/block/drbd/drbd_nl.c 	if (!nla)
nla              3893 drivers/block/drbd/drbd_nl.c 	nla_nest_end(skb, nla);
nla              4057 drivers/block/drbd/drbd_nl.c 	struct nlattr *nla;
nla              4073 drivers/block/drbd/drbd_nl.c 	nla = nla_find(nlmsg_attrdata(cb->nlh, hdrlen),
nla              4078 drivers/block/drbd/drbd_nl.c 	if (!nla)
nla              4081 drivers/block/drbd/drbd_nl.c 	nla = drbd_nla_find_nested(maxtype, nla, __nla_type(T_ctx_resource_name));
nla              4082 drivers/block/drbd/drbd_nl.c 	if (IS_ERR(nla))
nla              4083 drivers/block/drbd/drbd_nl.c 		return PTR_ERR(nla);
nla              4085 drivers/block/drbd/drbd_nl.c 	if (!nla)
nla              4087 drivers/block/drbd/drbd_nl.c 	resource_name = nla_data(nla);
nla                 7 drivers/block/drbd/drbd_nla.c static int drbd_nla_check_mandatory(int maxtype, struct nlattr *nla)
nla                 9 drivers/block/drbd/drbd_nla.c 	struct nlattr *head = nla_data(nla);
nla                10 drivers/block/drbd/drbd_nla.c 	int len = nla_len(nla);
nla                21 drivers/block/drbd/drbd_nla.c 	nla_for_each_attr(nla, head, len, rem) {
nla                22 drivers/block/drbd/drbd_nla.c 		if (nla->nla_type & DRBD_GENLA_F_MANDATORY) {
nla                23 drivers/block/drbd/drbd_nla.c 			nla->nla_type &= ~DRBD_GENLA_F_MANDATORY;
nla                24 drivers/block/drbd/drbd_nla.c 			if (nla_type(nla) > maxtype)
nla                31 drivers/block/drbd/drbd_nla.c int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla,
nla                36 drivers/block/drbd/drbd_nla.c 	err = drbd_nla_check_mandatory(maxtype, nla);
nla                38 drivers/block/drbd/drbd_nla.c 		err = nla_parse_nested_deprecated(tb, maxtype, nla, policy,
nla                44 drivers/block/drbd/drbd_nla.c struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype)
nla                52 drivers/block/drbd/drbd_nla.c 	err = drbd_nla_check_mandatory(maxtype, nla);
nla                55 drivers/block/drbd/drbd_nla.c 	return nla_find_nested(nla, attrtype);
nla                 5 drivers/block/drbd/drbd_nla.h extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla,
nla                 7 drivers/block/drbd/drbd_nla.h extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
nla               705 drivers/net/bonding/bond_netlink.c 	struct nlattr *nla __maybe_unused;
nla               881 drivers/net/gtp.c static struct gtp_dev *gtp_find_dev(struct net *src_net, struct nlattr *nla[])
nla               890 drivers/net/gtp.c 	if (nla[GTPA_NET_NS_FD])
nla               891 drivers/net/gtp.c 		net = get_net_ns_by_fd(nla_get_u32(nla[GTPA_NET_NS_FD]));
nla               899 drivers/net/gtp.c 	dev = dev_get_by_index_rcu(net, nla_get_u32(nla[GTPA_LINK]));
nla              1103 drivers/net/gtp.c 					    struct nlattr *nla[])
nla              1107 drivers/net/gtp.c 	gtp = gtp_find_dev(net, nla);
nla              1111 drivers/net/gtp.c 	if (nla[GTPA_MS_ADDRESS]) {
nla              1112 drivers/net/gtp.c 		__be32 ip = nla_get_be32(nla[GTPA_MS_ADDRESS]);
nla              1115 drivers/net/gtp.c 	} else if (nla[GTPA_VERSION]) {
nla              1116 drivers/net/gtp.c 		u32 gtp_version = nla_get_u32(nla[GTPA_VERSION]);
nla              1118 drivers/net/gtp.c 		if (gtp_version == GTP_V0 && nla[GTPA_TID])
nla              1119 drivers/net/gtp.c 			return gtp0_pdp_find(gtp, nla_get_u64(nla[GTPA_TID]));
nla              1120 drivers/net/gtp.c 		else if (gtp_version == GTP_V1 && nla[GTPA_I_TEI])
nla              1121 drivers/net/gtp.c 			return gtp1_pdp_find(gtp, nla_get_u32(nla[GTPA_I_TEI]));
nla              1127 drivers/net/gtp.c static struct pdp_ctx *gtp_find_pdp(struct net *net, struct nlattr *nla[])
nla              1131 drivers/net/gtp.c 	if (nla[GTPA_LINK])
nla              1132 drivers/net/gtp.c 		pctx = gtp_find_pdp_by_link(net, nla);
nla              1475 drivers/net/macsec.c static sci_t nla_get_sci(const struct nlattr *nla)
nla              1477 drivers/net/macsec.c 	return (__force sci_t)nla_get_u64(nla);
nla              1322 drivers/net/macvlan.c 	struct nlattr *nla, *head;
nla              1360 drivers/net/macvlan.c 		nla_for_each_attr(nla, head, len, rem) {
nla              1361 drivers/net/macvlan.c 			if (nla_type(nla) != IFLA_MACVLAN_MACADDR ||
nla              1362 drivers/net/macvlan.c 			    nla_len(nla) != ETH_ALEN)
nla              1365 drivers/net/macvlan.c 			addr = nla_data(nla);
nla               106 drivers/net/vxlan.c static int vxlan_nla_get_addr(union vxlan_addr *ip, struct nlattr *nla)
nla               108 drivers/net/vxlan.c 	if (nla_len(nla) >= sizeof(struct in6_addr)) {
nla               109 drivers/net/vxlan.c 		ip->sin6.sin6_addr = nla_get_in6_addr(nla);
nla               112 drivers/net/vxlan.c 	} else if (nla_len(nla) >= sizeof(__be32)) {
nla               113 drivers/net/vxlan.c 		ip->sin.sin_addr.s_addr = nla_get_in_addr(nla);
nla               138 drivers/net/vxlan.c static int vxlan_nla_get_addr(union vxlan_addr *ip, struct nlattr *nla)
nla               140 drivers/net/vxlan.c 	if (nla_len(nla) >= sizeof(struct in6_addr)) {
nla               142 drivers/net/vxlan.c 	} else if (nla_len(nla) >= sizeof(__be32)) {
nla               143 drivers/net/vxlan.c 		ip->sin.sin_addr.s_addr = nla_get_in_addr(nla);
nla               336 drivers/scsi/be2iscsi/be_iscsi.c 	struct nlattr *nla;
nla               367 drivers/scsi/be2iscsi/be_iscsi.c 		nla = nla_find(data, dt_len, ISCSI_NET_PARAM_IPV4_SUBNET);
nla               368 drivers/scsi/be2iscsi/be_iscsi.c 		if (nla) {
nla               369 drivers/scsi/be2iscsi/be_iscsi.c 			info = nla_data(nla);
nla               381 drivers/scsi/be2iscsi/be_iscsi.c 		nla = nla_find(data, dt_len, ISCSI_NET_PARAM_IPV4_ADDR);
nla               382 drivers/scsi/be2iscsi/be_iscsi.c 		if (nla) {
nla               383 drivers/scsi/be2iscsi/be_iscsi.c 			info = nla_data(nla);
nla               101 include/linux/genl_magic_func.h #define DPRINT_FIELD(dir, nla_type, name, s, nla)			\
nla               105 include/linux/genl_magic_func.h 		else if (nla)						\
nla               108 include/linux/genl_magic_func.h 						: nla_data(nla));	\
nla               111 include/linux/genl_magic_func.h #define	DPRINT_ARRAY(dir, nla_type, name, s, nla)			\
nla               116 include/linux/genl_magic_func.h 		else if (nla)						\
nla               118 include/linux/genl_magic_func.h 					nla_data(nla), nla_len(nla));	\
nla               122 include/linux/genl_magic_func.h #define DPRINT_FIELD(dir, nla_type, name, s, nla) do {} while (0)
nla               123 include/linux/genl_magic_func.h #define	DPRINT_ARRAY(dir, nla_type, name, s, nla) do {} while (0)
nla               145 include/linux/genl_magic_func.h 	struct nlattr *nla;						\
nla               170 include/linux/genl_magic_func.h 		nla = ntb[attr_nr];						\
nla               171 include/linux/genl_magic_func.h 		if (nla) {						\
nla               190 include/linux/genl_magic_func.h 				s->name = __get(nla);			\
nla               191 include/linux/genl_magic_func.h 			DPRINT_FIELD("<<", nla_type, name, s, nla))
nla               200 include/linux/genl_magic_func.h 					__get(s->name, nla, maxlen);	\
nla               201 include/linux/genl_magic_func.h 			DPRINT_ARRAY("<<", nla_type, name, s, nla))
nla               342 include/linux/netfilter/ipset/ip_set.h extern int ip_set_get_ipaddr4(struct nlattr *nla,  __be32 *ipaddr);
nla               343 include/linux/netfilter/ipset/ip_set.h extern int ip_set_get_ipaddr6(struct nlattr *nla, union nf_inet_addr *ipaddr);
nla               356 include/linux/netfilter/ipset/ip_set.h ip_set_get_hostipaddr4(struct nlattr *nla, u32 *ipaddr)
nla               359 include/linux/netfilter/ipset/ip_set.h 	int ret = ip_set_get_ipaddr4(nla, &ip);
nla                95 include/net/act_api.h 	int     (*init)(struct net *net, struct nlattr *nla,
nla               177 include/net/act_api.h int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
nla               182 include/net/act_api.h 				    struct nlattr *nla, struct nlattr *est,
nla               150 include/net/fib_rules.h static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla)
nla               152 include/net/fib_rules.h 	if (nla[FRA_TABLE])
nla               153 include/net/fib_rules.h 		return nla_get_u32(nla[FRA_TABLE]);
nla               405 include/net/ip_fib.h int fib_gw_from_via(struct fib_config *cfg, struct nlattr *nla,
nla                34 include/net/netfilter/nf_conntrack_l4proto.h 	int (*to_nlattr)(struct sk_buff *skb, struct nlattr *nla,
nla               173 include/net/netfilter/nf_tables.h 	const struct nlattr * const 	*nla;
nla               189 include/net/netfilter/nf_tables.h 		  struct nft_data_desc *desc, const struct nlattr *nla);
nla               361 include/net/netfilter/nf_tables.h 	u64				(*privsize)(const struct nlattr * const nla[],
nla               368 include/net/netfilter/nf_tables.h 						const struct nlattr * const nla[]);
nla               833 include/net/netfilter/nf_tables.h 			       const struct nlattr *nla);
nla              1090 include/net/netfilter/nf_tables.h 				  const struct nlattr *nla, u32 objtype,
nla              1184 include/net/netfilter/nf_tables.h 					   const struct nlattr *nla,
nla               442 include/net/netlink.h size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize);
nla               443 include/net/netlink.h char *nla_strdup(const struct nlattr *nla, gfp_t flags);
nla               445 include/net/netlink.h int nla_memcmp(const struct nlattr *nla, const void *data, size_t size);
nla               446 include/net/netlink.h int nla_strcmp(const struct nlattr *nla, const char *str);
nla              1063 include/net/netlink.h static inline int nla_type(const struct nlattr *nla)
nla              1065 include/net/netlink.h 	return nla->nla_type & NLA_TYPE_MASK;
nla              1072 include/net/netlink.h static inline void *nla_data(const struct nlattr *nla)
nla              1074 include/net/netlink.h 	return (char *) nla + NLA_HDRLEN;
nla              1081 include/net/netlink.h static inline int nla_len(const struct nlattr *nla)
nla              1083 include/net/netlink.h 	return nla->nla_len - NLA_HDRLEN;
nla              1091 include/net/netlink.h static inline int nla_ok(const struct nlattr *nla, int remaining)
nla              1093 include/net/netlink.h 	return remaining >= (int) sizeof(*nla) &&
nla              1094 include/net/netlink.h 	       nla->nla_len >= sizeof(*nla) &&
nla              1095 include/net/netlink.h 	       nla->nla_len <= remaining;
nla              1106 include/net/netlink.h static inline struct nlattr *nla_next(const struct nlattr *nla, int *remaining)
nla              1108 include/net/netlink.h 	unsigned int totlen = NLA_ALIGN(nla->nla_len);
nla              1111 include/net/netlink.h 	return (struct nlattr *) ((char *) nla + totlen);
nla              1122 include/net/netlink.h nla_find_nested(const struct nlattr *nla, int attrtype)
nla              1124 include/net/netlink.h 	return nla_find(nla_data(nla), nla_len(nla), attrtype);
nla              1138 include/net/netlink.h 				   const struct nlattr *nla,
nla              1142 include/net/netlink.h 	if (!(nla->nla_type & NLA_F_NESTED)) {
nla              1143 include/net/netlink.h 		NL_SET_ERR_MSG_ATTR(extack, nla, "NLA_F_NESTED is missing");
nla              1147 include/net/netlink.h 	return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy,
nla              1162 include/net/netlink.h 					      const struct nlattr *nla,
nla              1166 include/net/netlink.h 	return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy,
nla              1472 include/net/netlink.h static inline u32 nla_get_u32(const struct nlattr *nla)
nla              1474 include/net/netlink.h 	return *(u32 *) nla_data(nla);
nla              1481 include/net/netlink.h static inline __be32 nla_get_be32(const struct nlattr *nla)
nla              1483 include/net/netlink.h 	return *(__be32 *) nla_data(nla);
nla              1490 include/net/netlink.h static inline __le32 nla_get_le32(const struct nlattr *nla)
nla              1492 include/net/netlink.h 	return *(__le32 *) nla_data(nla);
nla              1499 include/net/netlink.h static inline u16 nla_get_u16(const struct nlattr *nla)
nla              1501 include/net/netlink.h 	return *(u16 *) nla_data(nla);
nla              1508 include/net/netlink.h static inline __be16 nla_get_be16(const struct nlattr *nla)
nla              1510 include/net/netlink.h 	return *(__be16 *) nla_data(nla);
nla              1517 include/net/netlink.h static inline __le16 nla_get_le16(const struct nlattr *nla)
nla              1519 include/net/netlink.h 	return *(__le16 *) nla_data(nla);
nla              1526 include/net/netlink.h static inline u8 nla_get_u8(const struct nlattr *nla)
nla              1528 include/net/netlink.h 	return *(u8 *) nla_data(nla);
nla              1535 include/net/netlink.h static inline u64 nla_get_u64(const struct nlattr *nla)
nla              1539 include/net/netlink.h 	nla_memcpy(&tmp, nla, sizeof(tmp));
nla              1548 include/net/netlink.h static inline __be64 nla_get_be64(const struct nlattr *nla)
nla              1552 include/net/netlink.h 	nla_memcpy(&tmp, nla, sizeof(tmp));
nla              1561 include/net/netlink.h static inline __le64 nla_get_le64(const struct nlattr *nla)
nla              1563 include/net/netlink.h 	return *(__le64 *) nla_data(nla);
nla              1570 include/net/netlink.h static inline s32 nla_get_s32(const struct nlattr *nla)
nla              1572 include/net/netlink.h 	return *(s32 *) nla_data(nla);
nla              1579 include/net/netlink.h static inline s16 nla_get_s16(const struct nlattr *nla)
nla              1581 include/net/netlink.h 	return *(s16 *) nla_data(nla);
nla              1588 include/net/netlink.h static inline s8 nla_get_s8(const struct nlattr *nla)
nla              1590 include/net/netlink.h 	return *(s8 *) nla_data(nla);
nla              1597 include/net/netlink.h static inline s64 nla_get_s64(const struct nlattr *nla)
nla              1601 include/net/netlink.h 	nla_memcpy(&tmp, nla, sizeof(tmp));
nla              1610 include/net/netlink.h static inline int nla_get_flag(const struct nlattr *nla)
nla              1612 include/net/netlink.h 	return !!nla;
nla              1621 include/net/netlink.h static inline unsigned long nla_get_msecs(const struct nlattr *nla)
nla              1623 include/net/netlink.h 	u64 msecs = nla_get_u64(nla);
nla              1632 include/net/netlink.h static inline __be32 nla_get_in_addr(const struct nlattr *nla)
nla              1634 include/net/netlink.h 	return *(__be32 *) nla_data(nla);
nla              1641 include/net/netlink.h static inline struct in6_addr nla_get_in6_addr(const struct nlattr *nla)
nla              1645 include/net/netlink.h 	nla_memcpy(&tmp, nla, sizeof(tmp));
nla              1653 include/net/netlink.h static inline struct nla_bitfield32 nla_get_bitfield32(const struct nlattr *nla)
nla              1657 include/net/netlink.h 	nla_memcpy(&tmp, nla, sizeof(tmp));
nla              1851 include/net/netlink.h #define nla_for_each_nested(pos, nla, rem) \
nla              1852 include/net/netlink.h 	nla_for_each_attr(pos, nla_data(nla), nla_len(nla), rem)
nla              1859 include/net/netlink.h static inline bool nla_is_last(const struct nlattr *nla, int rem)
nla              1861 include/net/netlink.h 	return nla->nla_len == rem;
nla                47 lib/nlattr.c   static int validate_nla_bitfield32(const struct nlattr *nla,
nla                50 lib/nlattr.c   	const struct nla_bitfield32 *bf = nla_data(nla);
nla               100 lib/nlattr.c   				  const struct nlattr *nla,
nla               113 lib/nlattr.c   		value = nla_get_u8(nla);
nla               116 lib/nlattr.c   		value = nla_get_u16(nla);
nla               119 lib/nlattr.c   		value = nla_get_u32(nla);
nla               122 lib/nlattr.c   		value = nla_get_s8(nla);
nla               125 lib/nlattr.c   		value = nla_get_s16(nla);
nla               128 lib/nlattr.c   		value = nla_get_s32(nla);
nla               131 lib/nlattr.c   		value = nla_get_s64(nla);
nla               135 lib/nlattr.c   		if ((validate_min && nla_get_u64(nla) < pt->min) ||
nla               136 lib/nlattr.c   		    (validate_max && nla_get_u64(nla) > pt->max)) {
nla               137 lib/nlattr.c   			NL_SET_ERR_MSG_ATTR(extack, nla,
nla               149 lib/nlattr.c   		NL_SET_ERR_MSG_ATTR(extack, nla,
nla               157 lib/nlattr.c   static int validate_nla(const struct nlattr *nla, int maxtype,
nla               163 lib/nlattr.c   	int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla);
nla               181 lib/nlattr.c   			NL_SET_ERR_MSG_ATTR(extack, nla,
nla               189 lib/nlattr.c   		    !(nla->nla_type & NLA_F_NESTED)) {
nla               190 lib/nlattr.c   			NL_SET_ERR_MSG_ATTR(extack, nla,
nla               195 lib/nlattr.c   		    pt->type != NLA_UNSPEC && (nla->nla_type & NLA_F_NESTED)) {
nla               196 lib/nlattr.c   			NL_SET_ERR_MSG_ATTR(extack, nla,
nla               210 lib/nlattr.c   			NL_SET_BAD_ATTR(extack, nla);
nla               226 lib/nlattr.c   		err = validate_nla_bitfield32(nla, pt->validation_data);
nla               237 lib/nlattr.c   		if (!minlen || memchr(nla_data(nla), '\0', minlen) == NULL) {
nla               248 lib/nlattr.c   			char *buf = nla_data(nla);
nla               272 lib/nlattr.c   			err = __nla_validate(nla_data(nla), nla_len(nla), pt->len,
nla               295 lib/nlattr.c   			err = nla_validate_array(nla_data(nla), nla_len(nla),
nla               310 lib/nlattr.c   			NL_SET_ERR_MSG_ATTR(extack, nla,
nla               338 lib/nlattr.c   		err = nla_validate_int_range(pt, nla, extack);
nla               344 lib/nlattr.c   			err = pt->validate(nla, extack);
nla               353 lib/nlattr.c   	NL_SET_ERR_MSG_ATTR(extack, nla, "Attribute failed policy validation");
nla               363 lib/nlattr.c   	const struct nlattr *nla;
nla               369 lib/nlattr.c   	nla_for_each_attr(nla, head, len, rem) {
nla               370 lib/nlattr.c   		u16 type = nla_type(nla);
nla               374 lib/nlattr.c   				NL_SET_ERR_MSG_ATTR(extack, nla,
nla               381 lib/nlattr.c   			int err = validate_nla(nla, maxtype, policy,
nla               389 lib/nlattr.c   			tb[type] = (struct nlattr *)nla;
nla               493 lib/nlattr.c   	const struct nlattr *nla;
nla               496 lib/nlattr.c   	nla_for_each_attr(nla, head, len, rem)
nla               497 lib/nlattr.c   		if (nla_type(nla) == attrtype)
nla               498 lib/nlattr.c   			return (struct nlattr *)nla;
nla               516 lib/nlattr.c   size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize)
nla               518 lib/nlattr.c   	size_t srclen = nla_len(nla);
nla               519 lib/nlattr.c   	char *src = nla_data(nla);
nla               542 lib/nlattr.c   char *nla_strdup(const struct nlattr *nla, gfp_t flags)
nla               544 lib/nlattr.c   	size_t srclen = nla_len(nla);
nla               545 lib/nlattr.c   	char *src = nla_data(nla), *dst;
nla               588 lib/nlattr.c   int nla_memcmp(const struct nlattr *nla, const void *data,
nla               591 lib/nlattr.c   	int d = nla_len(nla) - size;
nla               594 lib/nlattr.c   		d = memcmp(nla_data(nla), data, size);
nla               605 lib/nlattr.c   int nla_strcmp(const struct nlattr *nla, const char *str)
nla               608 lib/nlattr.c   	char *buf = nla_data(nla);
nla               609 lib/nlattr.c   	int attrlen = nla_len(nla);
nla               617 lib/nlattr.c   		d = memcmp(nla_data(nla), str, len);
nla               638 lib/nlattr.c   	struct nlattr *nla;
nla               640 lib/nlattr.c   	nla = skb_put(skb, nla_total_size(attrlen));
nla               641 lib/nlattr.c   	nla->nla_type = attrtype;
nla               642 lib/nlattr.c   	nla->nla_len = nla_attr_size(attrlen);
nla               644 lib/nlattr.c   	memset((unsigned char *) nla + nla->nla_len, 0, nla_padlen(attrlen));
nla               646 lib/nlattr.c   	return nla;
nla               773 lib/nlattr.c   	struct nlattr *nla;
nla               775 lib/nlattr.c   	nla = __nla_reserve(skb, attrtype, attrlen);
nla               776 lib/nlattr.c   	memcpy(nla_data(nla), data, attrlen);
nla               794 lib/nlattr.c   	struct nlattr *nla;
nla               796 lib/nlattr.c   	nla = __nla_reserve_64bit(skb, attrtype, attrlen, padattr);
nla               797 lib/nlattr.c   	memcpy(nla_data(nla), data, attrlen);
nla              1546 net/bridge/br_netlink.c 	struct nlattr *nla __maybe_unused;
nla              1602 net/bridge/br_netlink.c 		nla = nla_reserve_64bit(skb, BRIDGE_XSTATS_MCAST,
nla              1605 net/bridge/br_netlink.c 		if (!nla)
nla              1607 net/bridge/br_netlink.c 		br_multicast_get_stats(br, p, nla_data(nla));
nla               133 net/core/drop_monitor.c 	struct nlattr *nla;
nla               154 net/core/drop_monitor.c 	nla = nla_reserve(skb, NLA_UNSPEC,
nla               156 net/core/drop_monitor.c 	if (!nla) {
nla               161 net/core/drop_monitor.c 	msg = nla_data(nla);
nla               217 net/core/drop_monitor.c 	struct nlattr *nla;
nla               232 net/core/drop_monitor.c 	nla = genlmsg_data(nlmsg_data(nlh));
nla               233 net/core/drop_monitor.c 	msg = nla_data(nla);
nla               248 net/core/drop_monitor.c 	nla->nla_len += NLA_ALIGN(sizeof(struct net_dm_drop_point));
nla               466 net/core/fib_rules.c static int fib_nl2rule_l3mdev(struct nlattr *nla, struct fib_rule *nlrule,
nla               469 net/core/fib_rules.c 	nlrule->l3mdev = nla_get_u8(nla);
nla               478 net/core/fib_rules.c static int fib_nl2rule_l3mdev(struct nlattr *nla, struct fib_rule *nlrule,
nla               136 net/core/filter.c 	struct nlattr *nla;
nla               147 net/core/filter.c 	nla = nla_find((struct nlattr *) &skb->data[a], skb->len - a, x);
nla               148 net/core/filter.c 	if (nla)
nla               149 net/core/filter.c 		return (void *) nla - (void *) skb->data;
nla               156 net/core/filter.c 	struct nlattr *nla;
nla               167 net/core/filter.c 	nla = (struct nlattr *) &skb->data[a];
nla               168 net/core/filter.c 	if (nla->nla_len > skb->len - a)
nla               171 net/core/filter.c 	nla = nla_find_nested(nla, x);
nla               172 net/core/filter.c 	if (nla)
nla               173 net/core/filter.c 		return (void *) nla - (void *) skb->data;
nla               370 net/core/lwt_bpf.c static int bpf_build_state(struct nlattr *nla,
nla               383 net/core/lwt_bpf.c 	ret = nla_parse_nested_deprecated(tb, LWT_BPF_MAX, nla, bpf_nl_policy,
nla               727 net/core/net_namespace.c 	struct nlattr *nla;
nla               743 net/core/net_namespace.c 		nla = tb[NETNSA_PID];
nla               746 net/core/net_namespace.c 		nla = tb[NETNSA_FD];
nla               752 net/core/net_namespace.c 		NL_SET_BAD_ATTR(extack, nla);
nla               761 net/core/net_namespace.c 		NL_SET_BAD_ATTR(extack, nla);
nla               877 net/core/net_namespace.c 	struct nlattr *nla;
nla               886 net/core/net_namespace.c 		nla = tb[NETNSA_PID];
nla               889 net/core/net_namespace.c 		nla = tb[NETNSA_FD];
nla               894 net/core/net_namespace.c 		nla = tb[NETNSA_NSID];
nla               901 net/core/net_namespace.c 		NL_SET_BAD_ATTR(extack, nla);
nla              1804 net/core/rtnetlink.c static const struct rtnl_link_ops *linkinfo_to_kind_ops(const struct nlattr *nla)
nla              1809 net/core/rtnetlink.c 	if (nla_parse_nested_deprecated(linfo, IFLA_INFO_MAX, nla, ifla_info_policy, NULL) < 0)
nla                36 net/ieee802154/nl-mac.c static __le64 nla_get_hwaddr(const struct nlattr *nla)
nla                38 net/ieee802154/nl-mac.c 	return ieee802154_devaddr_from_raw(nla_data(nla));
nla                46 net/ieee802154/nl-mac.c static __le16 nla_get_shortaddr(const struct nlattr *nla)
nla                48 net/ieee802154/nl-mac.c 	return cpu_to_le16(nla_get_u16(nla));
nla              1304 net/ieee802154/nl802154.c ieee802154_llsec_parse_dev_addr(struct nlattr *nla,
nla              1309 net/ieee802154/nl802154.c 	if (!nla || nla_parse_nested_deprecated(attrs, NL802154_DEV_ADDR_ATTR_MAX, nla, nl802154_dev_addr_policy, NULL))
nla              1343 net/ieee802154/nl802154.c ieee802154_llsec_parse_key_id(struct nlattr *nla,
nla              1348 net/ieee802154/nl802154.c 	if (!nla || nla_parse_nested_deprecated(attrs, NL802154_KEY_ID_ATTR_MAX, nla, nl802154_key_id_policy, NULL))
nla              1720 net/ieee802154/nl802154.c ieee802154_llsec_parse_device(struct nlattr *nla,
nla              1725 net/ieee802154/nl802154.c 	if (!nla || nla_parse_nested_deprecated(attrs, NL802154_DEV_ATTR_MAX, nla, nl802154_dev_policy, NULL))
nla              2048 net/ieee802154/nl802154.c llsec_parse_seclevel(struct nlattr *nla, struct ieee802154_llsec_seclevel *sl)
nla              2052 net/ieee802154/nl802154.c 	if (!nla || nla_parse_nested_deprecated(attrs, NL802154_SECLEVEL_ATTR_MAX, nla, nl802154_seclevel_policy, NULL))
nla              1933 net/ipv4/devinet.c 	struct nlattr *nla;
nla              1939 net/ipv4/devinet.c 	nla = nla_reserve(skb, IFLA_INET_CONF, IPV4_DEVCONF_MAX * 4);
nla              1940 net/ipv4/devinet.c 	if (!nla)
nla              1944 net/ipv4/devinet.c 		((u32 *) nla_data(nla))[i] = in_dev->cnf.data[i];
nla              1954 net/ipv4/devinet.c 				 const struct nlattr *nla)
nla              1962 net/ipv4/devinet.c 	err = nla_parse_nested_deprecated(tb, IFLA_INET_MAX, nla,
nla              1982 net/ipv4/devinet.c static int inet_set_link_af(struct net_device *dev, const struct nlattr *nla)
nla              1991 net/ipv4/devinet.c 	if (nla_parse_nested_deprecated(tb, IFLA_INET_MAX, nla, NULL, NULL) < 0)
nla               465 net/ipv4/fib_frontend.c 	struct nlattr *nla;
nla               467 net/ipv4/fib_frontend.c 	nla = (struct nlattr *) ((char *) mx + len);
nla               468 net/ipv4/fib_frontend.c 	nla->nla_type = type;
nla               469 net/ipv4/fib_frontend.c 	nla->nla_len = nla_attr_size(4);
nla               470 net/ipv4/fib_frontend.c 	*(u32 *) nla_data(nla) = value;
nla               684 net/ipv4/fib_frontend.c int fib_gw_from_via(struct fib_config *cfg, struct nlattr *nla,
nla               690 net/ipv4/fib_frontend.c 	if (nla_len(nla) < offsetof(struct rtvia, rtvia_addr)) {
nla               695 net/ipv4/fib_frontend.c 	via = nla_data(nla);
nla               696 net/ipv4/fib_frontend.c 	alen = nla_len(nla) - offsetof(struct rtvia, rtvia_addr);
nla               689 net/ipv4/fib_semantics.c 			struct nlattr *nla, *nlav, *attrs = rtnh_attrs(rtnh);
nla               691 net/ipv4/fib_semantics.c 			nla = nla_find(attrs, attrlen, RTA_GATEWAY);
nla               693 net/ipv4/fib_semantics.c 			if (nla && nlav) {
nla               698 net/ipv4/fib_semantics.c 			if (nla) {
nla               699 net/ipv4/fib_semantics.c 				fib_cfg.fc_gw4 = nla_get_in_addr(nla);
nla               708 net/ipv4/fib_semantics.c 			nla = nla_find(attrs, attrlen, RTA_FLOW);
nla               709 net/ipv4/fib_semantics.c 			if (nla)
nla               710 net/ipv4/fib_semantics.c 				fib_cfg.fc_flow = nla_get_u32(nla);
nla               713 net/ipv4/fib_semantics.c 			nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE);
nla               714 net/ipv4/fib_semantics.c 			if (nla)
nla               715 net/ipv4/fib_semantics.c 				fib_cfg.fc_encap_type = nla_get_u16(nla);
nla               896 net/ipv4/fib_semantics.c 			struct nlattr *nla, *nlav, *attrs = rtnh_attrs(rtnh);
nla               898 net/ipv4/fib_semantics.c 			nla = nla_find(attrs, attrlen, RTA_GATEWAY);
nla               900 net/ipv4/fib_semantics.c 			if (nla && nlav) {
nla               906 net/ipv4/fib_semantics.c 			if (nla) {
nla               908 net/ipv4/fib_semantics.c 				    nla_get_in_addr(nla) != nh->fib_nh_gw4)
nla               934 net/ipv4/fib_semantics.c 			nla = nla_find(attrs, attrlen, RTA_FLOW);
nla               935 net/ipv4/fib_semantics.c 			if (nla && nla_get_u32(nla) != nh->nh_tclassid)
nla               948 net/ipv4/fib_semantics.c 	struct nlattr *nla;
nla               954 net/ipv4/fib_semantics.c 	nla_for_each_attr(nla, cfg->fc_mx, cfg->fc_mx_len, remaining) {
nla               955 net/ipv4/fib_semantics.c 		int type = nla_type(nla);
nla               967 net/ipv4/fib_semantics.c 			nla_strlcpy(tmp, nla, sizeof(tmp));
nla               970 net/ipv4/fib_semantics.c 			if (nla_len(nla) != sizeof(u32))
nla               972 net/ipv4/fib_semantics.c 			val = nla_get_u32(nla);
nla              1618 net/ipv4/fib_semantics.c 			struct nlattr *nla;
nla              1621 net/ipv4/fib_semantics.c 			nla = nla_reserve(skb, RTA_VIA, alen + 2);
nla              1622 net/ipv4/fib_semantics.c 			if (!nla)
nla              1625 net/ipv4/fib_semantics.c 			via = nla_data(nla);
nla              2442 net/ipv4/ipmr.c 	struct nlattr *nla;
nla              2466 net/ipv4/ipmr.c 	nla = nla_reserve(skb, IPMRA_CREPORT_PKT, payloadlen);
nla              2467 net/ipv4/ipmr.c 	if (!nla || skb_copy_bits(pkt, sizeof(struct igmpmsg),
nla              2468 net/ipv4/ipmr.c 				  nla_data(nla), payloadlen))
nla              2645 net/ipv4/ipmr.c static int ipmr_nla_get_ttls(const struct nlattr *nla, struct mfcctl *mfcc)
nla              2647 net/ipv4/ipmr.c 	struct rtnexthop *rtnh = nla_data(nla);
nla              2648 net/ipv4/ipmr.c 	int remaining = nla_len(nla), vifi = 0;
nla                14 net/ipv4/metrics.c 	struct nlattr *nla;
nla                20 net/ipv4/metrics.c 	nla_for_each_attr(nla, fc_mx, fc_mx_len, remaining) {
nla                21 net/ipv4/metrics.c 		int type = nla_type(nla);
nla                34 net/ipv4/metrics.c 			nla_strlcpy(tmp, nla, sizeof(tmp));
nla                41 net/ipv4/metrics.c 			if (nla_len(nla) != sizeof(u32)) {
nla                42 net/ipv4/metrics.c 				NL_SET_ERR_MSG_ATTR(extack, nla,
nla                46 net/ipv4/metrics.c 			val = nla_get_u32(nla);
nla               188 net/ipv4/nexthop.c 	struct nlattr *nla;
nla               198 net/ipv4/nexthop.c 	nla = nla_reserve(skb, NHA_GROUP, len);
nla               199 net/ipv4/nexthop.c 	if (!nla)
nla               202 net/ipv4/nexthop.c 	p = nla_data(nla);
nla              2794 net/ipv4/route.c 			struct nlattr *nla;
nla              2797 net/ipv4/route.c 			nla = nla_reserve(skb, RTA_VIA, alen + 2);
nla              2798 net/ipv4/route.c 			if (!nla)
nla              2801 net/ipv4/route.c 			via = nla_data(nla);
nla              5554 net/ipv6/addrconf.c 	struct nlattr *nla;
nla              5565 net/ipv6/addrconf.c 	nla = nla_reserve(skb, IFLA_INET6_CONF, DEVCONF_MAX * sizeof(s32));
nla              5566 net/ipv6/addrconf.c 	if (!nla)
nla              5568 net/ipv6/addrconf.c 	ipv6_store_devconf(&idev->cnf, nla_data(nla), nla_len(nla));
nla              5575 net/ipv6/addrconf.c 	nla = nla_reserve(skb, IFLA_INET6_STATS, IPSTATS_MIB_MAX * sizeof(u64));
nla              5576 net/ipv6/addrconf.c 	if (!nla)
nla              5578 net/ipv6/addrconf.c 	snmp6_fill_stats(nla_data(nla), idev, IFLA_INET6_STATS, nla_len(nla));
nla              5580 net/ipv6/addrconf.c 	nla = nla_reserve(skb, IFLA_INET6_ICMP6STATS, ICMP6_MIB_MAX * sizeof(u64));
nla              5581 net/ipv6/addrconf.c 	if (!nla)
nla              5583 net/ipv6/addrconf.c 	snmp6_fill_stats(nla_data(nla), idev, IFLA_INET6_ICMP6STATS, nla_len(nla));
nla              5585 net/ipv6/addrconf.c 	nla = nla_reserve(skb, IFLA_INET6_TOKEN, sizeof(struct in6_addr));
nla              5586 net/ipv6/addrconf.c 	if (!nla)
nla              5593 net/ipv6/addrconf.c 	memcpy(nla_data(nla), idev->token.s6_addr, nla_len(nla));
nla              5717 net/ipv6/addrconf.c 				  const struct nlattr *nla)
nla              5729 net/ipv6/addrconf.c 	err = nla_parse_nested_deprecated(tb, IFLA_INET6_MAX, nla,
nla              5749 net/ipv6/addrconf.c static int inet6_set_link_af(struct net_device *dev, const struct nlattr *nla)
nla              5758 net/ipv6/addrconf.c 	if (nla_parse_nested_deprecated(tb, IFLA_INET6_MAX, nla, NULL, NULL) < 0)
nla               128 net/ipv6/ila/ila_lwt.c static int ila_build_state(struct nlattr *nla,
nla               149 net/ipv6/ila/ila_lwt.c 	ret = nla_parse_nested_deprecated(tb, ILA_ATTR_MAX, nla,
nla              2442 net/ipv6/ip6mr.c 	struct nlattr *nla;
nla              2466 net/ipv6/ip6mr.c 	nla = nla_reserve(skb, IP6MRA_CREPORT_PKT, payloadlen);
nla              2467 net/ipv6/ip6mr.c 	if (!nla || skb_copy_bits(pkt, sizeof(struct mrt6msg),
nla              2468 net/ipv6/ip6mr.c 				  nla_data(nla), payloadlen))
nla              5095 net/ipv6/route.c 			struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
nla              5097 net/ipv6/route.c 			nla = nla_find(attrs, attrlen, RTA_GATEWAY);
nla              5098 net/ipv6/route.c 			if (nla) {
nla              5099 net/ipv6/route.c 				r_cfg.fc_gateway = nla_get_in6_addr(nla);
nla              5103 net/ipv6/route.c 			nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE);
nla              5104 net/ipv6/route.c 			if (nla)
nla              5105 net/ipv6/route.c 				r_cfg.fc_encap_type = nla_get_u16(nla);
nla              5248 net/ipv6/route.c 			struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
nla              5250 net/ipv6/route.c 			nla = nla_find(attrs, attrlen, RTA_GATEWAY);
nla              5251 net/ipv6/route.c 			if (nla) {
nla              5252 net/ipv6/route.c 				nla_memcpy(&r_cfg.fc_gateway, nla, 16);
nla                54 net/ipv6/seg6_iptunnel.c 	struct nlattr *nla;
nla                59 net/ipv6/seg6_iptunnel.c 	nla = nla_reserve(skb, attrtype, len);
nla                60 net/ipv6/seg6_iptunnel.c 	if (!nla)
nla                63 net/ipv6/seg6_iptunnel.c 	data = nla_data(nla);
nla               379 net/ipv6/seg6_iptunnel.c static int seg6_build_state(struct nlattr *nla,
nla               394 net/ipv6/seg6_iptunnel.c 	err = nla_parse_nested_deprecated(tb, SEG6_IPTUNNEL_MAX, nla,
nla               674 net/ipv6/seg6_local.c 	struct nlattr *nla;
nla               680 net/ipv6/seg6_local.c 	nla = nla_reserve(skb, SEG6_LOCAL_SRH, len);
nla               681 net/ipv6/seg6_local.c 	if (!nla)
nla               684 net/ipv6/seg6_local.c 	memcpy(nla_data(nla), srh, len);
nla               732 net/ipv6/seg6_local.c 	struct nlattr *nla;
nla               734 net/ipv6/seg6_local.c 	nla = nla_reserve(skb, SEG6_LOCAL_NH4, sizeof(struct in_addr));
nla               735 net/ipv6/seg6_local.c 	if (!nla)
nla               738 net/ipv6/seg6_local.c 	memcpy(nla_data(nla), &slwt->nh4, sizeof(struct in_addr));
nla               758 net/ipv6/seg6_local.c 	struct nlattr *nla;
nla               760 net/ipv6/seg6_local.c 	nla = nla_reserve(skb, SEG6_LOCAL_NH6, sizeof(struct in6_addr));
nla               761 net/ipv6/seg6_local.c 	if (!nla)
nla               764 net/ipv6/seg6_local.c 	memcpy(nla_data(nla), &slwt->nh6, sizeof(struct in6_addr));
nla               959 net/ipv6/seg6_local.c static int seg6_local_build_state(struct nlattr *nla, unsigned int family,
nla               971 net/ipv6/seg6_local.c 	err = nla_parse_nested_deprecated(tb, SEG6_LOCAL_MAX, nla,
nla               717 net/mpls/af_mpls.c static int nla_get_via(const struct nlattr *nla, u8 *via_alen, u8 *via_table,
nla               720 net/mpls/af_mpls.c 	struct rtvia *via = nla_data(nla);
nla               724 net/mpls/af_mpls.c 	if (nla_len(nla) < offsetof(struct rtvia, rtvia_addr)) {
nla               725 net/mpls/af_mpls.c 		NL_SET_ERR_MSG_ATTR(extack, nla,
nla               729 net/mpls/af_mpls.c 	alen = nla_len(nla) -
nla               732 net/mpls/af_mpls.c 		NL_SET_ERR_MSG_ATTR(extack, nla,
nla               844 net/mpls/af_mpls.c 		struct nlattr *nla, *attrs = rtnh_attrs(rtnh);
nla               849 net/mpls/af_mpls.c 		nla = nla_find(attrs, attrlen, RTA_VIA);
nla               850 net/mpls/af_mpls.c 		if (nla && nla_len(nla) >=
nla               852 net/mpls/af_mpls.c 			int via_alen = nla_len(nla) -
nla               860 net/mpls/af_mpls.c 		nla = nla_find(attrs, attrlen, RTA_NEWDST);
nla               861 net/mpls/af_mpls.c 		if (nla &&
nla               862 net/mpls/af_mpls.c 		    nla_get_labels(nla, MAX_NEW_LABELS, &n_labels,
nla              1102 net/mpls/af_mpls.c 	struct nlattr *nla;
nla              1108 net/mpls/af_mpls.c 	nla = nla_reserve_64bit(skb, MPLS_STATS_LINK,
nla              1111 net/mpls/af_mpls.c 	if (!nla)
nla              1114 net/mpls/af_mpls.c 	stats = nla_data(nla);
nla              1661 net/mpls/af_mpls.c 	struct nlattr *nla;
nla              1665 net/mpls/af_mpls.c 	nla = nla_reserve(skb, RTA_VIA, alen + 2);
nla              1666 net/mpls/af_mpls.c 	if (!nla)
nla              1672 net/mpls/af_mpls.c 	via = nla_data(nla);
nla              1681 net/mpls/af_mpls.c 	struct nlattr *nla;
nla              1685 net/mpls/af_mpls.c 	nla = nla_reserve(skb, attrtype, labels*4);
nla              1686 net/mpls/af_mpls.c 	if (!nla)
nla              1689 net/mpls/af_mpls.c 	nla_label = nla_data(nla);
nla              1700 net/mpls/af_mpls.c int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels,
nla              1703 net/mpls/af_mpls.c 	unsigned len = nla_len(nla);
nla              1713 net/mpls/af_mpls.c 		NL_SET_ERR_MSG_ATTR(extack, nla,
nla              1729 net/mpls/af_mpls.c 	nla_label = nla_data(nla);
nla              1739 net/mpls/af_mpls.c 			NL_SET_ERR_MSG_ATTR(extack, nla,
nla              1745 net/mpls/af_mpls.c 			NL_SET_ERR_MSG_ATTR(extack, nla,
nla              1751 net/mpls/af_mpls.c 			NL_SET_BAD_ATTR(extack, nla);
nla              1768 net/mpls/af_mpls.c 			NL_SET_ERR_MSG_ATTR(extack, nla,
nla              1851 net/mpls/af_mpls.c 		struct nlattr *nla = tb[index];
nla              1852 net/mpls/af_mpls.c 		if (!nla)
nla              1857 net/mpls/af_mpls.c 			cfg->rc_ifindex = nla_get_u32(nla);
nla              1860 net/mpls/af_mpls.c 			if (nla_get_labels(nla, MAX_NEW_LABELS,
nla              1868 net/mpls/af_mpls.c 			if (nla_get_labels(nla, 1, &label_count,
nla              1882 net/mpls/af_mpls.c 			if (nla_get_via(nla, &cfg->rc_via_alen,
nla              1890 net/mpls/af_mpls.c 			cfg->rc_mp = nla_data(nla);
nla              1891 net/mpls/af_mpls.c 			cfg->rc_mp_len = nla_len(nla);
nla              1896 net/mpls/af_mpls.c 			u8 ttl_propagate = nla_get_u8(nla);
nla              1899 net/mpls/af_mpls.c 				NL_SET_ERR_MSG_ATTR(extack, nla,
nla              1909 net/mpls/af_mpls.c 			NL_SET_ERR_MSG_ATTR(extack, nla, "Unknown attribute");
nla               206 net/mpls/internal.h int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels,
nla               165 net/mpls/mpls_iptunnel.c static int mpls_build_state(struct nlattr *nla,
nla               176 net/mpls/mpls_iptunnel.c 	ret = nla_parse_nested_deprecated(tb, MPLS_IPTUNNEL_MAX, nla,
nla               281 net/netfilter/ipset/ip_set_core.c flag_nested(const struct nlattr *nla)
nla               283 net/netfilter/ipset/ip_set_core.c 	return nla->nla_type & NLA_F_NESTED;
nla               293 net/netfilter/ipset/ip_set_core.c ip_set_get_ipaddr4(struct nlattr *nla,  __be32 *ipaddr)
nla               297 net/netfilter/ipset/ip_set_core.c 	if (unlikely(!flag_nested(nla)))
nla               299 net/netfilter/ipset/ip_set_core.c 	if (nla_parse_nested(tb, IPSET_ATTR_IPADDR_MAX, nla,
nla               311 net/netfilter/ipset/ip_set_core.c ip_set_get_ipaddr6(struct nlattr *nla, union nf_inet_addr *ipaddr)
nla               315 net/netfilter/ipset/ip_set_core.c 	if (unlikely(!flag_nested(nla)))
nla               318 net/netfilter/ipset/ip_set_core.c 	if (nla_parse_nested(tb, IPSET_ATTR_IPADDR_MAX, nla,
nla              1603 net/netfilter/ipset/ip_set_core.c 	const struct nlattr *nla;
nla              1634 net/netfilter/ipset/ip_set_core.c 		nla_for_each_nested(nla, attr[IPSET_ATTR_ADT], nla_rem) {
nla              1635 net/netfilter/ipset/ip_set_core.c 			if (nla_type(nla) != IPSET_ATTR_DATA ||
nla              1636 net/netfilter/ipset/ip_set_core.c 			    !flag_nested(nla) ||
nla              1637 net/netfilter/ipset/ip_set_core.c 			    nla_parse_nested(tb, IPSET_ATTR_ADT_MAX, nla,
nla              3155 net/netfilter/ipvs/ip_vs_ctl.c 				    struct nlattr *nla, bool full_entry,
nla              3163 net/netfilter/ipvs/ip_vs_ctl.c 	if (nla == NULL ||
nla              3164 net/netfilter/ipvs/ip_vs_ctl.c 	    nla_parse_nested_deprecated(attrs, IPVS_SVC_ATTR_MAX, nla, ip_vs_svc_policy, NULL))
nla              3235 net/netfilter/ipvs/ip_vs_ctl.c 						     struct nlattr *nla)
nla              3241 net/netfilter/ipvs/ip_vs_ctl.c 	ret = ip_vs_genl_parse_service(ipvs, &usvc, nla, false, &svc);
nla              3356 net/netfilter/ipvs/ip_vs_ctl.c 				 struct nlattr *nla, bool full_entry)
nla              3363 net/netfilter/ipvs/ip_vs_ctl.c 	if (nla == NULL ||
nla              3364 net/netfilter/ipvs/ip_vs_ctl.c 	    nla_parse_nested_deprecated(attrs, IPVS_DEST_ATTR_MAX, nla, ip_vs_dest_policy, NULL))
nla               591 net/netfilter/nf_conntrack_proto_dccp.c static int dccp_to_nlattr(struct sk_buff *skb, struct nlattr *nla,
nla               514 net/netfilter/nf_conntrack_proto_sctp.c static int sctp_to_nlattr(struct sk_buff *skb, struct nlattr *nla,
nla              1187 net/netfilter/nf_conntrack_proto_tcp.c static int tcp_to_nlattr(struct sk_buff *skb, struct nlattr *nla,
nla                93 net/netfilter/nf_tables_api.c 			 const struct nlattr * const *nla)
nla               100 net/netfilter/nf_tables_api.c 	ctx->nla   	= nla;
nla               301 net/netfilter/nf_tables_api.c 	if (msg_type == NFT_MSG_NEWRULE && ctx->nla[NFTA_RULE_ID] != NULL) {
nla               303 net/netfilter/nf_tables_api.c 			ntohl(nla_get_be32(ctx->nla[NFTA_RULE_ID]));
nla               355 net/netfilter/nf_tables_api.c 	if (msg_type == NFT_MSG_NEWSET && ctx->nla[NFTA_SET_ID] != NULL) {
nla               357 net/netfilter/nf_tables_api.c 			ntohl(nla_get_be32(ctx->nla[NFTA_SET_ID]));
nla               451 net/netfilter/nf_tables_api.c 					  const struct nlattr *nla,
nla               456 net/netfilter/nf_tables_api.c 	if (nla == NULL)
nla               460 net/netfilter/nf_tables_api.c 		if (!nla_strcmp(nla, table->name) &&
nla               470 net/netfilter/nf_tables_api.c 						   const struct nlattr *nla,
nla               476 net/netfilter/nf_tables_api.c 		if (be64_to_cpu(nla_get_be64(nla)) == table->handle &&
nla               502 net/netfilter/nf_tables_api.c __nf_tables_chain_type_lookup(const struct nlattr *nla, u8 family)
nla               511 net/netfilter/nf_tables_api.c 		if (!nla_strcmp(nla, type->name))
nla               567 net/netfilter/nf_tables_api.c nf_tables_chain_type_lookup(struct net *net, const struct nlattr *nla,
nla               572 net/netfilter/nf_tables_api.c 	type = __nf_tables_chain_type_lookup(nla, family);
nla               580 net/netfilter/nf_tables_api.c 				       nla_len(nla),
nla               581 net/netfilter/nf_tables_api.c 				       (const char *)nla_data(nla)) == -EAGAIN)
nla               714 net/netfilter/nf_tables_api.c 			      const struct nlattr * const nla[],
nla               733 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_TABLE_NAME], family, genmask);
nla               735 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_TABLE_NAME]);
nla               809 net/netfilter/nf_tables_api.c 	if (!ctx->nla[NFTA_TABLE_FLAGS])
nla               812 net/netfilter/nf_tables_api.c 	flags = ntohl(nla_get_be32(ctx->nla[NFTA_TABLE_FLAGS]));
nla               899 net/netfilter/nf_tables_api.c 			      const struct nlattr * const nla[],
nla               912 net/netfilter/nf_tables_api.c 	attr = nla[NFTA_TABLE_NAME];
nla               925 net/netfilter/nf_tables_api.c 		nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nla               929 net/netfilter/nf_tables_api.c 	if (nla[NFTA_TABLE_FLAGS]) {
nla               930 net/netfilter/nf_tables_api.c 		flags = ntohl(nla_get_be32(nla[NFTA_TABLE_FLAGS]));
nla               956 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nla              1042 net/netfilter/nf_tables_api.c 	const struct nlattr * const *nla = ctx->nla;
nla              1054 net/netfilter/nf_tables_api.c 		if (nla[NFTA_TABLE_NAME] &&
nla              1055 net/netfilter/nf_tables_api.c 		    nla_strcmp(nla[NFTA_TABLE_NAME], table->name) != 0)
nla              1070 net/netfilter/nf_tables_api.c 			      const struct nlattr * const nla[],
nla              1080 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, 0, NULL, NULL, nla);
nla              1082 net/netfilter/nf_tables_api.c 	    (!nla[NFTA_TABLE_NAME] && !nla[NFTA_TABLE_HANDLE]))
nla              1085 net/netfilter/nf_tables_api.c 	if (nla[NFTA_TABLE_HANDLE]) {
nla              1086 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_TABLE_HANDLE];
nla              1089 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_TABLE_NAME];
nla              1167 net/netfilter/nf_tables_api.c 					  const struct nlattr *nla, u8 genmask)
nla              1173 net/netfilter/nf_tables_api.c 	if (nla == NULL)
nla              1176 net/netfilter/nf_tables_api.c 	nla_strlcpy(search, nla, sizeof(search));
nla              1406 net/netfilter/nf_tables_api.c 			      const struct nlattr * const nla[],
nla              1426 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_CHAIN_TABLE], family, genmask);
nla              1428 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_CHAIN_TABLE]);
nla              1432 net/netfilter/nf_tables_api.c 	chain = nft_chain_lookup(net, table, nla[NFTA_CHAIN_NAME], genmask);
nla              1434 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_CHAIN_NAME]);
nla              1553 net/netfilter/nf_tables_api.c 				const struct nlattr * const nla[],
nla              1566 net/netfilter/nf_tables_api.c 					  nla[NFTA_CHAIN_HOOK],
nla              1582 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_TYPE]) {
nla              1583 net/netfilter/nf_tables_api.c 		type = nf_tables_chain_type_lookup(net, nla[NFTA_CHAIN_TYPE],
nla              1653 net/netfilter/nf_tables_api.c 	const struct nlattr * const *nla = ctx->nla;
nla              1666 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_HOOK]) {
nla              1670 net/netfilter/nf_tables_api.c 		err = nft_chain_parse_hook(net, nla, &hook, family, true);
nla              1683 net/netfilter/nf_tables_api.c 		if (nla[NFTA_CHAIN_COUNTERS]) {
nla              1684 net/netfilter/nf_tables_api.c 			stats = nft_stats_alloc(nla[NFTA_CHAIN_COUNTERS]);
nla              1722 net/netfilter/nf_tables_api.c 	chain->name = nla_strdup(nla[NFTA_CHAIN_NAME], GFP_KERNEL);
nla              1774 net/netfilter/nf_tables_api.c 	const struct nlattr * const *nla = ctx->nla;
nla              1787 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_HOOK]) {
nla              1791 net/netfilter/nf_tables_api.c 		err = nft_chain_parse_hook(ctx->net, nla, &hook, ctx->family,
nla              1812 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_HANDLE] &&
nla              1813 net/netfilter/nf_tables_api.c 	    nla[NFTA_CHAIN_NAME]) {
nla              1817 net/netfilter/nf_tables_api.c 					  nla[NFTA_CHAIN_NAME], genmask);
nla              1822 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_COUNTERS]) {
nla              1826 net/netfilter/nf_tables_api.c 		stats = nft_stats_alloc(nla[NFTA_CHAIN_COUNTERS]);
nla              1840 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_POLICY])
nla              1845 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_HANDLE] &&
nla              1846 net/netfilter/nf_tables_api.c 	    nla[NFTA_CHAIN_NAME]) {
nla              1851 net/netfilter/nf_tables_api.c 		name = nla_strdup(nla[NFTA_CHAIN_NAME], GFP_KERNEL);
nla              1880 net/netfilter/nf_tables_api.c 			      const struct nlattr * const nla[],
nla              1896 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_CHAIN_TABLE], family, genmask);
nla              1898 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_CHAIN_TABLE]);
nla              1903 net/netfilter/nf_tables_api.c 	attr = nla[NFTA_CHAIN_NAME];
nla              1905 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_HANDLE]) {
nla              1906 net/netfilter/nf_tables_api.c 		handle = be64_to_cpu(nla_get_be64(nla[NFTA_CHAIN_HANDLE]));
nla              1909 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_CHAIN_HANDLE]);
nla              1912 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_CHAIN_HANDLE];
nla              1924 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_POLICY]) {
nla              1927 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_CHAIN_POLICY]);
nla              1932 net/netfilter/nf_tables_api.c 		    nla[NFTA_CHAIN_HOOK] == NULL) {
nla              1933 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_CHAIN_POLICY]);
nla              1937 net/netfilter/nf_tables_api.c 		policy = ntohl(nla_get_be32(nla[NFTA_CHAIN_POLICY]));
nla              1947 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_FLAGS])
nla              1948 net/netfilter/nf_tables_api.c 		flags = ntohl(nla_get_be32(nla[NFTA_CHAIN_FLAGS]));
nla              1952 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
nla              1971 net/netfilter/nf_tables_api.c 			      const struct nlattr * const nla[],
nla              1986 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_CHAIN_TABLE], family, genmask);
nla              1988 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_CHAIN_TABLE]);
nla              1992 net/netfilter/nf_tables_api.c 	if (nla[NFTA_CHAIN_HANDLE]) {
nla              1993 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_CHAIN_HANDLE];
nla              1997 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_CHAIN_NAME];
nla              2009 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
nla              2071 net/netfilter/nf_tables_api.c 						       struct nlattr *nla)
nla              2076 net/netfilter/nf_tables_api.c 		if (!nla_strcmp(nla, type->name)) {
nla              2088 net/netfilter/nf_tables_api.c 					struct nlattr *nla)
nla              2091 net/netfilter/nf_tables_api.c 			       nla_len(nla), (char *)nla_data(nla)) == -EAGAIN)
nla              2100 net/netfilter/nf_tables_api.c 						     struct nlattr *nla)
nla              2104 net/netfilter/nf_tables_api.c 	if (nla == NULL)
nla              2107 net/netfilter/nf_tables_api.c 	type = __nft_expr_type_get(family, nla);
nla              2114 net/netfilter/nf_tables_api.c 		if (nft_expr_type_request_module(net, family, nla) == -EAGAIN)
nla              2118 net/netfilter/nf_tables_api.c 				       nla_len(nla),
nla              2119 net/netfilter/nf_tables_api.c 				       (char *)nla_data(nla)) == -EAGAIN)
nla              2177 net/netfilter/nf_tables_api.c 				const struct nlattr *nla,
nla              2185 net/netfilter/nf_tables_api.c 	err = nla_parse_nested_deprecated(tb, NFTA_EXPR_MAX, nla,
nla              2259 net/netfilter/nf_tables_api.c 			       const struct nlattr *nla)
nla              2266 net/netfilter/nf_tables_api.c 	err = nf_tables_expr_parse(ctx, nla, &info);
nla              2317 net/netfilter/nf_tables_api.c 					const struct nlattr *nla)
nla              2319 net/netfilter/nf_tables_api.c 	if (nla == NULL)
nla              2322 net/netfilter/nf_tables_api.c 	return __nft_rule_lookup(chain, be64_to_cpu(nla_get_be64(nla)));
nla              2529 net/netfilter/nf_tables_api.c 	const struct nlattr * const *nla = cb->data;
nla              2532 net/netfilter/nf_tables_api.c 	if (nla[NFTA_RULE_TABLE] || nla[NFTA_RULE_CHAIN]) {
nla              2537 net/netfilter/nf_tables_api.c 		if (nla[NFTA_RULE_TABLE]) {
nla              2538 net/netfilter/nf_tables_api.c 			ctx->table = nla_strdup(nla[NFTA_RULE_TABLE],
nla              2545 net/netfilter/nf_tables_api.c 		if (nla[NFTA_RULE_CHAIN]) {
nla              2546 net/netfilter/nf_tables_api.c 			ctx->chain = nla_strdup(nla[NFTA_RULE_CHAIN],
nla              2575 net/netfilter/nf_tables_api.c 			     const struct nlattr * const nla[],
nla              2593 net/netfilter/nf_tables_api.c 			.data = (void *)nla,
nla              2599 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_RULE_TABLE], family, genmask);
nla              2601 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_TABLE]);
nla              2605 net/netfilter/nf_tables_api.c 	chain = nft_chain_lookup(net, table, nla[NFTA_RULE_CHAIN], genmask);
nla              2607 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_CHAIN]);
nla              2611 net/netfilter/nf_tables_api.c 	rule = nft_rule_lookup(chain, nla[NFTA_RULE_HANDLE]);
nla              2613 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_HANDLE]);
nla              2710 net/netfilter/nf_tables_api.c 					     const struct nlattr *nla);
nla              2716 net/netfilter/nf_tables_api.c 			     const struct nlattr * const nla[],
nla              2738 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_RULE_TABLE], family, genmask);
nla              2740 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_TABLE]);
nla              2744 net/netfilter/nf_tables_api.c 	chain = nft_chain_lookup(net, table, nla[NFTA_RULE_CHAIN], genmask);
nla              2746 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_CHAIN]);
nla              2750 net/netfilter/nf_tables_api.c 	if (nla[NFTA_RULE_HANDLE]) {
nla              2751 net/netfilter/nf_tables_api.c 		handle = be64_to_cpu(nla_get_be64(nla[NFTA_RULE_HANDLE]));
nla              2754 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_HANDLE]);
nla              2759 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_HANDLE]);
nla              2775 net/netfilter/nf_tables_api.c 		if (nla[NFTA_RULE_POSITION]) {
nla              2776 net/netfilter/nf_tables_api.c 			pos_handle = be64_to_cpu(nla_get_be64(nla[NFTA_RULE_POSITION]));
nla              2779 net/netfilter/nf_tables_api.c 				NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_POSITION]);
nla              2782 net/netfilter/nf_tables_api.c 		} else if (nla[NFTA_RULE_POSITION_ID]) {
nla              2783 net/netfilter/nf_tables_api.c 			old_rule = nft_rule_lookup_byid(net, nla[NFTA_RULE_POSITION_ID]);
nla              2785 net/netfilter/nf_tables_api.c 				NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_POSITION_ID]);
nla              2791 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
nla              2795 net/netfilter/nf_tables_api.c 	if (nla[NFTA_RULE_EXPRESSIONS]) {
nla              2802 net/netfilter/nf_tables_api.c 		nla_for_each_nested(tmp, nla[NFTA_RULE_EXPRESSIONS], rem) {
nla              2820 net/netfilter/nf_tables_api.c 	if (nla[NFTA_RULE_USERDATA]) {
nla              2821 net/netfilter/nf_tables_api.c 		ulen = nla_len(nla[NFTA_RULE_USERDATA]);
nla              2840 net/netfilter/nf_tables_api.c 		nla_memcpy(udata->data, nla[NFTA_RULE_USERDATA], ulen);
nla              2918 net/netfilter/nf_tables_api.c 					     const struct nlattr *nla)
nla              2920 net/netfilter/nf_tables_api.c 	u32 id = ntohl(nla_get_be32(nla));
nla              2935 net/netfilter/nf_tables_api.c 			     const struct nlattr * const nla[],
nla              2946 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_RULE_TABLE], family, genmask);
nla              2948 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_TABLE]);
nla              2952 net/netfilter/nf_tables_api.c 	if (nla[NFTA_RULE_CHAIN]) {
nla              2953 net/netfilter/nf_tables_api.c 		chain = nft_chain_lookup(net, table, nla[NFTA_RULE_CHAIN],
nla              2956 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_CHAIN]);
nla              2961 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
nla              2964 net/netfilter/nf_tables_api.c 		if (nla[NFTA_RULE_HANDLE]) {
nla              2965 net/netfilter/nf_tables_api.c 			rule = nft_rule_lookup(chain, nla[NFTA_RULE_HANDLE]);
nla              2967 net/netfilter/nf_tables_api.c 				NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_HANDLE]);
nla              2972 net/netfilter/nf_tables_api.c 		} else if (nla[NFTA_RULE_ID]) {
nla              2973 net/netfilter/nf_tables_api.c 			rule = nft_rule_lookup_byid(net, nla[NFTA_RULE_ID]);
nla              2975 net/netfilter/nf_tables_api.c 				NL_SET_BAD_ATTR(extack, nla[NFTA_RULE_ID]);
nla              3037 net/netfilter/nf_tables_api.c 		   const struct nlattr * const nla[],
nla              3054 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_FLAGS] != NULL)
nla              3055 net/netfilter/nf_tables_api.c 		flags = ntohl(nla_get_be32(nla[NFTA_SET_FLAGS]));
nla              3136 net/netfilter/nf_tables_api.c 				     const struct nlattr * const nla[],
nla              3144 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_TABLE] != NULL) {
nla              3145 net/netfilter/nf_tables_api.c 		table = nft_table_lookup(net, nla[NFTA_SET_TABLE], family,
nla              3148 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_SET_TABLE]);
nla              3153 net/netfilter/nf_tables_api.c 	nft_ctx_init(ctx, net, skb, nlh, family, table, NULL, nla);
nla              3158 net/netfilter/nf_tables_api.c 				      const struct nlattr *nla, u8 genmask)
nla              3162 net/netfilter/nf_tables_api.c 	if (nla == NULL)
nla              3166 net/netfilter/nf_tables_api.c 		if (!nla_strcmp(nla, set->name) &&
nla              3174 net/netfilter/nf_tables_api.c 					       const struct nlattr *nla,
nla              3180 net/netfilter/nf_tables_api.c 		if (be64_to_cpu(nla_get_be64(nla)) == set->handle &&
nla              3188 net/netfilter/nf_tables_api.c 					   const struct nlattr *nla, u8 genmask)
nla              3191 net/netfilter/nf_tables_api.c 	u32 id = ntohl(nla_get_be32(nla));
nla              3278 net/netfilter/nf_tables_api.c static int nf_msecs_to_jiffies64(const struct nlattr *nla, u64 *result)
nla              3280 net/netfilter/nf_tables_api.c 	u64 ms = be64_to_cpu(nla_get_be64(nla));
nla              3484 net/netfilter/nf_tables_api.c 			    const struct nlattr * const nla[],
nla              3495 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_setattr(&ctx, net, skb, nlh, nla, extack,
nla              3515 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_SET_TABLE])
nla              3518 net/netfilter/nf_tables_api.c 	set = nft_set_lookup(ctx.table, nla[NFTA_SET_NAME], genmask);
nla              3538 net/netfilter/nf_tables_api.c 				    const struct nlattr *nla)
nla              3543 net/netfilter/nf_tables_api.c 	err = nla_parse_nested_deprecated(da, NFTA_SET_DESC_MAX, nla,
nla              3556 net/netfilter/nf_tables_api.c 			    const struct nlattr * const nla[],
nla              3575 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_TABLE] == NULL ||
nla              3576 net/netfilter/nf_tables_api.c 	    nla[NFTA_SET_NAME] == NULL ||
nla              3577 net/netfilter/nf_tables_api.c 	    nla[NFTA_SET_KEY_LEN] == NULL ||
nla              3578 net/netfilter/nf_tables_api.c 	    nla[NFTA_SET_ID] == NULL)
nla              3584 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_KEY_TYPE] != NULL) {
nla              3585 net/netfilter/nf_tables_api.c 		ktype = ntohl(nla_get_be32(nla[NFTA_SET_KEY_TYPE]));
nla              3590 net/netfilter/nf_tables_api.c 	desc.klen = ntohl(nla_get_be32(nla[NFTA_SET_KEY_LEN]));
nla              3595 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_FLAGS] != NULL) {
nla              3596 net/netfilter/nf_tables_api.c 		flags = ntohl(nla_get_be32(nla[NFTA_SET_FLAGS]));
nla              3612 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_DATA_TYPE] != NULL) {
nla              3616 net/netfilter/nf_tables_api.c 		dtype = ntohl(nla_get_be32(nla[NFTA_SET_DATA_TYPE]));
nla              3622 net/netfilter/nf_tables_api.c 			if (nla[NFTA_SET_DATA_LEN] == NULL)
nla              3624 net/netfilter/nf_tables_api.c 			desc.dlen = ntohl(nla_get_be32(nla[NFTA_SET_DATA_LEN]));
nla              3632 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_OBJ_TYPE] != NULL) {
nla              3636 net/netfilter/nf_tables_api.c 		objtype = ntohl(nla_get_be32(nla[NFTA_SET_OBJ_TYPE]));
nla              3646 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_TIMEOUT] != NULL) {
nla              3650 net/netfilter/nf_tables_api.c 		err = nf_msecs_to_jiffies64(nla[NFTA_SET_TIMEOUT], &timeout);
nla              3655 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_GC_INTERVAL] != NULL) {
nla              3658 net/netfilter/nf_tables_api.c 		gc_int = ntohl(nla_get_be32(nla[NFTA_SET_GC_INTERVAL]));
nla              3662 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_POLICY] != NULL)
nla              3663 net/netfilter/nf_tables_api.c 		policy = ntohl(nla_get_be32(nla[NFTA_SET_POLICY]));
nla              3665 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_DESC] != NULL) {
nla              3666 net/netfilter/nf_tables_api.c 		err = nf_tables_set_desc_parse(&desc, nla[NFTA_SET_DESC]);
nla              3671 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_SET_TABLE], family, genmask);
nla              3673 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_SET_TABLE]);
nla              3677 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nla              3679 net/netfilter/nf_tables_api.c 	set = nft_set_lookup(table, nla[NFTA_SET_NAME], genmask);
nla              3682 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_SET_NAME]);
nla              3687 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_SET_NAME]);
nla              3699 net/netfilter/nf_tables_api.c 	ops = nft_select_set_ops(&ctx, nla, &desc, policy);
nla              3704 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_USERDATA])
nla              3705 net/netfilter/nf_tables_api.c 		udlen = nla_len(nla[NFTA_SET_USERDATA]);
nla              3709 net/netfilter/nf_tables_api.c 		size = ops->privsize(nla, &desc);
nla              3717 net/netfilter/nf_tables_api.c 	name = nla_strdup(nla[NFTA_SET_NAME], GFP_KERNEL);
nla              3731 net/netfilter/nf_tables_api.c 		nla_memcpy(udata, nla[NFTA_SET_USERDATA], udlen);
nla              3752 net/netfilter/nf_tables_api.c 	err = ops->init(set, &desc, nla);
nla              3788 net/netfilter/nf_tables_api.c 			    const struct nlattr * const nla[],
nla              3800 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_TABLE] == NULL)
nla              3803 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_setattr(&ctx, net, skb, nlh, nla, extack,
nla              3808 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_HANDLE]) {
nla              3809 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_SET_HANDLE];
nla              3812 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_SET_NAME];
nla              3987 net/netfilter/nf_tables_api.c 				      const struct nlattr * const nla[],
nla              3995 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_SET_ELEM_LIST_TABLE], family,
nla              3998 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_SET_ELEM_LIST_TABLE]);
nla              4002 net/netfilter/nf_tables_api.c 	nft_ctx_init(ctx, net, skb, nlh, family, table, NULL, nla);
nla              4267 net/netfilter/nf_tables_api.c 	struct nlattr *nla[NFTA_SET_ELEM_MAX + 1];
nla              4275 net/netfilter/nf_tables_api.c 	err = nla_parse_nested_deprecated(nla, NFTA_SET_ELEM_MAX, attr,
nla              4280 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_SET_ELEM_KEY])
nla              4283 net/netfilter/nf_tables_api.c 	err = nft_setelem_parse_flags(set, nla[NFTA_SET_ELEM_FLAGS], &flags);
nla              4288 net/netfilter/nf_tables_api.c 			    nla[NFTA_SET_ELEM_KEY]);
nla              4330 net/netfilter/nf_tables_api.c 				const struct nlattr * const nla[],
nla              4339 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
nla              4344 net/netfilter/nf_tables_api.c 	set = nft_set_lookup(ctx.table, nla[NFTA_SET_ELEM_LIST_SET], genmask);
nla              4364 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_SET_ELEM_LIST_ELEMENTS])
nla              4367 net/netfilter/nf_tables_api.c 	nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) {
nla              4494 net/netfilter/nf_tables_api.c 	struct nlattr *nla[NFTA_SET_ELEM_MAX + 1];
nla              4512 net/netfilter/nf_tables_api.c 	err = nla_parse_nested_deprecated(nla, NFTA_SET_ELEM_MAX, attr,
nla              4517 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_KEY] == NULL)
nla              4522 net/netfilter/nf_tables_api.c 	err = nft_setelem_parse_flags(set, nla[NFTA_SET_ELEM_FLAGS], &flags);
nla              4529 net/netfilter/nf_tables_api.c 		if (nla[NFTA_SET_ELEM_DATA] == NULL &&
nla              4533 net/netfilter/nf_tables_api.c 		if (nla[NFTA_SET_ELEM_DATA] != NULL)
nla              4538 net/netfilter/nf_tables_api.c 	     (nla[NFTA_SET_ELEM_DATA] ||
nla              4539 net/netfilter/nf_tables_api.c 	      nla[NFTA_SET_ELEM_OBJREF] ||
nla              4540 net/netfilter/nf_tables_api.c 	      nla[NFTA_SET_ELEM_TIMEOUT] ||
nla              4541 net/netfilter/nf_tables_api.c 	      nla[NFTA_SET_ELEM_EXPIRATION] ||
nla              4542 net/netfilter/nf_tables_api.c 	      nla[NFTA_SET_ELEM_USERDATA] ||
nla              4543 net/netfilter/nf_tables_api.c 	      nla[NFTA_SET_ELEM_EXPR]))
nla              4547 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_TIMEOUT] != NULL) {
nla              4550 net/netfilter/nf_tables_api.c 		err = nf_msecs_to_jiffies64(nla[NFTA_SET_ELEM_TIMEOUT],
nla              4559 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_EXPIRATION] != NULL) {
nla              4562 net/netfilter/nf_tables_api.c 		err = nf_msecs_to_jiffies64(nla[NFTA_SET_ELEM_EXPIRATION],
nla              4569 net/netfilter/nf_tables_api.c 			    nla[NFTA_SET_ELEM_KEY]);
nla              4583 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_OBJREF] != NULL) {
nla              4589 net/netfilter/nf_tables_api.c 				     nla[NFTA_SET_ELEM_OBJREF],
nla              4598 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_DATA] != NULL) {
nla              4600 net/netfilter/nf_tables_api.c 				    nla[NFTA_SET_ELEM_DATA]);
nla              4641 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_USERDATA] != NULL) {
nla              4642 net/netfilter/nf_tables_api.c 		ulen = nla_len(nla[NFTA_SET_ELEM_USERDATA]);
nla              4660 net/netfilter/nf_tables_api.c 		nla_memcpy(&udata->data, nla[NFTA_SET_ELEM_USERDATA], ulen);
nla              4715 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_DATA] != NULL)
nla              4725 net/netfilter/nf_tables_api.c 				const struct nlattr * const nla[],
nla              4734 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_LIST_ELEMENTS] == NULL)
nla              4737 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
nla              4742 net/netfilter/nf_tables_api.c 	set = nft_set_lookup_global(net, ctx.table, nla[NFTA_SET_ELEM_LIST_SET],
nla              4743 net/netfilter/nf_tables_api.c 				    nla[NFTA_SET_ELEM_LIST_SET_ID], genmask);
nla              4750 net/netfilter/nf_tables_api.c 	nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) {
nla              4812 net/netfilter/nf_tables_api.c 	struct nlattr *nla[NFTA_SET_ELEM_MAX + 1];
nla              4822 net/netfilter/nf_tables_api.c 	err = nla_parse_nested_deprecated(nla, NFTA_SET_ELEM_MAX, attr,
nla              4828 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_KEY] == NULL)
nla              4833 net/netfilter/nf_tables_api.c 	err = nft_setelem_parse_flags(set, nla[NFTA_SET_ELEM_FLAGS], &flags);
nla              4840 net/netfilter/nf_tables_api.c 			    nla[NFTA_SET_ELEM_KEY]);
nla              4922 net/netfilter/nf_tables_api.c 				const struct nlattr * const nla[],
nla              4931 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
nla              4936 net/netfilter/nf_tables_api.c 	set = nft_set_lookup(ctx.table, nla[NFTA_SET_ELEM_LIST_SET], genmask);
nla              4942 net/netfilter/nf_tables_api.c 	if (nla[NFTA_SET_ELEM_LIST_ELEMENTS] == NULL) {
nla              4952 net/netfilter/nf_tables_api.c 	nla_for_each_nested(attr, nla[NFTA_SET_ELEM_LIST_ELEMENTS], rem) {
nla              5026 net/netfilter/nf_tables_api.c 				  const struct nlattr *nla, u32 objtype,
nla              5034 net/netfilter/nf_tables_api.c 	nla_strlcpy(search, nla, sizeof(search));
nla              5059 net/netfilter/nf_tables_api.c 						  const struct nlattr *nla,
nla              5065 net/netfilter/nf_tables_api.c 		if (be64_to_cpu(nla_get_be64(nla)) == obj->handle &&
nla              5217 net/netfilter/nf_tables_api.c 			    const struct nlattr * const nla[],
nla              5230 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_OBJ_TYPE] ||
nla              5231 net/netfilter/nf_tables_api.c 	    !nla[NFTA_OBJ_NAME] ||
nla              5232 net/netfilter/nf_tables_api.c 	    !nla[NFTA_OBJ_DATA])
nla              5235 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_OBJ_TABLE], family, genmask);
nla              5237 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_OBJ_TABLE]);
nla              5241 net/netfilter/nf_tables_api.c 	objtype = ntohl(nla_get_be32(nla[NFTA_OBJ_TYPE]));
nla              5242 net/netfilter/nf_tables_api.c 	obj = nft_obj_lookup(net, table, nla[NFTA_OBJ_NAME], objtype, genmask);
nla              5246 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_OBJ_NAME]);
nla              5251 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_OBJ_NAME]);
nla              5258 net/netfilter/nf_tables_api.c 		nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nla              5260 net/netfilter/nf_tables_api.c 		return nf_tables_updobj(&ctx, type, nla[NFTA_OBJ_DATA], obj);
nla              5263 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nla              5269 net/netfilter/nf_tables_api.c 	obj = nft_obj_init(&ctx, type, nla[NFTA_OBJ_DATA]);
nla              5277 net/netfilter/nf_tables_api.c 	obj->key.name = nla_strdup(nla[NFTA_OBJ_NAME], GFP_KERNEL);
nla              5409 net/netfilter/nf_tables_api.c 	const struct nlattr * const *nla = cb->data;
nla              5412 net/netfilter/nf_tables_api.c 	if (nla[NFTA_OBJ_TABLE] || nla[NFTA_OBJ_TYPE]) {
nla              5417 net/netfilter/nf_tables_api.c 		if (nla[NFTA_OBJ_TABLE]) {
nla              5418 net/netfilter/nf_tables_api.c 			filter->table = nla_strdup(nla[NFTA_OBJ_TABLE], GFP_ATOMIC);
nla              5425 net/netfilter/nf_tables_api.c 		if (nla[NFTA_OBJ_TYPE])
nla              5426 net/netfilter/nf_tables_api.c 			filter->type = ntohl(nla_get_be32(nla[NFTA_OBJ_TYPE]));
nla              5448 net/netfilter/nf_tables_api.c 			    const struct nlattr * const nla[],
nla              5467 net/netfilter/nf_tables_api.c 			.data = (void *)nla,
nla              5473 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_OBJ_NAME] ||
nla              5474 net/netfilter/nf_tables_api.c 	    !nla[NFTA_OBJ_TYPE])
nla              5477 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_OBJ_TABLE], family, genmask);
nla              5479 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_OBJ_TABLE]);
nla              5483 net/netfilter/nf_tables_api.c 	objtype = ntohl(nla_get_be32(nla[NFTA_OBJ_TYPE]));
nla              5484 net/netfilter/nf_tables_api.c 	obj = nft_obj_lookup(net, table, nla[NFTA_OBJ_NAME], objtype, genmask);
nla              5486 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_OBJ_NAME]);
nla              5521 net/netfilter/nf_tables_api.c 			    const struct nlattr * const nla[],
nla              5533 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_OBJ_TYPE] ||
nla              5534 net/netfilter/nf_tables_api.c 	    (!nla[NFTA_OBJ_NAME] && !nla[NFTA_OBJ_HANDLE]))
nla              5537 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_OBJ_TABLE], family, genmask);
nla              5539 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_OBJ_TABLE]);
nla              5543 net/netfilter/nf_tables_api.c 	objtype = ntohl(nla_get_be32(nla[NFTA_OBJ_TYPE]));
nla              5544 net/netfilter/nf_tables_api.c 	if (nla[NFTA_OBJ_HANDLE]) {
nla              5545 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_OBJ_HANDLE];
nla              5548 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_OBJ_NAME];
nla              5561 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nla              5631 net/netfilter/nf_tables_api.c 					   const struct nlattr *nla, u8 genmask)
nla              5636 net/netfilter/nf_tables_api.c 		if (!nla_strcmp(nla, flowtable->name) &&
nla              5662 net/netfilter/nf_tables_api.c 			      const struct nlattr *nla, u8 genmask)
nla              5667 net/netfilter/nf_tables_api.c                if (be64_to_cpu(nla_get_be64(nla)) == flowtable->handle &&
nla              5815 net/netfilter/nf_tables_api.c 				  const struct nlattr * const nla[],
nla              5827 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_FLOWTABLE_TABLE] ||
nla              5828 net/netfilter/nf_tables_api.c 	    !nla[NFTA_FLOWTABLE_NAME] ||
nla              5829 net/netfilter/nf_tables_api.c 	    !nla[NFTA_FLOWTABLE_HOOK])
nla              5832 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_FLOWTABLE_TABLE], family,
nla              5835 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_FLOWTABLE_TABLE]);
nla              5839 net/netfilter/nf_tables_api.c 	flowtable = nft_flowtable_lookup(table, nla[NFTA_FLOWTABLE_NAME],
nla              5844 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_FLOWTABLE_NAME]);
nla              5849 net/netfilter/nf_tables_api.c 			NL_SET_BAD_ATTR(extack, nla[NFTA_FLOWTABLE_NAME]);
nla              5856 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nla              5865 net/netfilter/nf_tables_api.c 	flowtable->name = nla_strdup(nla[NFTA_FLOWTABLE_NAME], GFP_KERNEL);
nla              5882 net/netfilter/nf_tables_api.c 	err = nf_tables_flowtable_parse_hook(&ctx, nla[NFTA_FLOWTABLE_HOOK],
nla              5938 net/netfilter/nf_tables_api.c 				  const struct nlattr * const nla[],
nla              5949 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_FLOWTABLE_TABLE] ||
nla              5950 net/netfilter/nf_tables_api.c 	    (!nla[NFTA_FLOWTABLE_NAME] &&
nla              5951 net/netfilter/nf_tables_api.c 	     !nla[NFTA_FLOWTABLE_HANDLE]))
nla              5954 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_FLOWTABLE_TABLE], family,
nla              5957 net/netfilter/nf_tables_api.c 		NL_SET_BAD_ATTR(extack, nla[NFTA_FLOWTABLE_TABLE]);
nla              5961 net/netfilter/nf_tables_api.c 	if (nla[NFTA_FLOWTABLE_HANDLE]) {
nla              5962 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_FLOWTABLE_HANDLE];
nla              5965 net/netfilter/nf_tables_api.c 		attr = nla[NFTA_FLOWTABLE_NAME];
nla              5978 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nla              6094 net/netfilter/nf_tables_api.c 	const struct nlattr * const *nla = cb->data;
nla              6097 net/netfilter/nf_tables_api.c 	if (nla[NFTA_FLOWTABLE_TABLE]) {
nla              6102 net/netfilter/nf_tables_api.c 		filter->table = nla_strdup(nla[NFTA_FLOWTABLE_TABLE],
nla              6131 net/netfilter/nf_tables_api.c 				  const struct nlattr * const nla[],
nla              6148 net/netfilter/nf_tables_api.c 			.data = (void *)nla,
nla              6154 net/netfilter/nf_tables_api.c 	if (!nla[NFTA_FLOWTABLE_NAME])
nla              6157 net/netfilter/nf_tables_api.c 	table = nft_table_lookup(net, nla[NFTA_FLOWTABLE_TABLE], family,
nla              6162 net/netfilter/nf_tables_api.c 	flowtable = nft_flowtable_lookup(table, nla[NFTA_FLOWTABLE_NAME],
nla              6327 net/netfilter/nf_tables_api.c 			    const struct nlattr * const nla[],
nla              7466 net/netfilter/nf_tables_api.c 			    struct nft_data_desc *desc, const struct nlattr *nla)
nla              7473 net/netfilter/nf_tables_api.c 	err = nla_parse_nested_deprecated(tb, NFTA_VERDICT_MAX, nla,
nla              7555 net/netfilter/nf_tables_api.c 			  struct nft_data_desc *desc, const struct nlattr *nla)
nla              7559 net/netfilter/nf_tables_api.c 	len = nla_len(nla);
nla              7565 net/netfilter/nf_tables_api.c 	nla_memcpy(data->data, nla, len);
nla              7599 net/netfilter/nf_tables_api.c 		  struct nft_data_desc *desc, const struct nlattr *nla)
nla              7604 net/netfilter/nf_tables_api.c 	err = nla_parse_nested_deprecated(tb, NFTA_DATA_MAX, nla,
nla                48 net/netfilter/nf_tables_trace.c 	struct nlattr *nla;
nla                53 net/netfilter/nf_tables_trace.c 	nla = nla_reserve(nlskb, type, len);
nla                54 net/netfilter/nf_tables_trace.c 	if (!nla || skb_copy_bits(skb, off, nla_data(nla), len))
nla               639 net/netfilter/nfnetlink_log.c 		struct nlattr *nla;
nla               645 net/netfilter/nfnetlink_log.c 		nla = skb_put(inst->skb, nla_total_size(data_len));
nla               646 net/netfilter/nfnetlink_log.c 		nla->nla_type = NFULA_PAYLOAD;
nla               647 net/netfilter/nfnetlink_log.c 		nla->nla_len = size;
nla               649 net/netfilter/nfnetlink_log.c 		if (skb_copy_bits(skb, 0, nla_data(nla), data_len))
nla               383 net/netfilter/nfnetlink_queue.c 	struct nlattr *nla;
nla               485 net/netfilter/nfnetlink_queue.c 	nla = __nla_reserve(skb, NFQA_PACKET_HDR, sizeof(*pmsg));
nla               486 net/netfilter/nfnetlink_queue.c 	pmsg = nla_data(nla);
nla               610 net/netfilter/nfnetlink_queue.c 		struct nlattr *nla;
nla               612 net/netfilter/nfnetlink_queue.c 		if (skb_tailroom(skb) < sizeof(*nla) + hlen)
nla               615 net/netfilter/nfnetlink_queue.c 		nla = skb_put(skb, sizeof(*nla));
nla               616 net/netfilter/nfnetlink_queue.c 		nla->nla_type = NFQA_PAYLOAD;
nla               617 net/netfilter/nfnetlink_queue.c 		nla->nla_len = nla_attr_size(data_len);
nla               231 net/netfilter/nft_compat.c 	if (ctx->nla[NFTA_RULE_COMPAT]) {
nla               232 net/netfilter/nft_compat.c 		ret = nft_parse_compat(ctx->nla[NFTA_RULE_COMPAT], &proto, &inv);
nla               274 net/netfilter/nft_compat.c 	struct nlattr *nla;
nla               276 net/netfilter/nft_compat.c 	nla = nla_reserve(skb, attr, aligned_size);
nla               277 net/netfilter/nft_compat.c 	if (!nla)
nla               281 net/netfilter/nft_compat.c 	memcpy(nla_data(nla), info, info_size);
nla               282 net/netfilter/nft_compat.c 	memset(nla_data(nla) + info_size, 0, aligned_size - info_size);
nla               446 net/netfilter/nft_compat.c 	if (ctx->nla[NFTA_RULE_COMPAT]) {
nla               447 net/netfilter/nft_compat.c 		ret = nft_parse_compat(ctx->nla[NFTA_RULE_COMPAT], &proto, &inv);
nla               137 net/netfilter/nft_log.c 	const struct nlattr *nla;
nla               150 net/netfilter/nft_log.c 	nla = tb[NFTA_LOG_PREFIX];
nla               151 net/netfilter/nft_log.c 	if (nla != NULL) {
nla               152 net/netfilter/nft_log.c 		priv->prefix = kmalloc(nla_len(nla) + 1, GFP_KERNEL);
nla               155 net/netfilter/nft_log.c 		nla_strlcpy(priv->prefix, nla, nla_len(nla) + 1);
nla               253 net/netfilter/nft_set_bitmap.c static u64 nft_bitmap_privsize(const struct nlattr * const nla[],
nla               256 net/netfilter/nft_set_bitmap.c 	u32 klen = ntohl(nla_get_be32(nla[NFTA_SET_KEY_LEN]));
nla               263 net/netfilter/nft_set_bitmap.c 			 const struct nlattr * const nla[])
nla               345 net/netfilter/nft_set_hash.c static u64 nft_rhash_privsize(const struct nlattr * const nla[],
nla               595 net/netfilter/nft_set_hash.c static u64 nft_hash_privsize(const struct nlattr * const nla[],
nla               443 net/netfilter/nft_set_rbtree.c static u64 nft_rbtree_privsize(const struct nlattr * const nla[],
nla               451 net/netfilter/nft_set_rbtree.c 			   const struct nlattr * const nla[])
nla                82 net/netlabel/netlabel_cipso_v4.c 	struct nlattr *nla;
nla                94 net/netlabel/netlabel_cipso_v4.c 	nla_for_each_nested(nla, info->attrs[NLBL_CIPSOV4_A_TAGLST], nla_rem)
nla                95 net/netlabel/netlabel_cipso_v4.c 		if (nla_type(nla) == NLBL_CIPSOV4_A_TAG) {
nla                98 net/netlabel/netlabel_cipso_v4.c 			doi_def->tags[iter++] = nla_get_u8(nla);
nla                49 net/openvswitch/conntrack.h static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla,
nla               391 net/openvswitch/datapath.c 	struct nlattr *nla;
nla               457 net/openvswitch/datapath.c 		nla = nla_nest_start_noflag(user_skb,
nla               459 net/openvswitch/datapath.c 		if (!nla) {
nla               468 net/openvswitch/datapath.c 		nla_nest_end(user_skb, nla);
nla               472 net/openvswitch/datapath.c 		nla = nla_nest_start_noflag(user_skb, OVS_PACKET_ATTR_ACTIONS);
nla               473 net/openvswitch/datapath.c 		if (!nla) {
nla               481 net/openvswitch/datapath.c 			nla_nest_end(user_skb, nla);
nla               483 net/openvswitch/datapath.c 			nla_nest_cancel(user_skb, nla);
nla               508 net/openvswitch/datapath.c 	if (!(nla = nla_reserve(user_skb, OVS_PACKET_ATTR_PACKET, 0))) {
nla               512 net/openvswitch/datapath.c 	nla->nla_len = nla_attr_size(skb->len - cutlen);
nla                53 net/openvswitch/flow_netlink.c 	struct nlattr *nla;
nla                56 net/openvswitch/flow_netlink.c 	nla_for_each_nested(nla, actions, rem) {
nla                57 net/openvswitch/flow_netlink.c 		u16 action = nla_type(nla);
nla               465 net/openvswitch/flow_netlink.c 	const struct nlattr *nla;
nla               470 net/openvswitch/flow_netlink.c 	nla_for_each_nested(nla, attr, rem) {
nla               471 net/openvswitch/flow_netlink.c 		u16 type = nla_type(nla);
nla               486 net/openvswitch/flow_netlink.c 		if (!check_attr_len(nla_len(nla), expected_len)) {
nla               488 net/openvswitch/flow_netlink.c 				  type, nla_len(nla), expected_len);
nla               492 net/openvswitch/flow_netlink.c 		if (!nz || !is_all_zero(nla_data(nla), nla_len(nla))) {
nla               494 net/openvswitch/flow_netlink.c 			a[type] = nla;
nla               844 net/openvswitch/flow_netlink.c 	struct nlattr *nla;
nla               846 net/openvswitch/flow_netlink.c 	nla = nla_nest_start_noflag(skb, OVS_TUNNEL_KEY_ATTR_VXLAN_OPTS);
nla               847 net/openvswitch/flow_netlink.c 	if (!nla)
nla               853 net/openvswitch/flow_netlink.c 	nla_nest_end(skb, nla);
nla               935 net/openvswitch/flow_netlink.c 	struct nlattr *nla;
nla               938 net/openvswitch/flow_netlink.c 	nla = nla_nest_start_noflag(skb, OVS_KEY_ATTR_TUNNEL);
nla               939 net/openvswitch/flow_netlink.c 	if (!nla)
nla               947 net/openvswitch/flow_netlink.c 	nla_nest_end(skb, nla);
nla              1722 net/openvswitch/flow_netlink.c 	struct nlattr *nla;
nla              1726 net/openvswitch/flow_netlink.c 	nla_for_each_nested(nla, attr, rem) {
nla              1727 net/openvswitch/flow_netlink.c 		if (tbl[nla_type(nla)].len == OVS_ATTR_NESTED)
nla              1728 net/openvswitch/flow_netlink.c 			nlattr_set(nla, val, tbl[nla_type(nla)].next ? : tbl);
nla              1730 net/openvswitch/flow_netlink.c 			memset(nla_data(nla), val, nla_len(nla));
nla              1732 net/openvswitch/flow_netlink.c 		if (nla_type(nla) == OVS_KEY_ATTR_CT_STATE)
nla              1733 net/openvswitch/flow_netlink.c 			*(u32 *)nla_data(nla) &= CT_SUPPORTED_MASK;
nla              1975 net/openvswitch/flow_netlink.c 	struct nlattr *nla;
nla              2019 net/openvswitch/flow_netlink.c 		nla = nla_reserve(skb, OVS_KEY_ATTR_ETHERNET, sizeof(*eth_key));
nla              2020 net/openvswitch/flow_netlink.c 		if (!nla)
nla              2023 net/openvswitch/flow_netlink.c 		eth_key = nla_data(nla);
nla              2073 net/openvswitch/flow_netlink.c 		nla = nla_reserve(skb, OVS_KEY_ATTR_IPV4, sizeof(*ipv4_key));
nla              2074 net/openvswitch/flow_netlink.c 		if (!nla)
nla              2076 net/openvswitch/flow_netlink.c 		ipv4_key = nla_data(nla);
nla              2086 net/openvswitch/flow_netlink.c 		nla = nla_reserve(skb, OVS_KEY_ATTR_IPV6, sizeof(*ipv6_key));
nla              2087 net/openvswitch/flow_netlink.c 		if (!nla)
nla              2089 net/openvswitch/flow_netlink.c 		ipv6_key = nla_data(nla);
nla              2106 net/openvswitch/flow_netlink.c 		nla = nla_reserve(skb, OVS_KEY_ATTR_ARP, sizeof(*arp_key));
nla              2107 net/openvswitch/flow_netlink.c 		if (!nla)
nla              2109 net/openvswitch/flow_netlink.c 		arp_key = nla_data(nla);
nla              2119 net/openvswitch/flow_netlink.c 		nla = nla_reserve(skb, OVS_KEY_ATTR_MPLS, sizeof(*mpls_key));
nla              2120 net/openvswitch/flow_netlink.c 		if (!nla)
nla              2122 net/openvswitch/flow_netlink.c 		mpls_key = nla_data(nla);
nla              2133 net/openvswitch/flow_netlink.c 			nla = nla_reserve(skb, OVS_KEY_ATTR_TCP, sizeof(*tcp_key));
nla              2134 net/openvswitch/flow_netlink.c 			if (!nla)
nla              2136 net/openvswitch/flow_netlink.c 			tcp_key = nla_data(nla);
nla              2145 net/openvswitch/flow_netlink.c 			nla = nla_reserve(skb, OVS_KEY_ATTR_UDP, sizeof(*udp_key));
nla              2146 net/openvswitch/flow_netlink.c 			if (!nla)
nla              2148 net/openvswitch/flow_netlink.c 			udp_key = nla_data(nla);
nla              2154 net/openvswitch/flow_netlink.c 			nla = nla_reserve(skb, OVS_KEY_ATTR_SCTP, sizeof(*sctp_key));
nla              2155 net/openvswitch/flow_netlink.c 			if (!nla)
nla              2157 net/openvswitch/flow_netlink.c 			sctp_key = nla_data(nla);
nla              2164 net/openvswitch/flow_netlink.c 			nla = nla_reserve(skb, OVS_KEY_ATTR_ICMP, sizeof(*icmp_key));
nla              2165 net/openvswitch/flow_netlink.c 			if (!nla)
nla              2167 net/openvswitch/flow_netlink.c 			icmp_key = nla_data(nla);
nla              2174 net/openvswitch/flow_netlink.c 			nla = nla_reserve(skb, OVS_KEY_ATTR_ICMPV6,
nla              2176 net/openvswitch/flow_netlink.c 			if (!nla)
nla              2178 net/openvswitch/flow_netlink.c 			icmpv6_key = nla_data(nla);
nla              2186 net/openvswitch/flow_netlink.c 				nla = nla_reserve(skb, OVS_KEY_ATTR_ND, sizeof(*nd_key));
nla              2187 net/openvswitch/flow_netlink.c 				if (!nla)
nla              2189 net/openvswitch/flow_netlink.c 				nd_key = nla_data(nla);
nla              2215 net/openvswitch/flow_netlink.c 	struct nlattr *nla;
nla              2217 net/openvswitch/flow_netlink.c 	nla = nla_nest_start_noflag(skb, attr);
nla              2218 net/openvswitch/flow_netlink.c 	if (!nla)
nla              2223 net/openvswitch/flow_netlink.c 	nla_nest_end(skb, nla);
nla              3404 net/openvswitch/flow_netlink.c 	struct nlattr *nla;
nla              3410 net/openvswitch/flow_netlink.c 	nla = nla_nest_start_noflag(skb, OVS_ACTION_ATTR_SET);
nla              3411 net/openvswitch/flow_netlink.c 	if (!nla)
nla              3417 net/openvswitch/flow_netlink.c 	nla_nest_end(skb, nla);
nla               111 net/openvswitch/meter.c 	struct nlattr *nla;
nla               127 net/openvswitch/meter.c 	nla = nla_nest_start_noflag(reply, OVS_METER_ATTR_BANDS);
nla               128 net/openvswitch/meter.c 	if (!nla)
nla               143 net/openvswitch/meter.c 	nla_nest_end(reply, nla);
nla               154 net/openvswitch/meter.c 	struct nlattr *nla, *band_nla;
nla               166 net/openvswitch/meter.c 	nla = nla_nest_start_noflag(reply, OVS_METER_ATTR_BANDS);
nla               167 net/openvswitch/meter.c 	if (!nla)
nla               177 net/openvswitch/meter.c 	nla_nest_end(reply, nla);
nla               190 net/openvswitch/meter.c 	struct nlattr *nla;
nla               201 net/openvswitch/meter.c 	nla_for_each_nested(nla, a[OVS_METER_ATTR_BANDS], rem)
nla               223 net/openvswitch/meter.c 	nla_for_each_nested(nla, a[OVS_METER_ATTR_BANDS], rem) {
nla               228 net/openvswitch/meter.c 					   OVS_BAND_ATTR_MAX, nla_data(nla),
nla               229 net/openvswitch/meter.c 					   nla_len(nla), band_policy, NULL);
nla               301 net/openvswitch/vport.c 	struct nlattr *nla;
nla               307 net/openvswitch/vport.c 	nla = nla_nest_start_noflag(skb, OVS_VPORT_ATTR_OPTIONS);
nla               308 net/openvswitch/vport.c 	if (!nla)
nla               313 net/openvswitch/vport.c 		nla_nest_cancel(skb, nla);
nla               317 net/openvswitch/vport.c 	nla_nest_end(skb, nla);
nla               271 net/psample/psample.c 		struct nlattr *nla;
nla               273 net/psample/psample.c 		nla = skb_put(nl_skb, nla_len);
nla               274 net/psample/psample.c 		nla->nla_type = PSAMPLE_ATTR_DATA;
nla               275 net/psample/psample.c 		nla->nla_len = nla_attr_size(data_len);
nla               277 net/psample/psample.c 		if (skb_copy_bits(skb, 0, nla_data(nla), data_len))
nla               843 net/sched/act_api.c 				    struct nlattr *nla, struct nlattr *est,
nla               857 net/sched/act_api.c 		err = nla_parse_nested_deprecated(tb, TCA_ACT_MAX, nla,
nla               919 net/sched/act_api.c 		err = a_o->init(net, nla, est, &a, ovr, bind, rtnl_held,
nla               955 net/sched/act_api.c int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
nla               966 net/sched/act_api.c 	err = nla_parse_nested_deprecated(tb, TCA_ACT_MAX_PRIO, nla, NULL,
nla              1092 net/sched/act_api.c static struct tc_action *tcf_action_get_1(struct net *net, struct nlattr *nla,
nla              1102 net/sched/act_api.c 	err = nla_parse_nested_deprecated(tb, TCA_ACT_MAX, nla,
nla              1136 net/sched/act_api.c static int tca_action_flush(struct net *net, struct nlattr *nla,
nla              1157 net/sched/act_api.c 	err = nla_parse_nested_deprecated(tb, TCA_ACT_MAX, nla,
nla              1278 net/sched/act_api.c tca_action_gd(struct net *net, struct nlattr *nla, struct nlmsghdr *n,
nla              1287 net/sched/act_api.c 	ret = nla_parse_nested_deprecated(tb, TCA_ACT_MAX_PRIO, nla, NULL,
nla              1351 net/sched/act_api.c static int tcf_action_add(struct net *net, struct nlattr *nla,
nla              1360 net/sched/act_api.c 		ret = tcf_action_init(net, NULL, nla, NULL, NULL, ovr, 0,
nla              1433 net/sched/act_api.c static struct nlattr *find_dump_kind(struct nlattr **nla)
nla              1439 net/sched/act_api.c 	tb1 = nla[TCA_ACT_TAB];
nla                98 net/sched/act_bpf.c 	struct nlattr *nla;
nla               103 net/sched/act_bpf.c 	nla = nla_reserve(skb, TCA_ACT_BPF_OPS, prog->bpf_num_ops *
nla               105 net/sched/act_bpf.c 	if (nla == NULL)
nla               108 net/sched/act_bpf.c 	memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla));
nla               116 net/sched/act_bpf.c 	struct nlattr *nla;
nla               125 net/sched/act_bpf.c 	nla = nla_reserve(skb, TCA_ACT_BPF_TAG, sizeof(prog->filter->tag));
nla               126 net/sched/act_bpf.c 	if (nla == NULL)
nla               129 net/sched/act_bpf.c 	memcpy(nla_data(nla), prog->filter->tag, nla_len(nla));
nla               275 net/sched/act_bpf.c static int tcf_bpf_init(struct net *net, struct nlattr *nla,
nla               290 net/sched/act_bpf.c 	if (!nla)
nla               293 net/sched/act_bpf.c 	ret = nla_parse_nested_deprecated(tb, TCA_ACT_BPF_MAX, nla,
nla                94 net/sched/act_connmark.c static int tcf_connmark_init(struct net *net, struct nlattr *nla,
nla               108 net/sched/act_connmark.c 	if (!nla)
nla               111 net/sched/act_connmark.c 	ret = nla_parse_nested_deprecated(tb, TCA_CONNMARK_MAX, nla,
nla                43 net/sched/act_csum.c static int tcf_csum_init(struct net *net, struct nlattr *nla,
nla                57 net/sched/act_csum.c 	if (nla == NULL)
nla                60 net/sched/act_csum.c 	err = nla_parse_nested_deprecated(tb, TCA_CSUM_MAX, nla, csum_policy,
nla               667 net/sched/act_ct.c static int tcf_ct_init(struct net *net, struct nlattr *nla,
nla               682 net/sched/act_ct.c 	if (!nla) {
nla               687 net/sched/act_ct.c 	err = nla_parse_nested(tb, TCA_CT_MAX, nla, ct_policy, extack);
nla               153 net/sched/act_ctinfo.c static int tcf_ctinfo_init(struct net *net, struct nlattr *nla,
nla               169 net/sched/act_ctinfo.c 	if (!nla) {
nla               174 net/sched/act_ctinfo.c 	err = nla_parse_nested(tb, TCA_CTINFO_MAX, nla, ctinfo_policy, extack);
nla                53 net/sched/act_gact.c static int tcf_gact_init(struct net *net, struct nlattr *nla,
nla                70 net/sched/act_gact.c 	if (nla == NULL)
nla                73 net/sched/act_gact.c 	err = nla_parse_nested_deprecated(tb, TCA_GACT_MAX, nla, gact_policy,
nla               465 net/sched/act_ife.c static int tcf_ife_init(struct net *net, struct nlattr *nla,
nla               485 net/sched/act_ife.c 	if (!nla) {
nla               490 net/sched/act_ife.c 	err = nla_parse_nested_deprecated(tb, TCA_IFE_MAX, nla, ife_policy,
nla                95 net/sched/act_ipt.c static int __tcf_ipt_init(struct net *net, unsigned int id, struct nlattr *nla,
nla               110 net/sched/act_ipt.c 	if (nla == NULL)
nla               113 net/sched/act_ipt.c 	err = nla_parse_nested_deprecated(tb, TCA_IPT_MAX, nla, ipt_policy,
nla               205 net/sched/act_ipt.c static int tcf_ipt_init(struct net *net, struct nlattr *nla,
nla               210 net/sched/act_ipt.c 	return __tcf_ipt_init(net, ipt_net_id, nla, est, a, &act_ipt_ops, ovr,
nla               214 net/sched/act_ipt.c static int tcf_xt_init(struct net *net, struct nlattr *nla,
nla               219 net/sched/act_ipt.c 	return __tcf_ipt_init(net, xt_net_id, nla, est, a, &act_xt_ops, ovr,
nla                92 net/sched/act_mirred.c static int tcf_mirred_init(struct net *net, struct nlattr *nla,
nla               109 net/sched/act_mirred.c 	if (!nla) {
nla               113 net/sched/act_mirred.c 	ret = nla_parse_nested_deprecated(tb, TCA_MIRRED_MAX, nla,
nla               134 net/sched/act_mpls.c static int tcf_mpls_init(struct net *net, struct nlattr *nla,
nla               150 net/sched/act_mpls.c 	if (!nla) {
nla               155 net/sched/act_mpls.c 	err = nla_parse_nested(tb, TCA_MPLS_MAX, nla, mpls_policy, extack);
nla                36 net/sched/act_nat.c static int tcf_nat_init(struct net *net, struct nlattr *nla, struct nlattr *est,
nla                49 net/sched/act_nat.c 	if (nla == NULL)
nla                52 net/sched/act_nat.c 	err = nla_parse_nested_deprecated(tb, TCA_NAT_MAX, nla, nat_policy,
nla                37 net/sched/act_pedit.c static struct tcf_pedit_key_ex *tcf_pedit_keys_ex_parse(struct nlattr *nla,
nla                46 net/sched/act_pedit.c 	if (!nla)
nla                55 net/sched/act_pedit.c 	nla_for_each_nested(ka, nla, rem) {
nla               137 net/sched/act_pedit.c static int tcf_pedit_init(struct net *net, struct nlattr *nla,
nla               154 net/sched/act_pedit.c 	if (!nla) {
nla               159 net/sched/act_pedit.c 	err = nla_parse_nested_deprecated(tb, TCA_PEDIT_MAX, nla,
nla                47 net/sched/act_police.c static int tcf_police_init(struct net *net, struct nlattr *nla,
nla                65 net/sched/act_police.c 	if (nla == NULL)
nla                68 net/sched/act_police.c 	err = nla_parse_nested_deprecated(tb, TCA_POLICE_MAX, nla,
nla                36 net/sched/act_sample.c static int tcf_sample_init(struct net *net, struct nlattr *nla,
nla                51 net/sched/act_sample.c 	if (!nla)
nla                53 net/sched/act_sample.c 	ret = nla_parse_nested_deprecated(tb, TCA_SAMPLE_MAX, nla,
nla                86 net/sched/act_simple.c static int tcf_simp_init(struct net *net, struct nlattr *nla,
nla               100 net/sched/act_simple.c 	if (nla == NULL)
nla               103 net/sched/act_simple.c 	err = nla_parse_nested_deprecated(tb, TCA_DEF_MAX, nla, simple_policy,
nla                86 net/sched/act_skbedit.c static int tcf_skbedit_init(struct net *net, struct nlattr *nla,
nla               104 net/sched/act_skbedit.c 	if (nla == NULL)
nla               107 net/sched/act_skbedit.c 	err = nla_parse_nested_deprecated(tb, TCA_SKBEDIT_MAX, nla,
nla                79 net/sched/act_skbmod.c static int tcf_skbmod_init(struct net *net, struct nlattr *nla,
nla                98 net/sched/act_skbmod.c 	if (!nla)
nla               101 net/sched/act_skbmod.c 	err = nla_parse_nested_deprecated(tb, TCA_SKBMOD_MAX, nla,
nla                68 net/sched/act_tunnel_key.c tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len,
nla                77 net/sched/act_tunnel_key.c 					  nla, geneve_opt_policy, extack);
nla               119 net/sched/act_tunnel_key.c static int tunnel_key_copy_opts(const struct nlattr *nla, u8 *dst,
nla               122 net/sched/act_tunnel_key.c 	int err, rem, opt_len, len = nla_len(nla), opts_len = 0;
nla               123 net/sched/act_tunnel_key.c 	const struct nlattr *attr, *head = nla_data(nla);
nla               163 net/sched/act_tunnel_key.c static int tunnel_key_get_opts_len(struct nlattr *nla,
nla               166 net/sched/act_tunnel_key.c 	return tunnel_key_copy_opts(nla, NULL, 0, extack);
nla               169 net/sched/act_tunnel_key.c static int tunnel_key_opts_set(struct nlattr *nla, struct ip_tunnel_info *info,
nla               173 net/sched/act_tunnel_key.c 	switch (nla_type(nla_data(nla))) {
nla               177 net/sched/act_tunnel_key.c 		return tunnel_key_copy_opts(nla, ip_tunnel_info_opts(info),
nla               212 net/sched/act_tunnel_key.c static int tunnel_key_init(struct net *net, struct nlattr *nla,
nla               235 net/sched/act_tunnel_key.c 	if (!nla) {
nla               240 net/sched/act_tunnel_key.c 	err = nla_parse_nested_deprecated(tb, TCA_TUNNEL_KEY_MAX, nla,
nla               102 net/sched/act_vlan.c static int tcf_vlan_init(struct net *net, struct nlattr *nla,
nla               121 net/sched/act_vlan.c 	if (!nla)
nla               124 net/sched/act_vlan.c 	err = nla_parse_nested_deprecated(tb, TCA_VLAN_MAX, nla, vlan_policy,
nla               545 net/sched/cls_bpf.c 	struct nlattr *nla;
nla               550 net/sched/cls_bpf.c 	nla = nla_reserve(skb, TCA_BPF_OPS, prog->bpf_num_ops *
nla               552 net/sched/cls_bpf.c 	if (nla == NULL)
nla               555 net/sched/cls_bpf.c 	memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla));
nla               563 net/sched/cls_bpf.c 	struct nlattr *nla;
nla               572 net/sched/cls_bpf.c 	nla = nla_reserve(skb, TCA_BPF_TAG, sizeof(prog->filter->tag));
nla               573 net/sched/cls_bpf.c 	if (nla == NULL)
nla               576 net/sched/cls_bpf.c 	memcpy(nla_data(nla), prog->filter->tag, nla_len(nla));
nla               855 net/sched/cls_flower.c static int fl_set_geneve_opt(const struct nlattr *nla, struct fl_flow_key *key,
nla               878 net/sched/cls_flower.c 	if (nla_type(nla) != TCA_FLOWER_KEY_ENC_OPTS_GENEVE) {
nla               885 net/sched/cls_flower.c 					  nla, geneve_opt_policy, extack);
nla               692 net/sched/em_meta.c static int meta_var_change(struct meta_value *dst, struct nlattr *nla)
nla               694 net/sched/em_meta.c 	int len = nla_len(nla);
nla               696 net/sched/em_meta.c 	dst->val = (unsigned long)kmemdup(nla_data(nla), len, GFP_KERNEL);
nla               745 net/sched/em_meta.c static int meta_int_change(struct meta_value *dst, struct nlattr *nla)
nla               747 net/sched/em_meta.c 	if (nla_len(nla) >= sizeof(unsigned long)) {
nla               748 net/sched/em_meta.c 		dst->val = *(unsigned long *) nla_data(nla);
nla               750 net/sched/em_meta.c 	} else if (nla_len(nla) == sizeof(u32)) {
nla               751 net/sched/em_meta.c 		dst->val = nla_get_u32(nla);
nla               882 net/sched/em_meta.c static inline int meta_change_data(struct meta_value *dst, struct nlattr *nla)
nla               884 net/sched/em_meta.c 	if (nla) {
nla               885 net/sched/em_meta.c 		if (nla_len(nla) == 0)
nla               888 net/sched/em_meta.c 		return meta_type_ops(dst)->change(dst, nla);
nla               171 net/sched/ematch.c 			   struct tcf_ematch *em, struct nlattr *nla, int idx)
nla               174 net/sched/ematch.c 	struct tcf_ematch_hdr *em_hdr = nla_data(nla);
nla               175 net/sched/ematch.c 	int data_len = nla_len(nla) - sizeof(*em_hdr);
nla               303 net/sched/ematch.c int tcf_em_tree_validate(struct tcf_proto *tp, struct nlattr *nla,
nla               313 net/sched/ematch.c 	if (!nla)
nla               316 net/sched/ematch.c 	err = nla_parse_nested_deprecated(tb, TCA_EMATCH_TREE_MAX, nla,
nla               144 net/sched/sch_fifo.c 	struct nlattr *nla;
nla               151 net/sched/sch_fifo.c 	nla = kmalloc(nla_attr_size(sizeof(struct tc_fifo_qopt)), GFP_KERNEL);
nla               152 net/sched/sch_fifo.c 	if (nla) {
nla               153 net/sched/sch_fifo.c 		nla->nla_type = RTM_NEWQDISC;
nla               154 net/sched/sch_fifo.c 		nla->nla_len = nla_attr_size(sizeof(struct tc_fifo_qopt));
nla               155 net/sched/sch_fifo.c 		((struct tc_fifo_qopt *)nla_data(nla))->limit = limit;
nla               157 net/sched/sch_fifo.c 		ret = q->ops->change(q, nla, NULL);
nla               158 net/sched/sch_fifo.c 		kfree(nla);
nla              1342 net/sched/sch_htb.c 			struct nlattr		nla;
nla              1345 net/sched/sch_htb.c 			.nla = {
nla              1381 net/sched/sch_htb.c 						tca[TCA_RATE] ? : &est.nla);
nla               119 net/sched/sch_mqprio.c static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla,
nla               122 net/sched/sch_mqprio.c 	int nested_len = nla_len(nla) - NLA_ALIGN(len);
nla               126 net/sched/sch_mqprio.c 					    nla_data(nla) + NLA_ALIGN(len),
nla               387 net/sched/sch_mqprio.c 	struct nlattr *nla = (struct nlattr *)skb_tail_pointer(skb);
nla               453 net/sched/sch_mqprio.c 	return nla_nest_end(skb, nla);
nla               455 net/sched/sch_mqprio.c 	nlmsg_trim(skb, nla);
nla               930 net/sched/sch_netem.c static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla,
nla               933 net/sched/sch_netem.c 	int nested_len = nla_len(nla) - NLA_ALIGN(len);
nla               942 net/sched/sch_netem.c 					    nla_data(nla) + NLA_ALIGN(len),
nla              1134 net/sched/sch_netem.c 	struct nlattr *nla = (struct nlattr *) skb_tail_pointer(skb);
nla              1206 net/sched/sch_netem.c 	return nla_nest_end(skb, nla);
nla              1209 net/sched/sch_netem.c 	nlmsg_trim(skb, nla);
nla               576 net/tipc/udp_media.c static int tipc_parse_udp_addr(struct nlattr *nla, struct udp_media_addr *addr,
nla               581 net/tipc/udp_media.c 	nla_memcpy(&sa, nla, sizeof(sa));
nla               172 net/wimax/op-msg.c 	struct nlattr *nla;
nla               174 net/wimax/op-msg.c 	nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
nla               176 net/wimax/op-msg.c 	if (nla == NULL) {
nla               180 net/wimax/op-msg.c 	*size = nla_len(nla);
nla               181 net/wimax/op-msg.c 	return nla_data(nla);
nla               194 net/wimax/op-msg.c 	struct nlattr *nla;
nla               196 net/wimax/op-msg.c 	nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
nla               198 net/wimax/op-msg.c 	if (nla == NULL) {
nla               202 net/wimax/op-msg.c 	return nla_data(nla);
nla               215 net/wimax/op-msg.c 	struct nlattr *nla;
nla               217 net/wimax/op-msg.c 	nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
nla               219 net/wimax/op-msg.c 	if (nla == NULL) {
nla               223 net/wimax/op-msg.c 	return nla_len(nla);
nla              3390 net/wireless/nl80211.c static int parse_monitor_flags(struct nlattr *nla, u32 *mntrflags)
nla              3397 net/wireless/nl80211.c 	if (!nla)
nla              3400 net/wireless/nl80211.c 	if (nla_parse_nested_deprecated(flags, NL80211_MNTR_FLAG_MAX, nla, mntr_flags_policy, NULL))
nla              4880 net/wireless/nl80211.c 	struct nlattr *nla;
nla              4887 net/wireless/nl80211.c 	nla = info->attrs[NL80211_ATTR_STA_FLAGS2];
nla              4888 net/wireless/nl80211.c 	if (nla) {
nla              4891 net/wireless/nl80211.c 		sta_flags = nla_data(nla);
nla              4903 net/wireless/nl80211.c 	nla = info->attrs[NL80211_ATTR_STA_FLAGS];
nla              4904 net/wireless/nl80211.c 	if (!nla)
nla              4907 net/wireless/nl80211.c 	if (nla_parse_nested_deprecated(flags, NL80211_STA_FLAG_MAX, nla, sta_flags_policy, info->extack))
nla              5571 net/wireless/nl80211.c 	struct nlattr *nla;
nla              5578 net/wireless/nl80211.c 	nla = info->attrs[NL80211_ATTR_STA_WME];
nla              5579 net/wireless/nl80211.c 	err = nla_parse_nested_deprecated(tb, NL80211_STA_WME_MAX, nla,
nla              7300 net/wireless/nl80211.c static int parse_bss_select(struct nlattr *nla, struct wiphy *wiphy,
nla              7310 net/wireless/nl80211.c 	nest = nla_data(nla);
nla              13456 net/wireless/nl80211.c 	const struct nlattr *nla;
nla              13466 net/wireless/nl80211.c 	nla = info->attrs[NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED];
nla              13467 net/wireless/nl80211.c 	enabled = nla_get_flag(nla);
nla               466 net/wireless/wext-core.c 	struct nlattr *nla;
nla               567 net/wireless/wext-core.c 	nla = nla_reserve(skb, IFLA_WIRELESS, event_len);
nla               568 net/wireless/wext-core.c 	if (!nla) {
nla               572 net/wireless/wext-core.c 	event = nla_data(nla);
nla               602 net/wireless/wext-core.c 	nla = nla_reserve(compskb, IFLA_WIRELESS, event_len);
nla               603 net/wireless/wext-core.c 	if (!nla) {
nla               608 net/wireless/wext-core.c 	compat_event = nla_data(nla);
nla               854 net/xfrm/xfrm_user.c 	struct nlattr *nla;
nla               856 net/xfrm/xfrm_user.c 	nla = nla_reserve(skb, XFRMA_ALG_AUTH,
nla               858 net/xfrm/xfrm_user.c 	if (!nla)
nla               861 net/xfrm/xfrm_user.c 	algo = nla_data(nla);
nla               134 tools/lib/bpf/netlink.c 	struct nlattr *nla, *nla_xdp;
nla               156 tools/lib/bpf/netlink.c 	nla = (struct nlattr *)(((char *)&req)
nla               158 tools/lib/bpf/netlink.c 	nla->nla_type = NLA_F_NESTED | IFLA_XDP;
nla               159 tools/lib/bpf/netlink.c 	nla->nla_len = NLA_HDRLEN;
nla               162 tools/lib/bpf/netlink.c 	nla_xdp = (struct nlattr *)((char *)nla + nla->nla_len);
nla               166 tools/lib/bpf/netlink.c 	nla->nla_len += nla_xdp->nla_len;
nla               170 tools/lib/bpf/netlink.c 		nla_xdp = (struct nlattr *)((char *)nla + nla->nla_len);
nla               174 tools/lib/bpf/netlink.c 		nla->nla_len += nla_xdp->nla_len;
nla               177 tools/lib/bpf/netlink.c 	req.nh.nlmsg_len += NLA_ALIGN(nla->nla_len);
nla                24 tools/lib/bpf/nlattr.c static struct nlattr *nla_next(const struct nlattr *nla, int *remaining)
nla                26 tools/lib/bpf/nlattr.c 	int totlen = NLA_ALIGN(nla->nla_len);
nla                29 tools/lib/bpf/nlattr.c 	return (struct nlattr *) ((char *) nla + totlen);
nla                32 tools/lib/bpf/nlattr.c static int nla_ok(const struct nlattr *nla, int remaining)
nla                34 tools/lib/bpf/nlattr.c 	return remaining >= sizeof(*nla) &&
nla                35 tools/lib/bpf/nlattr.c 	       nla->nla_len >= sizeof(*nla) &&
nla                36 tools/lib/bpf/nlattr.c 	       nla->nla_len <= remaining;
nla                39 tools/lib/bpf/nlattr.c static int nla_type(const struct nlattr *nla)
nla                41 tools/lib/bpf/nlattr.c 	return nla->nla_type & NLA_TYPE_MASK;
nla                44 tools/lib/bpf/nlattr.c static int validate_nla(struct nlattr *nla, int maxtype,
nla                49 tools/lib/bpf/nlattr.c 	int type = nla_type(nla);
nla                64 tools/lib/bpf/nlattr.c 	if (libbpf_nla_len(nla) < minlen)
nla                67 tools/lib/bpf/nlattr.c 	if (pt->maxlen && libbpf_nla_len(nla) > pt->maxlen)
nla                71 tools/lib/bpf/nlattr.c 		char *data = libbpf_nla_data(nla);
nla                73 tools/lib/bpf/nlattr.c 		if (data[libbpf_nla_len(nla) - 1] != '\0')
nla               106 tools/lib/bpf/nlattr.c 	struct nlattr *nla;
nla               111 tools/lib/bpf/nlattr.c 	libbpf_nla_for_each_attr(nla, head, len, rem) {
nla               112 tools/lib/bpf/nlattr.c 		int type = nla_type(nla);
nla               118 tools/lib/bpf/nlattr.c 			err = validate_nla(nla, maxtype, policy);
nla               127 tools/lib/bpf/nlattr.c 		tb[type] = nla;
nla               149 tools/lib/bpf/nlattr.c 			    struct nlattr *nla,
nla               152 tools/lib/bpf/nlattr.c 	return libbpf_nla_parse(tb, maxtype, libbpf_nla_data(nla),
nla               153 tools/lib/bpf/nlattr.c 				libbpf_nla_len(nla), policy);
nla                69 tools/lib/bpf/nlattr.h static inline void *libbpf_nla_data(const struct nlattr *nla)
nla                71 tools/lib/bpf/nlattr.h 	return (char *) nla + NLA_HDRLEN;
nla                74 tools/lib/bpf/nlattr.h static inline uint8_t libbpf_nla_getattr_u8(const struct nlattr *nla)
nla                76 tools/lib/bpf/nlattr.h 	return *(uint8_t *)libbpf_nla_data(nla);
nla                79 tools/lib/bpf/nlattr.h static inline uint32_t libbpf_nla_getattr_u32(const struct nlattr *nla)
nla                81 tools/lib/bpf/nlattr.h 	return *(uint32_t *)libbpf_nla_data(nla);
nla                84 tools/lib/bpf/nlattr.h static inline const char *libbpf_nla_getattr_str(const struct nlattr *nla)
nla                86 tools/lib/bpf/nlattr.h 	return (const char *)libbpf_nla_data(nla);
nla                93 tools/lib/bpf/nlattr.h static inline int libbpf_nla_len(const struct nlattr *nla)
nla                95 tools/lib/bpf/nlattr.h 	return nla->nla_len - NLA_HDRLEN;
nla               101 tools/lib/bpf/nlattr.h 			    struct nlattr *nla,