/net/sched/ |
H A D | sch_fifo.c | 143 struct nlattr *nla; local 150 nla = kmalloc(nla_attr_size(sizeof(struct tc_fifo_qopt)), GFP_KERNEL); 151 if (nla) { 152 nla->nla_type = RTM_NEWQDISC; 153 nla->nla_len = nla_attr_size(sizeof(struct tc_fifo_qopt)); 154 ((struct tc_fifo_qopt *)nla_data(nla))->limit = limit; 156 ret = q->ops->change(q, nla); 157 kfree(nla);
|
H A D | act_gact.c | 61 static int tcf_gact_init(struct net *net, struct nlattr *nla, argument 75 if (nla == NULL) 78 err = nla_parse_nested(tb, TCA_GACT_MAX, nla, gact_policy);
|
H A D | act_simple.c | 98 static int tcf_simp_init(struct net *net, struct nlattr *nla, argument 109 if (nla == NULL) 112 err = nla_parse_nested(tb, TCA_DEF_MAX, nla, simple_policy);
|
H A D | act_skbedit.c | 70 static int tcf_skbedit_init(struct net *net, struct nlattr *nla, argument 82 if (nla == NULL) 85 err = nla_parse_nested(tb, TCA_SKBEDIT_MAX, nla, skbedit_policy);
|
H A D | act_ipt.c | 105 static int tcf_ipt_init(struct net *net, struct nlattr *nla, struct nlattr *est, argument 117 if (nla == NULL) 120 err = nla_parse_nested(tb, TCA_IPT_MAX, nla, ipt_policy);
|
H A D | act_mirred.c | 65 static int tcf_mirred_init(struct net *net, struct nlattr *nla, argument 76 if (nla == NULL) 78 ret = nla_parse_nested(tb, TCA_MIRRED_MAX, nla, mirred_policy);
|
H A D | act_nat.c | 47 static int tcf_nat_init(struct net *net, struct nlattr *nla, struct nlattr *est, argument 56 if (nla == NULL) 59 err = nla_parse_nested(tb, TCA_NAT_MAX, nla, nat_policy);
|
H A D | act_pedit.c | 41 static int tcf_pedit_init(struct net *net, struct nlattr *nla, argument 53 if (nla == NULL) 56 err = nla_parse_nested(tb, TCA_PEDIT_MAX, nla, pedit_policy);
|
H A D | ematch.c | 175 struct tcf_ematch *em, struct nlattr *nla, int idx) 178 struct tcf_ematch_hdr *em_hdr = nla_data(nla); 179 int data_len = nla_len(nla) - sizeof(*em_hdr); 289 * @nla: ematch tree configuration TLV 293 * This function validates the given configuration TLV @nla and builds an 301 int tcf_em_tree_validate(struct tcf_proto *tp, struct nlattr *nla, argument 311 if (!nla) 314 err = nla_parse_nested(tb, TCA_EMATCH_TREE_MAX, nla, em_policy); 173 tcf_em_validate(struct tcf_proto *tp, struct tcf_ematch_tree_hdr *tree_hdr, struct tcf_ematch *em, struct nlattr *nla, int idx) argument
|
H A D | act_csum.c | 54 static int tcf_csum_init(struct net *n, struct nlattr *nla, struct nlattr *est, argument 63 if (nla == NULL) 66 err = nla_parse_nested(tb, TCA_CSUM_MAX, nla, csum_policy);
|
H A D | act_police.c | 144 static int tcf_act_police_locate(struct net *net, struct nlattr *nla, argument 156 if (nla == NULL) 159 err = nla_parse_nested(tb, TCA_POLICE_MAX, nla, police_policy);
|
H A D | em_meta.c | 561 static int meta_var_change(struct meta_value *dst, struct nlattr *nla) argument 563 int len = nla_len(nla); 565 dst->val = (unsigned long)kmemdup(nla_data(nla), len, GFP_KERNEL); 614 static int meta_int_change(struct meta_value *dst, struct nlattr *nla) argument 616 if (nla_len(nla) >= sizeof(unsigned long)) { 617 dst->val = *(unsigned long *) nla_data(nla); 619 } else if (nla_len(nla) == sizeof(u32)) { 620 dst->val = nla_get_u32(nla); 751 static inline int meta_change_data(struct meta_value *dst, struct nlattr *nla) argument 753 if (nla) { [all...] |
H A D | act_api.c | 488 struct tc_action *tcf_action_init_1(struct net *net, struct nlattr *nla, argument 500 err = nla_parse_nested(tb, TCA_ACT_MAX, nla, NULL); 548 err = a_o->init(net, nla, est, a, ovr, bind); 570 struct tc_action *tcf_action_init(struct net *net, struct nlattr *nla, argument 579 err = nla_parse_nested(tb, TCA_ACT_MAX_PRIO, nla, NULL); 700 tcf_action_get_1(struct nlattr *nla, struct nlmsghdr *n, u32 portid) argument 707 err = nla_parse_nested(tb, TCA_ACT_MAX, nla, NULL); 766 static int tca_action_flush(struct net *net, struct nlattr *nla, argument 794 err = nla_parse_nested(tb, TCA_ACT_MAX, nla, NULL); 845 tca_action_gd(struct net *net, struct nlattr *nla, struc argument 957 tcf_action_add(struct net *net, struct nlattr *nla, struct nlmsghdr *n, u32 portid, int ovr) argument 1040 struct nlattr *nla[TCAA_MAX + 1]; local [all...] |
/net/openvswitch/ |
H A D | vport.c | 299 struct nlattr *nla; local 305 nla = nla_nest_start(skb, OVS_VPORT_ATTR_OPTIONS); 306 if (!nla) 311 nla_nest_cancel(skb, nla); 315 nla_nest_end(skb, nla);
|
/net/wimax/ |
H A D | op-msg.c | 187 struct nlattr *nla; local 189 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 191 if (nla == NULL) { 195 *size = nla_len(nla); 196 return nla_data(nla); 209 struct nlattr *nla; local 211 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 213 if (nla == NULL) { 217 return nla_data(nla); 230 struct nlattr *nla; local [all...] |
/net/core/ |
H A D | drop_monitor.c | 81 struct nlattr *nla; local 94 nla = nla_reserve(skb, NLA_UNSPEC, 96 msg = nla_data(nla); 138 struct nlattr *nla; local 153 nla = genlmsg_data(nlmsg_data(nlh)); 154 msg = nla_data(nla); 167 nla->nla_len += NLA_ALIGN(sizeof(struct net_dm_drop_point));
|
H A D | filter.c | 355 struct nlattr *nla; local 362 nla = nla_find((struct nlattr *)&skb->data[A], 364 if (nla) 365 A = (void *)nla - (void *)skb->data; 371 struct nlattr *nla; local 378 nla = (struct nlattr *)&skb->data[A]; 379 if (nla->nla_len > A - skb->len) 382 nla = nla_find_nested(nla, X); 383 if (nla) [all...] |
H A D | fib_rules.c | 184 static inline kuid_t fib_nl_uid(struct nlattr *nla) argument 186 return make_kuid(current_user_ns(), nla_get_u32(nla));
|
/net/netlabel/ |
H A D | netlabel_cipso_v4.c | 104 struct nlattr *nla; local 115 nla_for_each_nested(nla, info->attrs[NLBL_CIPSOV4_A_TAGLST], nla_rem) 116 if (nla_type(nla) == NLBL_CIPSOV4_A_TAG) { 119 doi_def->tags[iter++] = nla_get_u8(nla);
|
/net/netfilter/ |
H A D | nf_conntrack_proto_dccp.c | 635 static int dccp_to_nlattr(struct sk_buff *skb, struct nlattr *nla, argument
|
H A D | nf_conntrack_proto_sctp.c | 489 static int sctp_to_nlattr(struct sk_buff *skb, struct nlattr *nla, argument
|
/net/wireless/ |
H A D | wext-core.c | 435 struct nlattr *nla; local 536 nla = nla_reserve(skb, IFLA_WIRELESS, event_len); 537 if (!nla) { 541 event = nla_data(nla); 571 nla = nla_reserve(compskb, IFLA_WIRELESS, event_len); 572 if (!nla) { 577 compat_event = nla_data(nla);
|
/net/ipv4/ |
H A D | fib_frontend.c | 338 struct nlattr *nla; local 340 nla = (struct nlattr *) ((char *) mx + len); 341 nla->nla_type = type; 342 nla->nla_len = nla_attr_size(4); 343 *(u32 *) nla_data(nla) = value;
|
H A D | fib_semantics.c | 482 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); local 484 nla = nla_find(attrs, attrlen, RTA_GATEWAY); 485 nexthop_nh->nh_gw = nla ? nla_get_be32(nla) : 0; 487 nla = nla_find(attrs, attrlen, RTA_FLOW); 488 nexthop_nh->nh_tclassid = nla ? nla_get_u32(nla) : 0; 537 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); local 539 nla = nla_find(attrs, attrlen, RTA_GATEWAY); 540 if (nla 847 struct nlattr *nla; local [all...] |
/net/netfilter/ipset/ |
H A D | ip_set_core.c | 271 flag_nested(const struct nlattr *nla) argument 273 return nla->nla_type & NLA_F_NESTED; 283 ip_set_get_ipaddr4(struct nlattr *nla, __be32 *ipaddr) argument 287 if (unlikely(!flag_nested(nla))) 289 if (nla_parse_nested(tb, IPSET_ATTR_IPADDR_MAX, nla, ipaddr_policy)) 300 ip_set_get_ipaddr6(struct nlattr *nla, union nf_inet_addr *ipaddr) argument 304 if (unlikely(!flag_nested(nla))) 307 if (nla_parse_nested(tb, IPSET_ATTR_IPADDR_MAX, nla, ipaddr_policy)) 1361 const struct nlattr *nla; local 1392 nla_for_each_nested(nla, att 1415 const struct nlattr *nla; local [all...] |