Home
last modified time | relevance | path

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

/external/iputils/
Dping6_niquery.h3 #define NI_NONCE_SIZE 8 macro
8 __u8 ni_nonce[NI_NONCE_SIZE];
Dping6.c313 ni_nonce_ptr = calloc(NI_NONCE_SIZE, MAX_DUP_CHK); in niquery_init_nonce()
344 memcpy(nonce + sizeof(__u16), digest, NI_NONCE_SIZE - sizeof(__u16)); in niquery_nonce()
347 if (memcmp(nonce + sizeof(__u16), digest, NI_NONCE_SIZE - sizeof(__u16))) in niquery_nonce()
360 memcpy(&ni_nonce_ptr[NI_NONCE_SIZE * (seq % MAX_DUP_CHK)], &v, sizeof(v)); in niquery_fill_nonce()
362 for (i = sizeof(v); i < NI_NONCE_SIZE; i++) 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()
DRELNOTES99 ping6: Introduce NI_NONCE_SIZE macro instead of magic value 8.