Home
last modified time | relevance | path

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

/external/iputils/
Dping6.c294 __u8 *ni_nonce_ptr; variable
313 ni_nonce_ptr = calloc(NI_NONCE_SIZE, MAX_DUP_CHK); in niquery_init_nonce()
314 if (!ni_nonce_ptr) { in niquery_init_nonce()
319 ni_nonce_ptr[0] = ~0; 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()