/linux-master/drivers/block/drbd/ |
H A D | drbd_nla.c | 7 static int drbd_nla_check_mandatory(int maxtype, struct nlattr *nla) argument 9 struct nlattr *head = nla_data(nla); 10 int len = nla_len(nla); 21 nla_for_each_attr(nla, head, len, rem) { 22 if (nla->nla_type & DRBD_GENLA_F_MANDATORY) { 23 nla->nla_type &= ~DRBD_GENLA_F_MANDATORY; 24 if (nla_type(nla) > maxtype) 31 int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, argument 36 err = drbd_nla_check_mandatory(maxtype, nla); 38 err = nla_parse_nested_deprecated(tb, maxtype, nla, polic 44 drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) argument [all...] |
H A D | drbd_nla.h | 5 extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, 7 extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
|
/linux-master/tools/lib/bpf/ |
H A D | nlattr.h | 82 * @nla: netlink attribute 84 static inline void *libbpf_nla_data(const struct nlattr *nla) argument 86 return (void *)nla + NLA_HDRLEN; 89 static inline uint8_t libbpf_nla_getattr_u8(const struct nlattr *nla) argument 91 return *(uint8_t *)libbpf_nla_data(nla); 94 static inline uint16_t libbpf_nla_getattr_u16(const struct nlattr *nla) argument 96 return *(uint16_t *)libbpf_nla_data(nla); 99 static inline uint32_t libbpf_nla_getattr_u32(const struct nlattr *nla) argument 101 return *(uint32_t *)libbpf_nla_data(nla); 104 static inline uint64_t libbpf_nla_getattr_u64(const struct nlattr *nla) argument 109 libbpf_nla_getattr_str(const struct nlattr *nla) argument 118 libbpf_nla_len(const struct nlattr *nla) argument 131 nla_data(struct nlattr *nla) argument 144 struct nlattr *nla; local [all...] |
H A D | nlattr.c | 25 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) argument 27 int totlen = NLA_ALIGN(nla->nla_len); 30 return (struct nlattr *)((void *)nla + totlen); 33 static int nla_ok(const struct nlattr *nla, int remaining) argument 35 return remaining >= (int)sizeof(*nla) && 36 nla->nla_len >= sizeof(*nla) && 37 nla->nla_len <= remaining; 40 static int nla_type(const struct nlattr *nla) argument 42 return nla 45 validate_nla(struct nlattr *nla, int maxtype, struct libbpf_nla_policy *policy) argument 107 struct nlattr *nla; local 149 libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, struct libbpf_nla_policy *policy) argument [all...] |
/linux-master/lib/ |
H A D | nlattr.c | 66 static int validate_nla_bitfield32(const struct nlattr *nla, argument 69 const struct nla_bitfield32 *bf = nla_data(nla); 171 const struct nlattr *nla, 180 value = nla_get_u8(nla); 183 value = nla_get_u16(nla); 186 value = nla_get_u32(nla); 189 value = nla_get_u64(nla); 192 value = nla_get_uint(nla); 195 value = nla_get_u64(nla); 198 value = nla_len(nla); 170 nla_validate_range_unsigned(const struct nla_policy *pt, const struct nlattr *nla, struct netlink_ext_ack *extack, unsigned int validate) argument 287 nla_validate_int_range_signed(const struct nla_policy *pt, const struct nlattr *nla, struct netlink_ext_ack *extack) argument 325 nla_validate_int_range(const struct nla_policy *pt, const struct nlattr *nla, struct netlink_ext_ack *extack, unsigned int validate) argument 353 nla_validate_mask(const struct nla_policy *pt, const struct nlattr *nla, struct netlink_ext_ack *extack) argument 393 validate_nla(const struct nlattr *nla, int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack, unsigned int depth) argument 610 const struct nlattr *nla; local 747 const struct nlattr *nla; local 772 nla_strscpy(char *dst, const struct nlattr *nla, size_t dstsize) argument 808 nla_strdup(const struct nlattr *nla, gfp_t flags) argument 854 nla_memcmp(const struct nlattr *nla, const void *data, size_t size) argument 871 nla_strcmp(const struct nlattr *nla, const char *str) argument 904 struct nlattr *nla; local 1038 struct nlattr *nla; local 1059 struct nlattr *nla; local [all...] |
/linux-master/net/ipv4/ |
H A D | metrics.c | 15 struct nlattr *nla; local 18 nla_for_each_attr(nla, fc_mx, fc_mx_len, remaining) { 19 int type = nla_type(nla); 33 nla_strscpy(tmp, nla, sizeof(tmp)); 40 if (nla_len(nla) != sizeof(u32)) { 41 NL_SET_ERR_MSG_ATTR(extack, nla, 45 val = nla_get_u32(nla);
|
/linux-master/include/net/ |
H A D | netlink.h | 84 * <- nla_len(nla) -> ^ 85 * nla_data(nla)----^ | 86 * nla_next(nla)-----------------------------' 118 * nla_nest_end(skb, nla) finalize a nested attribute 119 * nla_nest_cancel(skb, nla) cancel nested attribute construction 127 * nla_data(nla) head of attribute payload 128 * nla_len(nla) length of attribute payload 131 * nla_get_uint(nla) get payload for a uint attribute 132 * nla_get_sint(nla) get payload for a sint attribute 133 * nla_get_u8(nla) ge 1222 nla_type(const struct nlattr *nla) argument 1231 nla_data(const struct nlattr *nla) argument 1240 nla_len(const struct nlattr *nla) argument 1250 nla_ok(const struct nlattr *nla, int remaining) argument 1265 nla_next(const struct nlattr *nla, int *remaining) argument 1281 nla_find_nested(const struct nlattr *nla, int attrtype) argument 1296 nla_parse_nested(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 1320 nla_parse_nested_deprecated(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack) argument 1678 nla_get_u32(const struct nlattr *nla) argument 1687 nla_get_be32(const struct nlattr *nla) argument 1696 nla_get_le32(const struct nlattr *nla) argument 1705 nla_get_u16(const struct nlattr *nla) argument 1714 nla_get_be16(const struct nlattr *nla) argument 1723 nla_get_le16(const struct nlattr *nla) argument 1732 nla_get_u8(const struct nlattr *nla) argument 1741 nla_get_u64(const struct nlattr *nla) argument 1754 nla_get_uint(const struct nlattr *nla) argument 1765 nla_get_be64(const struct nlattr *nla) argument 1778 nla_get_le64(const struct nlattr *nla) argument 1787 nla_get_s32(const struct nlattr *nla) argument 1796 nla_get_s16(const struct nlattr *nla) argument 1805 nla_get_s8(const struct nlattr *nla) argument 1814 nla_get_s64(const struct nlattr *nla) argument 1827 nla_get_sint(const struct nlattr *nla) argument 1838 nla_get_flag(const struct nlattr *nla) argument 1849 nla_get_msecs(const struct nlattr *nla) argument 1860 nla_get_in_addr(const struct nlattr *nla) argument 1869 nla_get_in6_addr(const struct nlattr *nla) argument 1881 nla_get_bitfield32(const struct nlattr *nla) argument 2087 nla_is_last(const struct nlattr *nla, int rem) argument [all...] |
H A D | bpf_sk_storage.h | 47 bpf_sk_storage_diag_alloc(const struct nlattr *nla) argument
|
/linux-master/include/linux/ |
H A D | genl_magic_func.h | 100 * nla is supposed to point to the attribute containing the information 102 #define DPRINT_FIELD(dir, nla_type, name, s, nla) \ 106 else if (nla) \ 109 : nla_data(nla)); \ 112 #define DPRINT_ARRAY(dir, nla_type, name, s, nla) \ 117 else if (nla) \ 119 nla_data(nla), nla_len(nla)); \ 123 #define DPRINT_FIELD(dir, nla_type, name, s, nla) do {} while (0) 124 #define DPRINT_ARRAY(dir, nla_type, name, s, nla) d [all...] |
/linux-master/net/sched/ |
H A D | sch_fifo.c | 229 struct nlattr *nla; local 239 nla = kmalloc(nla_attr_size(sizeof(struct tc_fifo_qopt)), GFP_KERNEL); 240 if (nla) { 241 nla->nla_type = RTM_NEWQDISC; 242 nla->nla_len = nla_attr_size(sizeof(struct tc_fifo_qopt)); 243 ((struct tc_fifo_qopt *)nla_data(nla))->limit = limit; 245 ret = q->ops->change(q, nla, NULL); 246 kfree(nla);
|
H A D | act_bpf.c | 102 struct nlattr *nla; local 107 nla = nla_reserve(skb, TCA_ACT_BPF_OPS, prog->bpf_num_ops * 109 if (nla == NULL) 112 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); 120 struct nlattr *nla; local 129 nla = nla_reserve(skb, TCA_ACT_BPF_TAG, sizeof(prog->filter->tag)); 130 if (nla == NULL) 133 memcpy(nla_data(nla), prog->filter->tag, nla_len(nla)); 279 tcf_bpf_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **act, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) argument [all...] |
H A D | act_tunnel_key.c | 88 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, argument 97 nla, geneve_opt_policy, extack); 140 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, argument 146 err = nla_parse_nested(tb, TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX, nla, 167 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, argument 174 err = nla_parse_nested(tb, TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX, nla, 206 nla = tb[TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_INDEX]; 207 md->u.index = nla_get_be32(nla); 209 nla = tb[TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_DIR]; 210 md->u.md2.dir = nla_get_u8(nla); 219 tunnel_key_copy_opts(const struct nlattr *nla, u8 *dst, int dst_len, struct netlink_ext_ack *extack) argument 292 tunnel_key_get_opts_len(struct nlattr *nla, struct netlink_ext_ack *extack) argument 298 tunnel_key_opts_set(struct nlattr *nla, struct ip_tunnel_info *info, int opts_len, struct netlink_ext_ack *extack) argument 357 tunnel_key_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, struct tcf_proto *tp, u32 act_flags, struct netlink_ext_ack *extack) argument [all...] |
H A D | ematch.c | 171 struct tcf_ematch *em, struct nlattr *nla, int idx) 174 struct tcf_ematch_hdr *em_hdr = nla_data(nla); 175 int data_len = nla_len(nla) - sizeof(*em_hdr); 293 * @nla: ematch tree configuration TLV 297 * This function validates the given configuration TLV @nla and builds an 305 int tcf_em_tree_validate(struct tcf_proto *tp, struct nlattr *nla, argument 315 if (!nla) 318 err = nla_parse_nested_deprecated(tb, TCA_EMATCH_TREE_MAX, nla, 169 tcf_em_validate(struct tcf_proto *tp, struct tcf_ematch_tree_hdr *tree_hdr, struct tcf_ematch *em, struct nlattr *nla, int idx) argument
|
/linux-master/net/netfilter/ |
H A D | nf_tables_api.c | 137 const struct nlattr * const *nla) 144 ctx->nla = nla; 430 if (ctx->nla[NFTA_CHAIN_ID]) { 432 ntohl(nla_get_be32(ctx->nla[NFTA_CHAIN_ID])); 503 if (msg_type == NFT_MSG_NEWRULE && ctx->nla[NFTA_RULE_ID] != NULL) { 505 ntohl(nla_get_be32(ctx->nla[NFTA_RULE_ID])); 569 if (msg_type == NFT_MSG_NEWSET && ctx->nla[NFTA_SET_ID] && !desc) { 571 ntohl(nla_get_be32(ctx->nla[NFTA_SET_ID])); 788 const struct nlattr *nla, 130 nft_ctx_init(struct nft_ctx *ctx, struct net *net, const struct sk_buff *skb, const struct nlmsghdr *nlh, u8 family, struct nft_table *table, struct nft_chain *chain, const struct nlattr * const *nla) argument 787 nft_table_lookup(const struct net *net, const struct nlattr *nla, u8 family, u8 genmask, u32 nlpid) argument 814 nft_table_lookup_byhandle(const struct net *net, const struct nlattr *nla, int family, u8 genmask, u32 nlpid) argument 855 __nf_tables_chain_type_lookup(const struct nlattr *nla, u8 family) argument 925 nf_tables_chain_type_lookup(struct net *net, const struct nlattr *nla, u8 family, bool autoload) argument 1110 nf_tables_gettable(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 1375 nf_tables_newtable(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 1543 const struct nlattr * const *nla = ctx->nla; local 1573 nf_tables_deltable(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 1678 nft_chain_lookup(struct net *net, struct nft_table *table, const struct nlattr *nla, u8 genmask) argument 1966 nf_tables_getchain(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 2247 nft_chain_parse_hook(struct net *net, struct nft_base_chain *basechain, const struct nlattr * const nla[], struct nft_chain_hook *hook, u8 family, u32 flags, struct netlink_ext_ack *extack) argument 2447 const struct nlattr * const *nla = ctx->nla; local 2593 const struct nlattr * const *nla = ctx->nla; local 2768 nft_chain_lookup_byid(const struct net *net, const struct nft_table *table, const struct nlattr *nla, u8 genmask) argument 2788 nf_tables_newchain(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 2894 const struct nlattr * const *nla = ctx->nla; local 2942 nf_tables_delchain(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 3066 __nft_expr_type_get(u8 family, struct nlattr *nla) argument 3083 nft_expr_type_request_module(struct net *net, u8 family, struct nlattr *nla) argument 3094 nft_expr_type_get(struct net *net, u8 family, struct nlattr *nla) argument 3177 nf_tables_expr_parse(const struct nft_ctx *ctx, const struct nlattr *nla, struct nft_expr_info *info) argument 3231 nft_expr_inner_parse(const struct nft_ctx *ctx, const struct nlattr *nla, struct nft_expr_info *info) argument 3298 nft_expr_init(const struct nft_ctx *ctx, const struct nlattr *nla) argument 3377 nft_rule_lookup(const struct nft_chain *chain, const struct nlattr *nla) argument 3647 const struct nlattr * const *nla = cb->data; local 3686 nf_tables_getrule_single(u32 portid, const struct nfnl_info *info, const struct nlattr * const nla[], bool reset) argument 3732 nf_tables_getrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 3758 nf_tables_getrule_reset(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 3943 nf_tables_newrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 4181 nft_rule_lookup_byid(const struct net *net, const struct nft_chain *chain, const struct nlattr *nla) argument 4198 nf_tables_delrule(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 4397 nft_set_lookup(const struct nft_table *table, const struct nlattr *nla, u8 genmask) argument 4413 nft_set_lookup_byhandle(const struct nft_table *table, const struct nlattr *nla, u8 genmask) argument 4427 nft_set_lookup_byid(const struct net *net, const struct nft_table *table, const struct nlattr *nla, u8 genmask) argument 4525 nf_msecs_to_jiffies64(const struct nlattr *nla, u64 *result) argument 4790 nf_tables_getset(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 4880 nft_set_desc_concat(struct nft_set_desc *desc, const struct nlattr *nla) argument 4909 nf_tables_set_desc_parse(struct nft_set_desc *desc, const struct nlattr *nla) argument 4928 nft_set_expr_alloc(struct nft_ctx *ctx, struct nft_set *set, const struct nlattr * const *nla, struct nft_expr **exprs, int *num_exprs, u32 flags) argument 5009 nf_tables_newset(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 5343 nf_tables_delset(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 6124 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; local 6178 nft_set_dump_ctx_init(struct nft_set_dump_ctx *dump_ctx, const struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[], bool reset) argument 6212 nf_tables_getsetelem(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 6255 nf_tables_getsetelem_reset(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 6755 nft_setelem_valid_key_end(const struct nft_set *set, struct nlattr **nla, u32 flags) argument 6778 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; local 7149 nf_tables_newsetelem(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 7263 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; local 7437 nf_tables_delsetelem(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 7527 nft_obj_lookup(const struct net *net, const struct nft_table *table, const struct nlattr *nla, u32 objtype, u8 genmask) argument 7561 nft_obj_lookup_byhandle(const struct nft_table *table, const struct nlattr *nla, u32 objtype, u8 genmask) argument 7733 nf_tables_newobj(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 7969 const struct nlattr * const *nla = cb->data; local 7998 nf_tables_getobj(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 8087 nf_tables_delobj(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 8228 nft_flowtable_lookup(const struct nft_table *table, const struct nlattr *nla, u8 genmask) argument 8260 nft_flowtable_lookup_byhandle(const struct nft_table *table, const struct nlattr *nla, u8 genmask) argument 8285 nft_flowtable_parse_hook(const struct nft_ctx *ctx, const struct nlattr * const nla[], struct nft_flowtable_hook *flowtable_hook, struct nft_flowtable *flowtable, struct netlink_ext_ack *extack, bool add) argument 8491 const struct nlattr * const *nla = ctx->nla; local 8561 nf_tables_newflowtable(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 8708 const struct nlattr * const *nla = ctx->nla; local 8753 nf_tables_delflowtable(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 8926 const struct nlattr * const *nla = cb->data; local 8960 nf_tables_getflowtable(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 9172 nf_tables_getgen(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument 11114 nft_verdict_init(const struct nft_ctx *ctx, struct nft_data *data, struct nft_data_desc *desc, const struct nlattr *nla) argument 11220 nft_value_init(const struct nft_ctx *ctx, struct nft_data *data, struct nft_data_desc *desc, const struct nlattr *nla) argument 11268 nft_data_init(const struct nft_ctx *ctx, struct nft_data *data, struct nft_data_desc *desc, const struct nlattr *nla) argument [all...] |
H A D | nft_log.c | 151 const struct nlattr *nla; local 164 nla = tb[NFTA_LOG_PREFIX]; 165 if (nla != NULL) { 166 priv->prefix = kmalloc(nla_len(nla) + 1, GFP_KERNEL); 169 nla_strscpy(priv->prefix, nla, nla_len(nla) + 1);
|
H A D | nfnetlink_hook.c | 346 const struct nlattr * const *nla = cb->data; local 354 hooknum = ntohl(nla_get_be32(nla[NFNLA_HOOK_HOOKNUM])); 359 if (!nla[NFNLA_HOOK_DEV]) 362 nla_strscpy(name, nla[NFNLA_HOOK_DEV], sizeof(name)); 395 const struct nlattr * const nla[]) 397 if (!nla[NFNLA_HOOK_HOOKNUM]) 406 .data = (void *)nla, 393 nfnl_hook_get(struct sk_buff *skb, const struct nfnl_info *info, const struct nlattr * const nla[]) argument
|
/linux-master/net/xfrm/ |
H A D | xfrm_compat.c | 292 const struct nlattr *nla, *attrs; local 303 nla_for_each_attr(nla, attrs, len, remaining) { 308 err = xfrm_nla_cpy(dst, nla, nla_len(nla)); 311 err = xfrm_xlate64_attr(dst, nla); 403 struct nlattr *nla; local 415 nla = dst + *pos; 417 memcpy(nla, src, nla_attr_size(copy_len)); 418 nla->nla_len = nla_attr_size(payload); 420 nlmsg->nlmsg_len += nla 428 xfrm_xlate32_attr(void *dst, const struct nlattr *nla, size_t *pos, size_t size, struct netlink_ext_ack *extack) argument [all...] |
/linux-master/drivers/net/vxlan/ |
H A D | vxlan_private.h | 89 const struct nlattr *nla) 91 if (nla_len(nla) >= sizeof(struct in6_addr)) { 92 ip->sin6.sin6_addr = nla_get_in6_addr(nla); 95 } else if (nla_len(nla) >= sizeof(__be32)) { 96 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); 130 const struct nlattr *nla) 132 if (nla_len(nla) >= sizeof(struct in6_addr)) { 134 } else if (nla_len(nla) >= sizeof(__be32)) { 135 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); 88 vxlan_nla_get_addr(union vxlan_addr *ip, const struct nlattr *nla) argument 129 vxlan_nla_get_addr(union vxlan_addr *ip, const struct nlattr *nla) argument
|
/linux-master/net/openvswitch/ |
H A D | vport.c | 313 struct nlattr *nla; local 331 nla = nla_nest_start_noflag(skb, OVS_VPORT_ATTR_UPCALL_STATS); 332 if (!nla) 337 nla_nest_cancel(skb, nla); 343 nla_nest_cancel(skb, nla); 346 nla_nest_end(skb, nla); 369 struct nlattr *nla; local 375 nla = nla_nest_start_noflag(skb, OVS_VPORT_ATTR_OPTIONS); 376 if (!nla) 381 nla_nest_cancel(skb, nla); [all...] |
H A D | meter.c | 235 struct nlattr *nla; local 250 nla = nla_nest_start_noflag(reply, OVS_METER_ATTR_BANDS); 251 if (!nla) 266 nla_nest_end(reply, nla); 277 struct nlattr *nla, *band_nla; local 303 nla = nla_nest_start_noflag(reply, OVS_METER_ATTR_BANDS); 304 if (!nla) 314 nla_nest_end(reply, nla); 328 struct nlattr *nla; local 339 nla_for_each_nested(nla, [all...] |
H A D | flow_netlink.c | 55 struct nlattr *nla; local 58 nla_for_each_nested(nla, actions, rem) { 59 u16 action = nla_type(nla); 473 const struct nlattr *nla; local 478 nla_for_each_nested(nla, attr, rem) { 479 u16 type = nla_type(nla); 501 if (!check_attr_len(nla_len(nla), expected_len)) { 503 type, nla_len(nla), expected_len); 507 if (!nz || !is_all_zero(nla_data(nla), nla_len(nla))) { 859 struct nlattr *nla; local 950 struct nlattr *nla; local 1763 struct nlattr *nla; local 2016 struct nlattr *nla; local 2269 struct nlattr *nla; local 3734 struct nlattr *nla; local [all...] |
/linux-master/net/psample/ |
H A D | psample.c | 292 struct nlattr *nla; local 295 nla = nla_nest_start_noflag(skb, PSAMPLE_ATTR_TUNNEL); 296 if (!nla) 301 nla_nest_cancel(skb, nla); 305 nla_nest_end(skb, nla); 469 struct nlattr *nla; local 471 nla = skb_put(nl_skb, nla_len); 472 nla->nla_type = PSAMPLE_ATTR_DATA; 473 nla->nla_len = nla_attr_size(data_len); 475 if (skb_copy_bits(skb, 0, nla_data(nla), data_le [all...] |
/linux-master/net/ipv6/ |
H A D | rpl_iptunnel.c | 67 static int rpl_build_state(struct net *net, struct nlattr *nla, argument 81 err = nla_parse_nested(tb, RPL_IPTUNNEL_MAX, nla, 300 struct nlattr *nla; local 305 nla = nla_reserve(skb, attrtype, len); 306 if (!nla) 309 data = nla_data(nla);
|
/linux-master/net/handshake/ |
H A D | tlshd.c | 66 struct nlattr *nla; local 70 nla_for_each_attr(nla, head, len, rem) { 71 if (nla_type(nla) == HANDSHAKE_A_DONE_REMOTE_AUTH) 80 nla_for_each_attr(nla, head, len, rem) { 81 if (nla_type(nla) == HANDSHAKE_A_DONE_REMOTE_AUTH) 82 treq->th_peerid[i++] = nla_get_u32(nla);
|
/linux-master/net/mpls/ |
H A D | af_mpls.c | 720 static int nla_get_via(const struct nlattr *nla, u8 *via_alen, u8 *via_table, argument 723 struct rtvia *via = nla_data(nla); 727 if (nla_len(nla) < offsetof(struct rtvia, rtvia_addr)) { 728 NL_SET_ERR_MSG_ATTR(extack, nla, 732 alen = nla_len(nla) - 735 NL_SET_ERR_MSG_ATTR(extack, nla, 847 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); local 852 nla = nla_find(attrs, attrlen, RTA_VIA); 853 if (nla && nla_len(nla) > 1104 struct nlattr *nla; local 1687 struct nlattr *nla; local 1707 struct nlattr *nla; local 1726 nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels, u32 label[], struct netlink_ext_ack *extack) argument 1877 struct nlattr *nla = tb[index]; local [all...] |