Home
last modified time | relevance | path

Searched refs:numsrc (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/network/stress/ns-tools/
Dns-igmp_querier.c159 uint16_t numsrc; /* number of source address */ in create_query() local
167 numsrc = 0; in create_query()
169 numsrc = 1; in create_query()
172 numsrc++; in create_query()
175 fprintf(stderr, "number of source address is %u\n", numsrc); in create_query()
178 query_size = MY_IGMPV3_QUERY_SIZE(numsrc); in create_query()
191 query->nsrcs = htons(numsrc); in create_query()
207 for (idx = 0; idx < numsrc; idx++) { in create_query()
Dns-common.c514 uint32_t numsrc; /* number of source address */ in create_source_filter() local
522 numsrc = 1; in create_source_filter()
525 numsrc++; in create_source_filter()
528 fprintf(stderr, "number of source address is %u\n", numsrc); in create_source_filter()
531 gsf = (struct group_filter *)calloc(1, GROUP_FILTER_SIZE(numsrc)); in create_source_filter()
539 gsf->gf_numsrc = numsrc; in create_source_filter()
556 for (idx = 0; idx < numsrc; idx++) { in create_source_filter()
Dns-traffic.h206 #define MY_IGMPV3_QUERY_SIZE(numsrc) \ argument
207 (sizeof(struct igmpv3_query) + (numsrc) * sizeof(uint32_t))
209 #define MY_MLDV2_QUERY_SIZE(numsrc) \ argument
211 + (numsrc) * sizeof(struct in6_addr))
Dns-icmpv6_sender.c246 uint16_t numsrc; /* number of source address */ in create_mld_query() local
261 numsrc = 0; in create_mld_query()
263 numsrc = 1; in create_mld_query()
266 numsrc++; in create_mld_query()
269 fprintf(stderr, "number of source address is %u\n", numsrc); in create_mld_query()
271 query_size = MY_MLDV2_QUERY_SIZE(numsrc); in create_mld_query()
301 query_p->nsrcs = htons(numsrc); in create_mld_query()
312 for (idx = 0; idx < numsrc; idx++) { in create_mld_query()
Dns-mcast.h80 #define GROUP_FILTER_SIZE(numsrc) \ argument
82 + (numsrc) * sizeof(struct sockaddr_storage))
/external/iproute2/include/uapi/linux/
Din.h193 #define IP_MSFILTER_SIZE(numsrc) \ argument
195 + (numsrc) * sizeof(__u32))
216 #define GROUP_FILTER_SIZE(numsrc) \ argument
218 + (numsrc) * sizeof(struct __kernel_sockaddr_storage))
/external/kernel-headers/original/uapi/linux/
Din.h193 #define IP_MSFILTER_SIZE(numsrc) \ argument
195 + (numsrc) * sizeof(__u32))
216 #define GROUP_FILTER_SIZE(numsrc) \ argument
218 + (numsrc) * sizeof(struct __kernel_sockaddr_storage))
/external/scapy/scapy/contrib/
Digmpv3.py120 … FieldListField("srcaddrs", None, IPField("sa", "0.0.0.0"), count_from=lambda x: x.numsrc)]
140 … FieldListField("srcaddrs", [], IPField("sa", "0.0.0.0"), count_from=lambda x: x.numsrc) ]