Home
last modified time | relevance | path

Searched refs:addattr_l (Results 1 – 25 of 92) sorted by relevance

1234

/external/iproute2/tc/
Dq_fq.c175 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in fq_parse_opt()
179 addattr_l(n, 1024, TCA_FQ_BUCKETS_LOG, in fq_parse_opt()
183 addattr_l(n, 1024, TCA_FQ_PLIMIT, in fq_parse_opt()
186 addattr_l(n, 1024, TCA_FQ_FLOW_PLIMIT, in fq_parse_opt()
189 addattr_l(n, 1024, TCA_FQ_QUANTUM, &quantum, sizeof(quantum)); in fq_parse_opt()
191 addattr_l(n, 1024, TCA_FQ_INITIAL_QUANTUM, in fq_parse_opt()
194 addattr_l(n, 1024, TCA_FQ_RATE_ENABLE, in fq_parse_opt()
197 addattr_l(n, 1024, TCA_FQ_FLOW_MAX_RATE, in fq_parse_opt()
200 addattr_l(n, 1024, TCA_FQ_FLOW_DEFAULT_RATE, in fq_parse_opt()
203 addattr_l(n, 1024, TCA_FQ_FLOW_REFILL_DELAY, in fq_parse_opt()
[all …]
Dq_hhf.c95 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in hhf_parse_opt()
97 addattr_l(n, 1024, TCA_HHF_BACKLOG_LIMIT, &limit, in hhf_parse_opt()
100 addattr_l(n, 1024, TCA_HHF_QUANTUM, &quantum, sizeof(quantum)); in hhf_parse_opt()
102 addattr_l(n, 1024, TCA_HHF_HH_FLOWS_LIMIT, &hh_limit, in hhf_parse_opt()
105 addattr_l(n, 1024, TCA_HHF_RESET_TIMEOUT, &reset_timeout, in hhf_parse_opt()
108 addattr_l(n, 1024, TCA_HHF_ADMIT_BYTES, &admit_bytes, in hhf_parse_opt()
111 addattr_l(n, 1024, TCA_HHF_EVICT_TIMEOUT, &evict_timeout, in hhf_parse_opt()
114 addattr_l(n, 1024, TCA_HHF_NON_HH_WEIGHT, &non_hh_weight, in hhf_parse_opt()
Dq_dsmark.c72 addattr_l(n,1024,TCA_OPTIONS,NULL,0); in dsmark_parse_opt()
73 addattr_l(n,1024,TCA_DSMARK_INDICES,&ind,sizeof(ind)); in dsmark_parse_opt()
77 addattr_l(n,1024,TCA_DSMARK_DEFAULT_INDEX,&tmp,sizeof(tmp)); in dsmark_parse_opt()
79 if (set_tc_index) addattr_l(n,1024,TCA_DSMARK_SET_TC_INDEX,NULL,0); in dsmark_parse_opt()
99 addattr_l(n,1024,TCA_OPTIONS,NULL,0); in dsmark_parse_class_opt()
108 addattr_l(n,1024,TCA_DSMARK_MASK,&tmp,1); in dsmark_parse_class_opt()
117 addattr_l(n,1024,TCA_DSMARK_VALUE,&tmp,1); in dsmark_parse_class_opt()
Dq_pie.c110 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in pie_parse_opt()
112 addattr_l(n, 1024, TCA_PIE_LIMIT, &limit, sizeof(limit)); in pie_parse_opt()
114 addattr_l(n, 1024, TCA_PIE_TUPDATE, &tupdate, sizeof(tupdate)); in pie_parse_opt()
116 addattr_l(n, 1024, TCA_PIE_TARGET, &target, sizeof(target)); in pie_parse_opt()
118 addattr_l(n, 1024, TCA_PIE_ALPHA, &alpha, sizeof(alpha)); in pie_parse_opt()
120 addattr_l(n, 1024, TCA_PIE_BETA, &beta, sizeof(beta)); in pie_parse_opt()
122 addattr_l(n, 1024, TCA_PIE_ECN, &ecn, sizeof(ecn)); in pie_parse_opt()
124 addattr_l(n, 1024, TCA_PIE_BYTEMODE, &bytemode, in pie_parse_opt()
Df_tcindex.c43 addattr_l(n,4096,TCA_OPTIONS,NULL,0); in tcindex_parse_opt()
54 addattr_l(n,4096,TCA_TCINDEX_HASH,&hash,sizeof(hash)); in tcindex_parse_opt()
65 addattr_l(n,4096,TCA_TCINDEX_MASK,&mask,sizeof(mask)); in tcindex_parse_opt()
76 addattr_l(n,4096,TCA_TCINDEX_SHIFT,&shift, in tcindex_parse_opt()
82 addattr_l(n,4096,TCA_TCINDEX_FALL_THROUGH,&value, in tcindex_parse_opt()
88 addattr_l(n,4096,TCA_TCINDEX_FALL_THROUGH,&value, in tcindex_parse_opt()
99 addattr_l(n, 4096, TCA_TCINDEX_CLASSID, &handle, 4); in tcindex_parse_opt()
Dq_fq_codel.c124 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in fq_codel_parse_opt()
126 addattr_l(n, 1024, TCA_FQ_CODEL_LIMIT, &limit, sizeof(limit)); in fq_codel_parse_opt()
128 addattr_l(n, 1024, TCA_FQ_CODEL_FLOWS, &flows, sizeof(flows)); in fq_codel_parse_opt()
130 addattr_l(n, 1024, TCA_FQ_CODEL_QUANTUM, &quantum, sizeof(quantum)); in fq_codel_parse_opt()
132 addattr_l(n, 1024, TCA_FQ_CODEL_INTERVAL, &interval, sizeof(interval)); in fq_codel_parse_opt()
134 addattr_l(n, 1024, TCA_FQ_CODEL_TARGET, &target, sizeof(target)); in fq_codel_parse_opt()
136 addattr_l(n, 1024, TCA_FQ_CODEL_ECN, &ecn, sizeof(ecn)); in fq_codel_parse_opt()
138 addattr_l(n, 1024, TCA_FQ_CODEL_CE_THRESHOLD, in fq_codel_parse_opt()
Dq_codel.c112 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in codel_parse_opt()
114 addattr_l(n, 1024, TCA_CODEL_LIMIT, &limit, sizeof(limit)); in codel_parse_opt()
116 addattr_l(n, 1024, TCA_CODEL_INTERVAL, &interval, sizeof(interval)); in codel_parse_opt()
118 addattr_l(n, 1024, TCA_CODEL_TARGET, &target, sizeof(target)); in codel_parse_opt()
120 addattr_l(n, 1024, TCA_CODEL_ECN, &ecn, sizeof(ecn)); in codel_parse_opt()
122 addattr_l(n, 1024, TCA_CODEL_CE_THRESHOLD, in codel_parse_opt()
Dq_htb.c103 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in htb_parse_opt()
104 addattr_l(n, 2024, TCA_HTB_INIT, &opt, NLMSG_ALIGN(sizeof(opt))); in htb_parse_opt()
106 addattr_l(n, 2024, TCA_HTB_DIRECT_QLEN, in htb_parse_opt()
251 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in htb_parse_class_opt()
254 addattr_l(n, 1124, TCA_HTB_RATE64, &rate64, sizeof(rate64)); in htb_parse_class_opt()
257 addattr_l(n, 1224, TCA_HTB_CEIL64, &ceil64, sizeof(ceil64)); in htb_parse_class_opt()
259 addattr_l(n, 2024, TCA_HTB_PARMS, &opt, sizeof(opt)); in htb_parse_class_opt()
260 addattr_l(n, 3024, TCA_HTB_RTAB, rtab, 1024); in htb_parse_class_opt()
261 addattr_l(n, 4024, TCA_HTB_CTAB, ctab, 1024); in htb_parse_class_opt()
Dq_tbf.c233 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in tbf_parse_opt()
234 addattr_l(n, 2024, TCA_TBF_PARMS, &opt, sizeof(opt)); in tbf_parse_opt()
235 addattr_l(n, 2124, TCA_TBF_BURST, &buffer, sizeof(buffer)); in tbf_parse_opt()
237 addattr_l(n, 2124, TCA_TBF_RATE64, &rate64, sizeof(rate64)); in tbf_parse_opt()
238 addattr_l(n, 3024, TCA_TBF_RTAB, rtab, 1024); in tbf_parse_opt()
241 addattr_l(n, 3124, TCA_TBF_PRATE64, &prate64, sizeof(prate64)); in tbf_parse_opt()
242 addattr_l(n, 3224, TCA_TBF_PBURST, &mtu, sizeof(mtu)); in tbf_parse_opt()
243 addattr_l(n, 4096, TCA_TBF_PTAB, ptab, 1024); in tbf_parse_opt()
Df_route.c58 addattr_l(n, 4096, TCA_OPTIONS, NULL, 0); in route_parse_opt()
68 addattr_l(n, 4096, TCA_ROUTE4_TO, &id, 4); in route_parse_opt()
78 addattr_l(n, 4096, TCA_ROUTE4_FROM, &id, 4); in route_parse_opt()
89 addattr_l(n, 4096, TCA_ROUTE4_IIF, &id, 4); in route_parse_opt()
100 addattr_l(n, 4096, TCA_ROUTE4_CLASSID, &handle, 4); in route_parse_opt()
Dm_skbedit.c143 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_skbedit()
144 addattr_l(n, MAX_MSG, TCA_SKBEDIT_PARMS, &sel, sizeof(sel)); in parse_skbedit()
146 addattr_l(n, MAX_MSG, TCA_SKBEDIT_QUEUE_MAPPING, in parse_skbedit()
149 addattr_l(n, MAX_MSG, TCA_SKBEDIT_PRIORITY, in parse_skbedit()
152 addattr_l(n, MAX_MSG, TCA_SKBEDIT_MARK, in parse_skbedit()
Dq_netem.c472 if (addattr_l(n, 1024, TCA_OPTIONS, &opt, sizeof(opt)) < 0) in netem_parse_opt()
476 addattr_l(n, 1024, TCA_NETEM_CORR, &cor, sizeof(cor)) < 0) in netem_parse_opt()
480 addattr_l(n, 1024, TCA_NETEM_REORDER, &reorder, sizeof(reorder)) < 0) in netem_parse_opt()
484 addattr_l(n, 1024, TCA_NETEM_ECN, &present[TCA_NETEM_ECN], in netem_parse_opt()
489 addattr_l(n, 1024, TCA_NETEM_CORRUPT, &corrupt, sizeof(corrupt)) < 0) in netem_parse_opt()
497 if (addattr_l(n, 1024, NETEM_LOSS_GI, in netem_parse_opt()
501 if (addattr_l(n, 1024, NETEM_LOSS_GE, in netem_parse_opt()
514 if (addattr_l(n, 1024, in netem_parse_opt()
521 if (addattr_l(n, 1024, TCA_NETEM_RATE, &rate, sizeof(rate)) < 0) in netem_parse_opt()
526 if (addattr_l(n, MAX_DIST * sizeof(dist_data[0]), in netem_parse_opt()
Dq_cbq.c167 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in cbq_parse_opt()
168 addattr_l(n, 1024, TCA_CBQ_RATE, &r, sizeof(r)); in cbq_parse_opt()
169 addattr_l(n, 1024, TCA_CBQ_LSSOPT, &lss, sizeof(lss)); in cbq_parse_opt()
170 addattr_l(n, 3024, TCA_CBQ_RTAB, rtab, 1024); in cbq_parse_opt()
413 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in cbq_parse_class_opt()
416 addattr_l(n, 1024, TCA_CBQ_LSSOPT, &lss, sizeof(lss)); in cbq_parse_class_opt()
419 addattr_l(n, 1024, TCA_CBQ_WRROPT, &wrr, sizeof(wrr)); in cbq_parse_class_opt()
421 addattr_l(n, 1024, TCA_CBQ_FOPT, &fopt, sizeof(fopt)); in cbq_parse_class_opt()
423 addattr_l(n, 1024, TCA_CBQ_RATE, &r, sizeof(r)); in cbq_parse_class_opt()
424 addattr_l(n, 3024, TCA_CBQ_RTAB, rtab, 1024); in cbq_parse_class_opt()
Dm_action.c185 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_action()
228 addattr_l(n, MAX_MSG, ++prio, NULL, 0); in parse_action()
229 addattr_l(n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in parse_action()
427 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_action_gd()
475 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_action_gd()
476 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in tc_action_gd()
563 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_act_list_or_flush()
583 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_act_list_or_flush()
584 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in tc_act_list_or_flush()
Dm_vlan.c148 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_vlan()
149 addattr_l(n, MAX_MSG, TCA_VLAN_PARMS, &parm, sizeof(parm)); in parse_vlan()
151 addattr_l(n, MAX_MSG, TCA_VLAN_PUSH_VLAN_ID, &id, 2); in parse_vlan()
160 addattr_l(n, MAX_MSG, TCA_VLAN_PUSH_VLAN_PROTOCOL, &proto, 2); in parse_vlan()
Dm_simple.c149 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_simple()
150 addattr_l(n, MAX_MSG, TCA_DEF_PARMS, &sel, sizeof(sel)); in parse_simple()
151 addattr_l(n, MAX_MSG, TCA_DEF_DATA, simpdata, SIMP_MAX_DATA); in parse_simple()
Dq_atm.c181 addattr_l(n,1024,TCA_OPTIONS,NULL,0); in atm_parse_class_opt()
182 addattr_l(n,1024,TCA_ATM_FD,&s,sizeof(s)); in atm_parse_class_opt()
183 if (excess) addattr_l(n,1024,TCA_ATM_EXCESS,&excess,sizeof(excess)); in atm_parse_class_opt()
184 if (hdr_len != -1) addattr_l(n,1024,TCA_ATM_HDR,hdr,hdr_len); in atm_parse_class_opt()
Dq_choke.c158 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in choke_parse_opt()
159 addattr_l(n, 1024, TCA_CHOKE_PARMS, &opt, sizeof(opt)); in choke_parse_opt()
160 addattr_l(n, 1024, TCA_CHOKE_STAB, sbuf, 256); in choke_parse_opt()
162 addattr_l(n, 1024, TCA_CHOKE_MAX_P, &max_P, sizeof(max_P)); in choke_parse_opt()
/external/iproute2/ip/
Diplink.c283 addattr_l(&req->n, sizeof(*req), IFLA_VF_MAC, &ivm, sizeof(ivm)); in iplink_parse_vf()
304 addattr_l(&req->n, sizeof(*req), IFLA_VF_VLAN, &ivv, sizeof(ivv)); in iplink_parse_vf()
314 addattr_l(&req->n, sizeof(*req), in iplink_parse_vf()
344 addattr_l(&req->n, sizeof(*req), IFLA_VF_SPOOFCHK, &ivs, sizeof(ivs)); in iplink_parse_vf()
357 addattr_l(&req->n, sizeof(*req), IFLA_VF_RSS_QUERY_EN, &ivs, sizeof(ivs)); in iplink_parse_vf()
372 addattr_l(&req->n, sizeof(*req), IFLA_VF_LINK_STATE, &ivl, sizeof(ivl)); in iplink_parse_vf()
390 addattr_l(&req->n, sizeof(*req), IFLA_VF_RATE, &tivt, in iplink_parse_vf()
445 addattr_l(&req->n, sizeof(*req), IFLA_ADDRESS, abuf, len); in iplink_parse()
452 addattr_l(&req->n, sizeof(*req), IFLA_BROADCAST, abuf, len); in iplink_parse()
461 addattr_l(&req->n, sizeof(*req), IFLA_TXQLEN, &qlen, 4); in iplink_parse()
[all …]
Dlink_gre6.c284 addattr_l(n, 1024, IFLA_GRE_IFLAGS, &iflags, 2); in gre_parse_opt()
285 addattr_l(n, 1024, IFLA_GRE_OFLAGS, &oflags, 2); in gre_parse_opt()
286 addattr_l(n, 1024, IFLA_GRE_LOCAL, &laddr, sizeof(laddr)); in gre_parse_opt()
287 addattr_l(n, 1024, IFLA_GRE_REMOTE, &raddr, sizeof(raddr)); in gre_parse_opt()
290 addattr_l(n, 1024, IFLA_GRE_TTL, &hop_limit, 1); in gre_parse_opt()
291 addattr_l(n, 1024, IFLA_GRE_ENCAP_LIMIT, &encap_limit, 1); in gre_parse_opt()
292 addattr_l(n, 1024, IFLA_GRE_FLOWINFO, &flowinfo, 4); in gre_parse_opt()
293 addattr_l(n, 1024, IFLA_GRE_FLAGS, &flowinfo, 4); in gre_parse_opt()
Diplink_vlan.c58 addattr_l(n, 1024, attrtype, NULL, 0); in vlan_parse_qos_map()
73 addattr_l(n, 1024, IFLA_VLAN_QOS_MAPPING, &m, sizeof(m)); in vlan_parse_qos_map()
94 addattr_l(n, 1024, IFLA_VLAN_PROTOCOL, &proto, 2); in vlan_parse_opt()
99 addattr_l(n, 1024, IFLA_VLAN_ID, &id, 2); in vlan_parse_opt()
160 addattr_l(n, 1024, IFLA_VLAN_FLAGS, &flags, sizeof(flags)); in vlan_parse_opt()
Diplink_ipoib.c54 addattr_l(n, 1024, IFLA_IPOIB_PKEY, &pkey, 2); in ipoib_parse_opt()
63 addattr_l(n, 1024, IFLA_IPOIB_MODE, &mode, 2); in ipoib_parse_opt()
68 addattr_l(n, 1024, IFLA_IPOIB_UMCAST, &umcast, 2); in ipoib_parse_opt()
Diplink_vxlan.c258 addattr_l(n, 1024, IFLA_VXLAN_GROUP, &gaddr, 4); in vxlan_parse_opt()
260 addattr_l(n, 1024, IFLA_VXLAN_GROUP, &daddr, 4); in vxlan_parse_opt()
262 addattr_l(n, 1024, IFLA_VXLAN_GROUP6, &gaddr6, sizeof(struct in6_addr)); in vxlan_parse_opt()
264 addattr_l(n, 1024, IFLA_VXLAN_GROUP6, &daddr6, sizeof(struct in6_addr)); in vxlan_parse_opt()
267 addattr_l(n, 1024, IFLA_VXLAN_LOCAL, &saddr, 4); in vxlan_parse_opt()
269 addattr_l(n, 1024, IFLA_VXLAN_LOCAL6, &saddr6, sizeof(struct in6_addr)); in vxlan_parse_opt()
294 addattr_l(n, 1024, IFLA_VXLAN_PORT_RANGE, in vxlan_parse_opt()
300 addattr_l(n, 1024, IFLA_VXLAN_GBP, NULL, 0); in vxlan_parse_opt()
Dlink_gre.c320 addattr_l(n, 1024, IFLA_GRE_IFLAGS, &iflags, 2); in gre_parse_opt()
321 addattr_l(n, 1024, IFLA_GRE_OFLAGS, &oflags, 2); in gre_parse_opt()
322 addattr_l(n, 1024, IFLA_GRE_LOCAL, &saddr, 4); in gre_parse_opt()
323 addattr_l(n, 1024, IFLA_GRE_REMOTE, &daddr, 4); in gre_parse_opt()
324 addattr_l(n, 1024, IFLA_GRE_PMTUDISC, &pmtudisc, 1); in gre_parse_opt()
327 addattr_l(n, 1024, IFLA_GRE_TTL, &ttl, 1); in gre_parse_opt()
328 addattr_l(n, 1024, IFLA_GRE_TOS, &tos, 1); in gre_parse_opt()
335 addattr_l(n, 1024, IFLA_GRE_COLLECT_METADATA, NULL, 0); in gre_parse_opt()
Diplink_hsr.c55 addattr_l(n, 1024, IFLA_HSR_MULTICAST_SPEC, in hsr_parse_opt()
62 addattr_l(n, 1024, IFLA_HSR_SLAVE1, &ifindex, 4); in hsr_parse_opt()
68 addattr_l(n, 1024, IFLA_HSR_SLAVE2, &ifindex, 4); in hsr_parse_opt()

1234