/external/iproute2/tc/ |
D | q_dsmark.c | 72 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()
|
D | f_tcindex.c | 43 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()
|
D | f_route.c | 58 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()
|
D | m_skbedit.c | 143 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()
|
D | q_cbq.c | 167 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()
|
D | m_action.c | 185 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()
|
D | q_htb.c | 95 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()
|
D | q_netem.c | 446 if (addattr_l(n, 1024, TCA_OPTIONS, &opt, sizeof(opt)) < 0) in netem_parse_opt() 450 addattr_l(n, 1024, TCA_NETEM_CORR, &cor, sizeof(cor)) < 0) in netem_parse_opt() 454 addattr_l(n, 1024, TCA_NETEM_REORDER, &reorder, sizeof(reorder)) < 0) in netem_parse_opt() 458 addattr_l(n, 1024, TCA_NETEM_CORRUPT, &corrupt, sizeof(corrupt)) < 0) in netem_parse_opt() 466 if (addattr_l(n, 1024, NETEM_LOSS_GI, in netem_parse_opt() 470 if (addattr_l(n, 1024, NETEM_LOSS_GE, in netem_parse_opt() 482 addattr_l(n, 1024, TCA_NETEM_RATE, &rate, sizeof(rate)) < 0) in netem_parse_opt() 486 if (addattr_l(n, MAX_DIST * sizeof(dist_data[0]), in netem_parse_opt()
|
D | q_atm.c | 181 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()
|
D | q_choke.c | 158 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()
|
D | m_xt.c | 225 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_ipt() 241 addattr_l(n, MAX_MSG, TCA_IPT_TABLE, k, size); in parse_ipt() 242 addattr_l(n, MAX_MSG, TCA_IPT_HOOK, &hook, 4); in parse_ipt() 243 addattr_l(n, MAX_MSG, TCA_IPT_INDEX, &index, 4); in parse_ipt() 245 addattr_l(n, MAX_MSG, TCA_IPT_TARG, m->t, m->t->u.target_size); in parse_ipt()
|
D | q_gred.c | 110 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() 253 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in gred_parse_opt() 254 addattr_l(n, 1024, TCA_GRED_PARMS, &opt, sizeof(opt)); in gred_parse_opt() 255 addattr_l(n, 1024, TCA_GRED_STAB, sbuf, 256); in gred_parse_opt()
|
D | q_red.c | 148 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in red_parse_opt() 149 addattr_l(n, 1024, TCA_RED_PARMS, &opt, sizeof(opt)); in red_parse_opt() 150 addattr_l(n, 1024, TCA_RED_STAB, sbuf, 256); in red_parse_opt() 152 addattr_l(n, 1024, TCA_RED_MAX_P, &max_P, sizeof(max_P)); in red_parse_opt()
|
D | q_hfsc.c | 102 addattr_l(n, 1024, TCA_OPTIONS, &qopt, sizeof(qopt)); in hfsc_parse_opt() 214 addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); in hfsc_parse_class_opt() 216 addattr_l(n, 1024, TCA_HFSC_RSC, &rsc, sizeof(rsc)); in hfsc_parse_class_opt() 218 addattr_l(n, 1024, TCA_HFSC_FSC, &fsc, sizeof(fsc)); in hfsc_parse_class_opt() 220 addattr_l(n, 1024, TCA_HFSC_USC, &usc, sizeof(usc)); in hfsc_parse_class_opt()
|
D | f_rsvp.c | 192 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()
|
D | f_fw.c | 65 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()
|
D | m_xt_old.c | 311 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_ipt() 327 addattr_l(n, MAX_MSG, TCA_IPT_TABLE, k, size); in parse_ipt() 328 addattr_l(n, MAX_MSG, TCA_IPT_HOOK, &hook, 4); in parse_ipt() 329 addattr_l(n, MAX_MSG, TCA_IPT_INDEX, &index, 4); in parse_ipt() 331 addattr_l(n, MAX_MSG, TCA_IPT_TARG, m->t, m->t->u.target_size); in parse_ipt()
|
D | tc_qdisc.c | 136 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()
|
D | q_tbf.c | 209 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()
|
D | m_gact.c | 191 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()
|
/external/iproute2/ip/ |
D | iplink.c | 212 addattr_l(&req->n, sizeof(*req), IFLA_VF_MAC, &ivm, sizeof(ivm)); in iplink_parse_vf() 233 addattr_l(&req->n, sizeof(*req), IFLA_VF_VLAN, &ivv, sizeof(ivv)); in iplink_parse_vf() 241 addattr_l(&req->n, sizeof(*req), IFLA_VF_TX_RATE, &ivt, sizeof(ivt)); in iplink_parse_vf() 253 addattr_l(&req->n, sizeof(*req), IFLA_VF_SPOOFCHK, &ivs, sizeof(ivs)); in iplink_parse_vf() 304 addattr_l(&req->n, sizeof(*req), IFLA_ADDRESS, abuf, len); in iplink_parse() 311 addattr_l(&req->n, sizeof(*req), IFLA_BROADCAST, abuf, len); in iplink_parse() 320 addattr_l(&req->n, sizeof(*req), IFLA_TXQLEN, &qlen, 4); in iplink_parse() 327 addattr_l(&req->n, sizeof(*req), IFLA_MTU, &mtu, 4); in iplink_parse() 333 addattr_l(&req->n, sizeof(*req), IFLA_NET_NS_FD, &netns, 4); in iplink_parse() 335 addattr_l(&req->n, sizeof(*req), IFLA_NET_NS_PID, &netns, 4); in iplink_parse() [all …]
|
D | link_gre.c | 256 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()
|
D | iplink_vlan.c | 51 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()
|
D | link_veth.c | 41 addattr_l(hdr, 1024, VETH_INFO_PEER, NULL, 0); in veth_parse_opt() 54 addattr_l(hdr, 1024, IFLA_IFNAME, name, len); in veth_parse_opt()
|
/external/iproute2/lib/ |
D | libnetlink.c | 525 return addattr_l(n, maxlen, type, NULL, 0); in addattr() 530 return addattr_l(n, maxlen, type, &data, sizeof(__u8)); in addattr8() 535 return addattr_l(n, maxlen, type, &data, sizeof(__u16)); in addattr16() 540 return addattr_l(n, maxlen, type, &data, sizeof(__u32)); in addattr32() 545 return addattr_l(n, maxlen, type, &data, sizeof(__u64)); in addattr64() 550 return addattr_l(n, maxlen, type, str, strlen(str)+1); in addattrstrz() 553 int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, in addattr_l() function 588 addattr_l(n, maxlen, type, NULL, 0); in addattr_nest() 603 addattr_l(n, maxlen, type, data, len); in addattr_nest_compat()
|