Home
last modified time | relevance | path

Searched refs:info_p (Results 1 – 6 of 6) sorted by relevance

/external/ltp/testcases/network/stress/ns-tools/
Dns-tcpserver.c166 void delete_zombies(struct server_info *info_p) in delete_zombies() argument
171 while (info_p->current_connection) { in delete_zombies()
178 --info_p->current_connection; in delete_zombies()
180 ++info_p->lost_connection; in delete_zombies()
184 info_p->lost_connection); in delete_zombies()
203 void create_listen_socket(struct server_info *info_p) in create_listen_socket() argument
212 hints.ai_family = info_p->family; in create_listen_socket()
218 err = getaddrinfo(NULL, info_p->portnum, &hints, &res); in create_listen_socket()
229 info_p->listen_sd = socket(res->ai_family, in create_listen_socket()
231 if (info_p->listen_sd < 0) in create_listen_socket()
[all …]
Dns-icmpv6_sender.c240 int create_mld_query(struct icmp6_info *info_p, uint16_t mrc, char *saddrs) in create_mld_query() argument
280 pkt.hdr.ip6_src = info_p->saddr; in create_mld_query()
281 pkt.hdr.ip6_dst = info_p->daddr; in create_mld_query()
304 if (memcmp(&info_p->daddr, &in6addr_allnodes, sizeof(struct in6_addr)) in create_mld_query()
308 query_p->addr = info_p->daddr; in create_mld_query()
343 info_p->pkt = pkt; in create_mld_query()
344 info_p->pkt_size = sizeof(struct ip6_hdr) + ip6_psize; in create_mld_query()
361 void create_echo_request(struct icmp6_info *info_p) in create_echo_request() argument
369 +info_p->data_size; /* ICMP payload */ in create_echo_request()
379 pkt.hdr.ip6_src = info_p->saddr; in create_echo_request()
[all …]
Dns-mcast_receiver.c157 parse_options(int argc, char *argv[], struct mcast_rcv_info *info_p, int *bg_p) in parse_options() argument
238 info_p->timeout = opt_d; in parse_options()
273 info_p->mainfo = get_maddrinfo(family, maddr, portnum); in parse_options()
274 info_p->greq = create_group_info(ifindex, info_p->mainfo); in parse_options()
280 info_p->gsf = in parse_options()
281 create_source_filter(ifindex, info_p->mainfo, fmode, in parse_options()
302 int create_mcast_socket(struct mcast_rcv_info *info_p) in create_mcast_socket() argument
308 switch (info_p->mainfo->ai_family) { in create_mcast_socket()
323 sd = socket(info_p->mainfo->ai_family, info_p->mainfo->ai_socktype, in create_mcast_socket()
324 info_p->mainfo->ai_protocol); in create_mcast_socket()
[all …]
Dns-igmp_querier.c244 void parse_options(int argc, char *argv[], struct igmp_info *info_p, int *bg_p) in parse_options() argument
260 info_p->ifindex = if_nametoindex(optarg); in parse_options()
261 if (info_p->ifindex == 0) { in parse_options()
297 info_p->timeout = opt_d; in parse_options()
301 if (strtotimespec(optarg, &info_p->interval)) { in parse_options()
309 info_p->timeout = -1.0; in parse_options()
329 if (info_p->ifindex == 0) { in parse_options()
334 if ((info_p->query = create_query(max_resp, maddr, saddrs)) == NULL) in parse_options()
353 int create_socket(struct igmp_info *info_p) in create_socket() argument
375 req_p->imr_multiaddr.s_addr = info_p->query->group; in create_socket()
[all …]
/external/ltp/testcases/kernel/sched/pthreads/
Dpth_str03.c191 c_info *info_p; in synchronize_children() local
208 info_p = &child_info[my_index]; in synchronize_children()
209 info_p->index = my_index; in synchronize_children()
210 info_p->sum = (long)my_index; in synchronize_children()
213 printf("thread %d info_p=%p\n", my_index, info_p); in synchronize_children()
231 parent->child_ptrs[parent->child_count++] = info_p; in synchronize_children()
327 c_info *info_p; in doit() local
357 info_p = &child_info[my_index]; in doit()
361 printf("info_p=%p, cdepth=%d, depth=%d\n", info_p, cdepth, in doit()
376 pthread_create(&(info_p->threads[child]), &attr, in doit()
[all …]
Dpth_str01.c172 c_info *info_p; in synchronize_children() local
194 info_p = &child_info[my_index]; in synchronize_children()
195 info_p->index = my_index; in synchronize_children()
198 printf("thread %d info_p=%p\n", my_index, info_p); in synchronize_children()
218 parent->child_ptrs[parent->child_count++] = info_p; in synchronize_children()
325 c_info *info_p; in doit() local
361 info_p = &child_info[my_index]; in doit()
365 printf("info_p=%p, cdepth=%d, depth=%d\n", info_p, cdepth, in doit()
387 &(info_p->threads[child])); in doit()
391 pthread_create(&(info_p->threads[child]), &attr, in doit()
[all …]