/external/ltp/testcases/open_posix_testsuite/functional/mqueues/ |
D | send_rev_2.c | 31 #define MAX_MSG 3 macro 35 char r_msg_ptr_1[MAX_MSG][MSG_SIZE]; 36 char r_msg_ptr_2[MAX_MSG][MSG_SIZE]; 45 for (i = 0; i < MAX_MSG; i++) { in send_1() 63 for (i = 0; i < MAX_MSG; i++) { in send_2() 80 for (i = 0; i < MAX_MSG; i++) { in receive_1() 97 for (i = 0; i < MAX_MSG; i++) { in receive_2() 116 mqstat.mq_maxmsg = MAX_MSG; in main()
|
D | send_rev_1.c | 26 #define MAX_MSG 3 macro 31 char r_msg_ptr[MAX_MSG][MSG_SIZE]; in main() 40 mqstat.mq_maxmsg = MAX_MSG; in main() 61 for (i = 0; i < MAX_MSG && ret_code == PTS_PASS; i++) { in main() 79 for (i = 0; i < MAX_MSG && ret_code == PTS_PASS; i++) { in main()
|
/external/iproute2/tc/ |
D | m_ife.c | 182 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 …]
|
D | m_action.c | 173 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() 450 char buf[MAX_MSG]; in tc_action_gd() 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() 514 addattr32(&req.n, MAX_MSG, TCA_ACT_INDEX, i); in tc_action_gd() 525 if (rtnl_talk(&rth, &req.n, ans, MAX_MSG) < 0) { in tc_action_gd() [all …]
|
D | f_bpf.c | 60 addattr16(nl, MAX_MSG, TCA_BPF_OPS_LEN, ops_len); in bpf_cbpf_cb() 61 addattr_l(nl, MAX_MSG, TCA_BPF_OPS, ops, in bpf_cbpf_cb() 67 addattr32(nl, MAX_MSG, TCA_BPF_FD, fd); in bpf_ebpf_cb() 68 addattrstrz(nl, MAX_MSG, TCA_BPF_NAME, annotation); in bpf_ebpf_cb() 99 addattr_l(n, MAX_MSG, TCA_OPTIONS, NULL, 0); in bpf_parse_opt() 126 addattr32(n, MAX_MSG, TCA_BPF_CLASSID, handle); in bpf_parse_opt() 164 addattr32(n, MAX_MSG, TCA_BPF_FLAGS_GEN, bpf_gen_flags); in bpf_parse_opt() 166 addattr32(n, MAX_MSG, TCA_BPF_FLAGS, bpf_flags); in bpf_parse_opt()
|
D | m_skbedit.c | 146 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()
|
D | m_bpf.c | 58 addattr16(nl, MAX_MSG, TCA_ACT_BPF_OPS_LEN, ops_len); in bpf_cbpf_cb() 59 addattr_l(nl, MAX_MSG, TCA_ACT_BPF_OPS, ops, in bpf_cbpf_cb() 65 addattr32(nl, MAX_MSG, TCA_ACT_BPF_FD, fd); in bpf_ebpf_cb() 66 addattrstrz(nl, MAX_MSG, TCA_ACT_BPF_NAME, annotation); in bpf_ebpf_cb() 94 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in bpf_parse_opt() 141 addattr_l(n, MAX_MSG, TCA_ACT_BPF_PARMS, &parm, sizeof(parm)); in bpf_parse_opt()
|
D | f_flower.c | 97 addattr_l(n, MAX_MSG, addr_type, addr, sizeof(addr)); in flower_parse_eth_addr() 118 addattr_l(n, MAX_MSG, mask_type, addr, sizeof(addr)); in flower_parse_eth_addr() 141 addattr16(n, MAX_MSG, type, vlan_eth_type); in flower_parse_vlan_eth_type() 227 addattr8(n, MAX_MSG, type, ip_proto); in flower_parse_ip_proto() 255 addattr_l(n, MAX_MSG, addr.family == AF_INET ? addr4_type : addr6_type, in __flower_parse_ip_addr() 272 addattr_l(n, MAX_MSG, addr.family == AF_INET ? mask4_type : mask6_type, in __flower_parse_ip_addr() 348 addattr8(n, MAX_MSG, value_type, value); in flower_parse_u8() 349 addattr8(n, MAX_MSG, mask_type, mask); in flower_parse_u8() 475 addattr16(n, MAX_MSG, type, port); in flower_parse_port() 497 addattr16(n, MAX_MSG, flags_type, htons(flags)); in flower_parse_tcp_flags() [all …]
|
D | m_sample.c | 125 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_sample() 126 addattr_l(n, MAX_MSG, TCA_SAMPLE_PARMS, &p, sizeof(p)); in parse_sample() 128 addattr32(n, MAX_MSG, TCA_SAMPLE_RATE, rate); in parse_sample() 130 addattr32(n, MAX_MSG, TCA_SAMPLE_PSAMPLE_GROUP, group); in parse_sample() 132 addattr32(n, MAX_MSG, TCA_SAMPLE_TRUNC_SIZE, trunc); in parse_sample()
|
D | m_tunnel_key.c | 51 addattr_l(n, MAX_MSG, addr.family == AF_INET ? addr4_type : addr6_type, in tunnel_key_parse_ip_addr() 65 addattr32(n, MAX_MSG, type, key_id); in tunnel_key_parse_key_id() 79 addattr16(n, MAX_MSG, type, dst_port); in tunnel_key_parse_dst_port() 102 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_tunnel_key() 173 addattr8(n, MAX_MSG, TCA_TUNNEL_KEY_NO_CSUM, !csum); in parse_tunnel_key() 198 addattr_l(n, MAX_MSG, TCA_TUNNEL_KEY_PARMS, &parm, sizeof(parm)); in parse_tunnel_key()
|
D | m_skbmod.c | 147 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() 153 addattr16(n, MAX_MSG, TCA_SKBMOD_ETYPE, skbmod_etype); in parse_skbmod() 155 addattr_l(n, MAX_MSG, TCA_SKBMOD_SMAC, sbuf, ETH_ALEN); in parse_skbmod()
|
D | m_vlan.c | 161 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() 176 addattr8(n, MAX_MSG, TCA_VLAN_PUSH_VLAN_PRIORITY, prio); in parse_vlan()
|
D | m_police.c | 233 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in act_parse_police() 234 addattr_l(n, MAX_MSG, TCA_POLICE_TBF, &p, sizeof(p)); in act_parse_police() 236 addattr_l(n, MAX_MSG, TCA_POLICE_RATE, rtab, 1024); in act_parse_police() 238 addattr_l(n, MAX_MSG, TCA_POLICE_PEAKRATE, ptab, 1024); in act_parse_police() 240 addattr32(n, MAX_MSG, TCA_POLICE_AVRATE, avrate); in act_parse_police() 242 addattr32(n, MAX_MSG, TCA_POLICE_RESULT, presult); in act_parse_police()
|
D | m_simple.c | 151 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()
|
D | f_matchall.c | 60 addattr_l(n, MAX_MSG, TCA_OPTIONS, NULL, 0); in matchall_parse_opt() 72 addattr_l(n, MAX_MSG, TCA_MATCHALL_CLASSID, &handle, 4); in matchall_parse_opt() 107 addattr_l(n, MAX_MSG, TCA_MATCHALL_FLAGS, &flags, 4); in matchall_parse_opt()
|
D | em_nbyte.c | 97 addraw_l(n, MAX_MSG, hdr, sizeof(*hdr)); in nbyte_parse_eopt() 98 addraw_l(n, MAX_MSG, &nb, sizeof(nb)); in nbyte_parse_eopt() 99 addraw_l(n, MAX_MSG, needle->data, needle->len); in nbyte_parse_eopt()
|
D | m_xt.c | 269 addattr_l(n, MAX_MSG, tca_id, NULL, 0); 289 addattr_l(n, MAX_MSG, TCA_IPT_TABLE, k, size); 290 addattr_l(n, MAX_MSG, TCA_IPT_HOOK, &hook, 4); 291 addattr_l(n, MAX_MSG, TCA_IPT_INDEX, &index, 4); 293 addattr_l(n, MAX_MSG, TCA_IPT_TARG, m->t, m->t->u.target_size);
|
D | m_xt_old.c | 313 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()
|
D | m_gact.c | 149 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_gact() 150 addattr_l(n, MAX_MSG, TCA_GACT_PARMS, &p, sizeof(p)); in parse_gact() 153 addattr_l(n, MAX_MSG, TCA_GACT_PROB, &pp, sizeof(pp)); in parse_gact()
|
D | m_ematch.c | 185 addattr_l(n, MAX_MSG, index++, NULL, 0); in parse_tree() 190 addraw_l(n, MAX_MSG, &hdr, sizeof(hdr)); in parse_tree() 191 addraw_l(n, MAX_MSG, &r, sizeof(r)); in parse_tree() 346 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_ematch() 347 addattr_l(n, MAX_MSG, TCA_EMATCH_TREE_HDR, &hdr, sizeof(hdr)); in parse_ematch() 350 addattr_l(n, MAX_MSG, TCA_EMATCH_TREE_LIST, NULL, 0); in parse_ematch()
|
D | m_connmark.c | 99 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_connmark() 100 addattr_l(n, MAX_MSG, TCA_CONNMARK_PARMS, &sel, sizeof(sel)); in parse_connmark()
|
D | m_ipt.c | 388 addattr_l(n, MAX_MSG, tca_id, NULL, 0); in parse_ipt() 404 addattr_l(n, MAX_MSG, TCA_IPT_TABLE, k, size); in parse_ipt() 405 addattr_l(n, MAX_MSG, TCA_IPT_HOOK, &hook, 4); in parse_ipt() 406 addattr_l(n, MAX_MSG, TCA_IPT_INDEX, &index, 4); in parse_ipt() 408 addattr_l(n, MAX_MSG, TCA_IPT_TARG, m->t, m->t->u.target_size); in parse_ipt()
|
D | f_basic.c | 60 addattr_l(n, MAX_MSG, TCA_OPTIONS, NULL, 0); in basic_parse_opt() 79 addattr_l(n, MAX_MSG, TCA_BASIC_CLASSID, &handle, 4); in basic_parse_opt()
|
/external/ltp/testcases/open_posix_testsuite/stress/mqueues/ |
D | multi_send_rev_2.c | 30 #define MAX_MSG 5 macro 35 char r_msg_ptr[Max_Threads][MAX_MSG][MSG_SIZE]; 44 for (i = 0; i < MAX_MSG; i++) { in send() 62 for (i = 0; i < MAX_MSG; i++) { in receive() 98 mqstat.mq_maxmsg = MAX_MSG; in main()
|
D | multi_send_rev_1.c | 29 #define MAX_MSG 3 macro 48 for (i = 0; i < MAX_MSG; i++) { in send() 63 char r_msg_ptr[MAX_MSG][MSG_SIZE]; in receive() 70 for (i = 0; i < MAX_MSG; i++) { in receive() 109 mqstat.mq_maxmsg = MAX_MSG; in main()
|