Home
last modified time | relevance | path

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

12345

/external/iproute2/tc/
Dq_fq.c185 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in fq_parse_opt()
189 addattr_l(n, 1024, TCA_FQ_BUCKETS_LOG, in fq_parse_opt()
193 addattr_l(n, 1024, TCA_FQ_PLIMIT, in fq_parse_opt()
196 addattr_l(n, 1024, TCA_FQ_FLOW_PLIMIT, in fq_parse_opt()
199 addattr_l(n, 1024, TCA_FQ_QUANTUM, &quantum, sizeof(quantum)); in fq_parse_opt()
201 addattr_l(n, 1024, TCA_FQ_INITIAL_QUANTUM, in fq_parse_opt()
204 addattr_l(n, 1024, TCA_FQ_RATE_ENABLE, in fq_parse_opt()
207 addattr_l(n, 1024, TCA_FQ_FLOW_MAX_RATE, in fq_parse_opt()
210 addattr_l(n, 1024, TCA_FQ_LOW_RATE_THRESHOLD, in fq_parse_opt()
213 addattr_l(n, 1024, TCA_FQ_FLOW_DEFAULT_RATE, in fq_parse_opt()
[all …]
Dm_ife.c182 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_ife()
183 addattr_l(n, MAX_MSG, TCA_IFE_PARMS, &p, sizeof(p)); in parse_ife()
189 addattr_l(n, MAX_MSG, TCA_IFE_DMAC, dbuf, ETH_ALEN); in parse_ife()
191 addattr_l(n, MAX_MSG, TCA_IFE_TYPE, &ife_type, 2); in parse_ife()
195 addattr_l(n, MAX_MSG, TCA_IFE_SMAC, sbuf, ETH_ALEN); in parse_ife()
198 addattr_l(n, MAX_MSG, TCA_IFE_METALST, NULL, 0); in parse_ife()
201 addattr_l(n, MAX_MSG, IFE_META_SKBMARK, &ife_mark_v, 4); in parse_ife()
203 addattr_l(n, MAX_MSG, IFE_META_SKBMARK, NULL, 0); in parse_ife()
207 addattr_l(n, MAX_MSG, IFE_META_PRIO, &ife_prio_v, 4); in parse_ife()
209 addattr_l(n, MAX_MSG, IFE_META_PRIO, NULL, 0); in parse_ife()
[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_pie.c108 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in pie_parse_opt()
110 addattr_l(n, 1024, TCA_PIE_LIMIT, &limit, sizeof(limit)); in pie_parse_opt()
112 addattr_l(n, 1024, TCA_PIE_TUPDATE, &tupdate, sizeof(tupdate)); in pie_parse_opt()
114 addattr_l(n, 1024, TCA_PIE_TARGET, &target, sizeof(target)); in pie_parse_opt()
116 addattr_l(n, 1024, TCA_PIE_ALPHA, &alpha, sizeof(alpha)); in pie_parse_opt()
118 addattr_l(n, 1024, TCA_PIE_BETA, &beta, sizeof(beta)); in pie_parse_opt()
120 addattr_l(n, 1024, TCA_PIE_ECN, &ecn, sizeof(ecn)); in pie_parse_opt()
122 addattr_l(n, 1024, TCA_PIE_BYTEMODE, &bytemode, in pie_parse_opt()
Dq_dsmark.c68 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in dsmark_parse_opt()
69 addattr_l(n, 1024, TCA_DSMARK_INDICES, &ind, sizeof(ind)); in dsmark_parse_opt()
73 addattr_l(n, 1024, TCA_DSMARK_DEFAULT_INDEX, &tmp, sizeof(tmp)); in dsmark_parse_opt()
75 if (set_tc_index) addattr_l(n, 1024, TCA_DSMARK_SET_TC_INDEX, NULL, 0); in dsmark_parse_opt()
95 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in dsmark_parse_class_opt()
104 addattr_l(n, 1024, TCA_DSMARK_MASK, &tmp, 1); in dsmark_parse_class_opt()
112 addattr_l(n, 1024, TCA_DSMARK_VALUE, &tmp, 1); in dsmark_parse_class_opt()
Df_tcindex.c41 addattr_l(n, 4096, TCA_OPTIONS, NULL, 0); in tcindex_parse_opt()
52 addattr_l(n, 4096, TCA_TCINDEX_HASH, &hash, in tcindex_parse_opt()
63 addattr_l(n, 4096, TCA_TCINDEX_MASK, &mask, in tcindex_parse_opt()
74 addattr_l(n, 4096, TCA_TCINDEX_SHIFT, &shift, in tcindex_parse_opt()
79 addattr_l(n, 4096, TCA_TCINDEX_FALL_THROUGH, &value, in tcindex_parse_opt()
84 addattr_l(n, 4096, TCA_TCINDEX_FALL_THROUGH, &value, in tcindex_parse_opt()
94 addattr_l(n, 4096, TCA_TCINDEX_CLASSID, &handle, 4); in tcindex_parse_opt()
Dq_fq_codel.c131 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in fq_codel_parse_opt()
133 addattr_l(n, 1024, TCA_FQ_CODEL_LIMIT, &limit, sizeof(limit)); in fq_codel_parse_opt()
135 addattr_l(n, 1024, TCA_FQ_CODEL_FLOWS, &flows, sizeof(flows)); in fq_codel_parse_opt()
137 addattr_l(n, 1024, TCA_FQ_CODEL_QUANTUM, &quantum, sizeof(quantum)); in fq_codel_parse_opt()
139 addattr_l(n, 1024, TCA_FQ_CODEL_INTERVAL, &interval, sizeof(interval)); in fq_codel_parse_opt()
141 addattr_l(n, 1024, TCA_FQ_CODEL_TARGET, &target, sizeof(target)); in fq_codel_parse_opt()
143 addattr_l(n, 1024, TCA_FQ_CODEL_ECN, &ecn, sizeof(ecn)); in fq_codel_parse_opt()
145 addattr_l(n, 1024, TCA_FQ_CODEL_CE_THRESHOLD, in fq_codel_parse_opt()
148 addattr_l(n, 1024, TCA_FQ_CODEL_MEMORY_LIMIT, in fq_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()
249 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in htb_parse_class_opt()
252 addattr_l(n, 1124, TCA_HTB_RATE64, &rate64, sizeof(rate64)); in htb_parse_class_opt()
255 addattr_l(n, 1224, TCA_HTB_CEIL64, &ceil64, sizeof(ceil64)); in htb_parse_class_opt()
257 addattr_l(n, 2024, TCA_HTB_PARMS, &opt, sizeof(opt)); in htb_parse_class_opt()
258 addattr_l(n, 3024, TCA_HTB_RTAB, rtab, 1024); in htb_parse_class_opt()
259 addattr_l(n, 4024, TCA_HTB_CTAB, ctab, 1024); in htb_parse_class_opt()
Dm_skbedit.c146 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_skbedit()
147 addattr_l(n, MAX_MSG, TCA_SKBEDIT_PARMS, &sel, sizeof(sel)); in parse_skbedit()
149 addattr_l(n, MAX_MSG, TCA_SKBEDIT_QUEUE_MAPPING, in parse_skbedit()
152 addattr_l(n, MAX_MSG, TCA_SKBEDIT_PRIORITY, in parse_skbedit()
155 addattr_l(n, MAX_MSG, TCA_SKBEDIT_MARK, in parse_skbedit()
158 addattr_l(n, MAX_MSG, TCA_SKBEDIT_PTYPE, in parse_skbedit()
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_tbf.c235 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in tbf_parse_opt()
236 addattr_l(n, 2024, TCA_TBF_PARMS, &opt, sizeof(opt)); in tbf_parse_opt()
237 addattr_l(n, 2124, TCA_TBF_BURST, &buffer, sizeof(buffer)); in tbf_parse_opt()
239 addattr_l(n, 2124, TCA_TBF_RATE64, &rate64, sizeof(rate64)); in tbf_parse_opt()
240 addattr_l(n, 3024, TCA_TBF_RTAB, rtab, 1024); in tbf_parse_opt()
243 addattr_l(n, 3124, TCA_TBF_PRATE64, &prate64, sizeof(prate64)); in tbf_parse_opt()
244 addattr_l(n, 3224, TCA_TBF_PBURST, &mtu, sizeof(mtu)); in tbf_parse_opt()
245 addattr_l(n, 4096, TCA_TBF_PTAB, ptab, 1024); in tbf_parse_opt()
Df_route.c55 addattr_l(n, 4096, TCA_OPTIONS, NULL, 0); in route_parse_opt()
66 addattr_l(n, 4096, TCA_ROUTE4_TO, &id, 4); in route_parse_opt()
77 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()
101 addattr_l(n, 4096, TCA_ROUTE4_CLASSID, &handle, 4); in route_parse_opt()
Dq_netem.c467 if (addattr_l(n, 1024, TCA_OPTIONS, &opt, sizeof(opt)) < 0) in netem_parse_opt()
471 addattr_l(n, 1024, TCA_NETEM_CORR, &cor, sizeof(cor)) < 0) in netem_parse_opt()
475 addattr_l(n, 1024, TCA_NETEM_REORDER, &reorder, sizeof(reorder)) < 0) in netem_parse_opt()
479 addattr_l(n, 1024, TCA_NETEM_ECN, &present[TCA_NETEM_ECN], in netem_parse_opt()
484 addattr_l(n, 1024, TCA_NETEM_CORRUPT, &corrupt, sizeof(corrupt)) < 0) in netem_parse_opt()
492 if (addattr_l(n, 1024, NETEM_LOSS_GI, in netem_parse_opt()
496 if (addattr_l(n, 1024, NETEM_LOSS_GE, in netem_parse_opt()
509 if (addattr_l(n, 1024, in netem_parse_opt()
516 if (addattr_l(n, 1024, TCA_NETEM_RATE, &rate, sizeof(rate)) < 0) in netem_parse_opt()
521 if (addattr_l(n, MAX_DIST * sizeof(dist_data[0]), in netem_parse_opt()
Dq_cbq.c165 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in cbq_parse_opt()
166 addattr_l(n, 1024, TCA_CBQ_RATE, &r, sizeof(r)); in cbq_parse_opt()
167 addattr_l(n, 1024, TCA_CBQ_LSSOPT, &lss, sizeof(lss)); in cbq_parse_opt()
168 addattr_l(n, 3024, TCA_CBQ_RTAB, rtab, 1024); in cbq_parse_opt()
409 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in cbq_parse_class_opt()
412 addattr_l(n, 1024, TCA_CBQ_LSSOPT, &lss, sizeof(lss)); in cbq_parse_class_opt()
415 addattr_l(n, 1024, TCA_CBQ_WRROPT, &wrr, sizeof(wrr)); in cbq_parse_class_opt()
417 addattr_l(n, 1024, TCA_CBQ_FOPT, &fopt, sizeof(fopt)); in cbq_parse_class_opt()
419 addattr_l(n, 1024, TCA_CBQ_RATE, &r, sizeof(r)); in cbq_parse_class_opt()
420 addattr_l(n, 3024, TCA_CBQ_RTAB, rtab, 1024); in cbq_parse_class_opt()
Dm_action.c173 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_action()
217 addattr_l(n, MAX_MSG, ++prio, NULL, 0); in parse_action()
218 addattr_l(n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in parse_action()
252 addattr_l(n, MAX_MSG, TCA_ACT_COOKIE, in parse_action()
463 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_action_gd()
511 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_action_gd()
512 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in tc_action_gd()
597 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_act_list_or_flush()
626 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_act_list_or_flush()
627 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in tc_act_list_or_flush()
[all …]
Dm_skbmod.c147 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_skbmod()
148 addattr_l(n, MAX_MSG, TCA_SKBMOD_PARMS, &p, sizeof(p)); in parse_skbmod()
151 addattr_l(n, MAX_MSG, TCA_SKBMOD_DMAC, dbuf, ETH_ALEN); in parse_skbmod()
155 addattr_l(n, MAX_MSG, TCA_SKBMOD_SMAC, sbuf, ETH_ALEN); in parse_skbmod()
Dm_simple.c151 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_simple()
152 addattr_l(n, MAX_MSG, TCA_DEF_PARMS, &sel, sizeof(sel)); in parse_simple()
154 addattr_l(n, MAX_MSG, TCA_DEF_DATA, simpdata, SIMP_MAX_DATA); in parse_simple()
Dq_choke.c156 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in choke_parse_opt()
157 addattr_l(n, 1024, TCA_CHOKE_PARMS, &opt, sizeof(opt)); in choke_parse_opt()
158 addattr_l(n, 1024, TCA_CHOKE_STAB, sbuf, 256); in choke_parse_opt()
160 addattr_l(n, 1024, TCA_CHOKE_MAX_P, &max_P, sizeof(max_P)); in choke_parse_opt()
Dq_atm.c170 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in atm_parse_class_opt()
171 addattr_l(n, 1024, TCA_ATM_FD, &s, sizeof(s)); in atm_parse_class_opt()
172 if (excess) addattr_l(n, 1024, TCA_ATM_EXCESS, &excess, sizeof(excess)); in atm_parse_class_opt()
173 if (hdr_len != -1) addattr_l(n, 1024, TCA_ATM_HDR, hdr, hdr_len); in atm_parse_class_opt()
Dm_vlan.c161 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_vlan()
162 addattr_l(n, MAX_MSG, TCA_VLAN_PARMS, &parm, sizeof(parm)); in parse_vlan()
164 addattr_l(n, MAX_MSG, TCA_VLAN_PUSH_VLAN_ID, &id, 2); in parse_vlan()
173 addattr_l(n, MAX_MSG, TCA_VLAN_PUSH_VLAN_PROTOCOL, &proto, 2); in parse_vlan()
/external/iproute2/ip/
Diplink.c372 addattr_l(&req->n, sizeof(*req), IFLA_VF_MAC, in iplink_parse_vf()
385 addattr_l(&req->n, sizeof(*req), in iplink_parse_vf()
392 addattr_l(&req->n, sizeof(*req), in iplink_parse_vf()
404 addattr_l(&req->n, sizeof(*req), in iplink_parse_vf()
419 addattr_l(&req->n, sizeof(*req), in iplink_parse_vf()
449 addattr_l(&req->n, sizeof(*req), IFLA_VF_SPOOFCHK, in iplink_parse_vf()
463 addattr_l(&req->n, sizeof(*req), IFLA_VF_RSS_QUERY_EN, in iplink_parse_vf()
477 addattr_l(&req->n, sizeof(*req), IFLA_VF_TRUST, in iplink_parse_vf()
493 addattr_l(&req->n, sizeof(*req), IFLA_VF_LINK_STATE, in iplink_parse_vf()
504 addattr_l(&req->n, sizeof(*req), IFLA_VF_IB_NODE_GUID, in iplink_parse_vf()
[all …]
Diplink_hsr.c58 addattr_l(n, 1024, IFLA_HSR_MULTICAST_SPEC, in hsr_parse_opt()
65 addattr_l(n, 1024, IFLA_HSR_VERSION, in hsr_parse_opt()
72 addattr_l(n, 1024, IFLA_HSR_SLAVE1, &ifindex, 4); in hsr_parse_opt()
78 addattr_l(n, 1024, IFLA_HSR_SLAVE2, &ifindex, 4); in hsr_parse_opt()
Diplink_vxlan.c145 addattr_l(n, 1024, IFLA_VXLAN_LOCAL, &saddr, 4); in vxlan_parse_opt()
147 addattr_l(n, 1024, IFLA_VXLAN_LOCAL6, &saddr6, in vxlan_parse_opt()
236 addattr_l(n, 1024, IFLA_VXLAN_PORT_RANGE, in vxlan_parse_opt()
328 addattr_l(n, 1024, IFLA_VXLAN_GBP, NULL, 0); in vxlan_parse_opt()
331 addattr_l(n, 1024, IFLA_VXLAN_GPE, NULL, 0); in vxlan_parse_opt()
372 addattr_l(n, 1024, IFLA_VXLAN_GROUP, &gaddr, 4); in vxlan_parse_opt()
374 addattr_l(n, 1024, IFLA_VXLAN_GROUP, &daddr, 4); in vxlan_parse_opt()
376 addattr_l(n, 1024, IFLA_VXLAN_GROUP6, &gaddr6, sizeof(struct in6_addr)); in vxlan_parse_opt()
378 addattr_l(n, 1024, IFLA_VXLAN_GROUP6, &daddr6, sizeof(struct in6_addr)); in vxlan_parse_opt()
380 addattr_l(n, 1024, IFLA_VXLAN_GROUP, &daddr, 4); in vxlan_parse_opt()
[all …]
Diplink_vlan.c60 addattr_l(n, 1024, attrtype, NULL, 0); in vlan_parse_qos_map()
75 addattr_l(n, 1024, IFLA_VLAN_QOS_MAPPING, &m, sizeof(m)); in vlan_parse_qos_map()
96 addattr_l(n, 1024, IFLA_VLAN_PROTOCOL, &proto, 2); in vlan_parse_opt()
101 addattr_l(n, 1024, IFLA_VLAN_ID, &id, 2); in vlan_parse_opt()
162 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()

12345