Home
last modified time | relevance | path

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

123

/external/iproute2/tc/
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()
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()
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_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()
Dq_htb.c95 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in htb_parse_opt()
96 addattr_l(n, 2024, TCA_HTB_INIT, &opt, NLMSG_ALIGN(sizeof(opt))); in htb_parse_opt()
233 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in htb_parse_class_opt()
234 addattr_l(n, 2024, TCA_HTB_PARMS, &opt, sizeof(opt)); in htb_parse_class_opt()
235 addattr_l(n, 3024, TCA_HTB_RTAB, rtab, 1024); in htb_parse_class_opt()
236 addattr_l(n, 4024, TCA_HTB_CTAB, ctab, 1024); in htb_parse_class_opt()
Dm_action.c185 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_action()
224 addattr_l(n, MAX_MSG, ++prio, NULL, 0); in parse_action()
225 addattr_l(n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in parse_action()
406 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_action_gd()
454 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_action_gd()
455 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in tc_action_gd()
542 addattr_l(&req.n, MAX_MSG, TCA_ACT_TAB, NULL, 0); in tc_act_list_or_flush()
562 addattr_l(&req.n, MAX_MSG, ++prio, NULL, 0); in tc_act_list_or_flush()
563 addattr_l(&req.n, MAX_MSG, TCA_ACT_KIND, k, strlen(k) + 1); in tc_act_list_or_flush()
Dq_gred.c110 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in init_gred()
111 addattr_l(n, 1024, TCA_GRED_DPS, &opt, sizeof(struct tc_gred_sopt)); in init_gred()
248 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in gred_parse_opt()
249 addattr_l(n, 1024, TCA_GRED_PARMS, &opt, sizeof(opt)); in gred_parse_opt()
250 addattr_l(n, 1024, TCA_GRED_STAB, sbuf, 256); in gred_parse_opt()
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()
Dm_xt.c224 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_ipt()
240 addattr_l(n, MAX_MSG, TCA_IPT_TABLE, k, size); in parse_ipt()
241 addattr_l(n, MAX_MSG, TCA_IPT_HOOK, &hook, 4); in parse_ipt()
242 addattr_l(n, MAX_MSG, TCA_IPT_INDEX, &index, 4); in parse_ipt()
244 addattr_l(n, MAX_MSG, TCA_IPT_TARG, m->t, m->t->u.target_size); in parse_ipt()
Dq_hfsc.c98 addattr_l(n, 1024, TCA_OPTIONS, &qopt, sizeof(qopt)); in hfsc_parse_opt()
210 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in hfsc_parse_class_opt()
212 addattr_l(n, 1024, TCA_HFSC_RSC, &rsc, sizeof(rsc)); in hfsc_parse_class_opt()
214 addattr_l(n, 1024, TCA_HFSC_FSC, &fsc, sizeof(fsc)); in hfsc_parse_class_opt()
216 addattr_l(n, 1024, TCA_HFSC_USC, &usc, sizeof(usc)); in hfsc_parse_class_opt()
Dq_netem.c278 if (addattr_l(n, 1024, TCA_OPTIONS, &opt, sizeof(opt)) < 0) in netem_parse_opt()
282 addattr_l(n, 1024, TCA_NETEM_CORR, &cor, sizeof(cor)) < 0) in netem_parse_opt()
286 addattr_l(n, 1024, TCA_NETEM_REORDER, &reorder, sizeof(reorder)) < 0) in netem_parse_opt()
290 addattr_l(n, 1024, TCA_NETEM_CORRUPT, &corrupt, sizeof(corrupt)) < 0) in netem_parse_opt()
294 if (addattr_l(n, MAX_DIST * sizeof(dist_data[0]), in netem_parse_opt()
Df_fw.c65 addattr_l(n, 4096, TCA_OPTIONS, NULL, 0); in fw_parse_opt()
79 addattr_l(n, 4096, TCA_FW_CLASSID, &handle, 4); in fw_parse_opt()
104 addattr_l(n, MAX_MSG, TCA_FW_INDEV, d, strlen(d) + 1); in fw_parse_opt()
Df_rsvp.c192 addattr_l(n, 4096, TCA_OPTIONS, NULL, 0); in rsvp_parse_opt()
202 addattr_l(n, 4096, TCA_RSVP_DST, &addr.data, addr.bytelen); in rsvp_parse_opt()
214 addattr_l(n, 4096, TCA_RSVP_SRC, &addr.data, addr.bytelen); in rsvp_parse_opt()
236 addattr_l(n, 4096, TCA_RSVP_CLASSID, &handle, 4); in rsvp_parse_opt()
253 addattr_l(n, 4096, TCA_RSVP_CLASSID, &tid, 4); in rsvp_parse_opt()
283 addattr_l(n, 4096, TCA_RSVP_PINFO, &pinfo, sizeof(pinfo)); in rsvp_parse_opt()
Dtc_qdisc.c136 addattr_l(&req.n, sizeof(req), TCA_KIND, k, strlen(k)+1); in tc_qdisc_modify()
138 addattr_l(&req.n, sizeof(req), TCA_RATE, &est, sizeof(est)); in tc_qdisc_modify()
166 addattr_l(&req.n, sizeof(req), TCA_STAB, NULL, 0); in tc_qdisc_modify()
167 addattr_l(&req.n, sizeof(req), TCA_STAB_BASE, &stab.szopts, in tc_qdisc_modify()
170 addattr_l(&req.n, sizeof(req), TCA_STAB_DATA, stab.data, in tc_qdisc_modify()
Dm_xt_old.c313 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_ipt()
329 addattr_l(n, MAX_MSG, TCA_IPT_TABLE, k, size); in parse_ipt()
330 addattr_l(n, MAX_MSG, TCA_IPT_HOOK, &hook, 4); in parse_ipt()
331 addattr_l(n, MAX_MSG, TCA_IPT_INDEX, &index, 4); in parse_ipt()
333 addattr_l(n, MAX_MSG, TCA_IPT_TARG, m->t, m->t->u.target_size); in parse_ipt()
Dq_tbf.c209 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in tbf_parse_opt()
210 addattr_l(n, 2024, TCA_TBF_PARMS, &opt, sizeof(opt)); in tbf_parse_opt()
211 addattr_l(n, 3024, TCA_TBF_RTAB, rtab, 1024); in tbf_parse_opt()
213 addattr_l(n, 4096, TCA_TBF_PTAB, ptab, 1024); in tbf_parse_opt()
Dq_red.c139 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in red_parse_opt()
140 addattr_l(n, 1024, TCA_RED_PARMS, &opt, sizeof(opt)); in red_parse_opt()
141 addattr_l(n, 1024, TCA_RED_STAB, sbuf, 256); in red_parse_opt()
Dm_gact.c191 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_gact()
192 addattr_l(n, MAX_MSG, TCA_GACT_PARMS, &p, sizeof (p)); in parse_gact()
195 addattr_l(n, MAX_MSG, TCA_GACT_PROB, &pp, sizeof (pp)); in parse_gact()
Dq_drr.c60 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in drr_parse_class_opt()
69 addattr_l(n, 1024, TCA_DRR_QUANTUM, &tmp, sizeof(tmp)); in drr_parse_class_opt()
Dm_police.c297 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in act_parse_police()
298 addattr_l(n, MAX_MSG, TCA_POLICE_TBF, &p, sizeof(p)); in act_parse_police()
300 addattr_l(n, MAX_MSG, TCA_POLICE_RATE, rtab, 1024); in act_parse_police()
302 addattr_l(n, MAX_MSG, TCA_POLICE_PEAKRATE, ptab, 1024); in act_parse_police()
/external/iproute2/ip/
Diplink.c197 addattr_l(&req->n, sizeof(*req), IFLA_VF_MAC, &ivm, sizeof(ivm)); in iplink_parse_vf()
218 addattr_l(&req->n, sizeof(*req), IFLA_VF_VLAN, &ivv, sizeof(ivv)); in iplink_parse_vf()
226 addattr_l(&req->n, sizeof(*req), IFLA_VF_TX_RATE, &ivt, sizeof(ivt)); in iplink_parse_vf()
276 addattr_l(&req->n, sizeof(*req), IFLA_ADDRESS, abuf, len); in iplink_parse()
283 addattr_l(&req->n, sizeof(*req), IFLA_BROADCAST, abuf, len); in iplink_parse()
292 addattr_l(&req->n, sizeof(*req), IFLA_TXQLEN, &qlen, 4); in iplink_parse()
299 addattr_l(&req->n, sizeof(*req), IFLA_MTU, &mtu, 4); in iplink_parse()
306 addattr_l(&req->n, sizeof(*req), IFLA_NET_NS_PID, &netns, 4); in iplink_parse()
382 addattr_l(&req->n, sizeof(*req), IFLA_IFALIAS, in iplink_parse()
430 addattr_l(&req.n, sizeof(req), IFLA_LINKINFO, NULL, 0); in iplink_modify()
[all …]
Dlink_gre.c256 addattr_l(n, 1024, IFLA_GRE_IFLAGS, &iflags, 2); in gre_parse_opt()
257 addattr_l(n, 1024, IFLA_GRE_OFLAGS, &oflags, 2); in gre_parse_opt()
258 addattr_l(n, 1024, IFLA_GRE_LOCAL, &saddr, 4); in gre_parse_opt()
259 addattr_l(n, 1024, IFLA_GRE_REMOTE, &daddr, 4); in gre_parse_opt()
260 addattr_l(n, 1024, IFLA_GRE_PMTUDISC, &pmtudisc, 1); in gre_parse_opt()
263 addattr_l(n, 1024, IFLA_GRE_TTL, &ttl, 1); in gre_parse_opt()
264 addattr_l(n, 1024, IFLA_GRE_TOS, &tos, 1); in gre_parse_opt()
Diplink_vlan.c51 addattr_l(n, 1024, attrtype, NULL, 0); in vlan_parse_qos_map()
66 addattr_l(n, 1024, IFLA_VLAN_QOS_MAPPING, &m, sizeof(m)); in vlan_parse_qos_map()
87 addattr_l(n, 1024, IFLA_VLAN_ID, &id, 2); in vlan_parse_opt()
139 addattr_l(n, 1024, IFLA_VLAN_FLAGS, &flags, sizeof(flags)); in vlan_parse_opt()
Dlink_veth.c40 addattr_l(hdr, 1024, VETH_INFO_PEER, NULL, 0); in veth_parse_opt()
53 addattr_l(hdr, 1024, IFLA_IFNAME, name, len); in veth_parse_opt()

123