OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:NI_NONCE_SIZE
(Results
1 - 2
of
2
) sorted by null
/external/iputils/
ping6_niquery.h
3
#define
NI_NONCE_SIZE
8
8
__u8 ni_nonce[
NI_NONCE_SIZE
];
ping6.c
313
ni_nonce_ptr = calloc(
NI_NONCE_SIZE
, MAX_DUP_CHK);
344
memcpy(nonce + sizeof(__u16), digest,
NI_NONCE_SIZE
- sizeof(__u16));
347
if (memcmp(nonce + sizeof(__u16), digest,
NI_NONCE_SIZE
- sizeof(__u16)))
360
memcpy(&ni_nonce_ptr[
NI_NONCE_SIZE
* (seq % MAX_DUP_CHK)], &v, sizeof(v));
362
for (i = sizeof(v); i <
NI_NONCE_SIZE
; i++)
363
ni_nonce_ptr[
NI_NONCE_SIZE
* (seq % MAX_DUP_CHK) + i] = 0x100 * (rand() / (RAND_MAX + 1.0));
365
memcpy(nonce, &ni_nonce_ptr[
NI_NONCE_SIZE
* (seq % MAX_DUP_CHK)],
NI_NONCE_SIZE
);
376
if (memcmp(nonce, &ni_nonce_ptr[
NI_NONCE_SIZE
* (seq % MAX_DUP_CHK)],
NI_NONCE_SIZE
))
[
all
...]
Completed in 107 milliseconds