Home
last modified time | relevance | path

Searched refs:MAX_DUP_CHK (Results 1 – 4 of 4) sorted by relevance

/external/iputils/
Dping_common.h81 #define MAX_DUP_CHK 0x10000 macro
95 #if ((MAX_DUP_CHK >> (BITMAP_SHIFT + 3)) << (BITMAP_SHIFT + 3)) != MAX_DUP_CHK
96 # error Please MAX_DUP_CHK and/or BITMAP_SHIFT
100 bitmap_t bitmap[MAX_DUP_CHK / (sizeof(bitmap_t) * 8)];
111 unsigned bit = seq % MAX_DUP_CHK; in rcvd_set()
117 unsigned bit = seq % MAX_DUP_CHK; in rcvd_clear()
123 unsigned bit = seq % MAX_DUP_CHK; in rcvd_test()
Dping_common.c315 fprintf(stderr, "ping: bad preload value, should be 1..%d\n", MAX_DUP_CHK); in common_options()
318 if (preload > MAX_DUP_CHK) in common_options()
319 preload = MAX_DUP_CHK; in common_options()
510 printf("no answer yet for icmp_seq=%lu\n", (ntransmitted % MAX_DUP_CHK)); in pinger()
Dping6.c313 ni_nonce_ptr = calloc(NI_NONCE_SIZE, MAX_DUP_CHK); in niquery_init_nonce()
360 memcpy(&ni_nonce_ptr[NI_NONCE_SIZE * (seq % MAX_DUP_CHK)], &v, sizeof(v)); in niquery_fill_nonce()
363 ni_nonce_ptr[NI_NONCE_SIZE * (seq % MAX_DUP_CHK) + i] = 0x100 * (rand() / (RAND_MAX + 1.0)); in niquery_fill_nonce()
365 memcpy(nonce, &ni_nonce_ptr[NI_NONCE_SIZE * (seq % MAX_DUP_CHK)], NI_NONCE_SIZE); in niquery_fill_nonce()
376 if (memcmp(nonce, &ni_nonce_ptr[NI_NONCE_SIZE * (seq % MAX_DUP_CHK)], NI_NONCE_SIZE)) in niquery_check_nonce()
DRELNOTES75 ping,ping6: Use MAX_DUP_CHK directly, not using mx_dup_chk variable.