|
Mbed OS Reference
|
Loading...
Searching...
No Matches
39#if PPP_SUPPORT && PPP_IPV6_SUPPORT
60#define eui64_iszero(e) (((e).e32[0] | (e).e32[1]) == 0)
61#define eui64_equals(e, o) (((e).e32[0] == (o).e32[0]) && \
62 ((e).e32[1] == (o).e32[1]))
63#define eui64_zero(e) (e).e32[0] = (e).e32[1] = 0;
65#define eui64_copy(s, d) memcpy(&(d), &(s), sizeof(eui64_t))
67#define eui64_magic(e) do { \
68 (e).e32[0] = magic(); \
69 (e).e32[1] = magic(); \
72#define eui64_magic_nz(x) do { \
74 } while (eui64_iszero(x))
75#define eui64_magic_ne(x, y) do { \
77 } while (eui64_equals(x, y))
79#define eui64_get(ll, cp) do { \
80 eui64_copy((*cp), (ll)); \
81 (cp) += sizeof(eui64_t); \
84#define eui64_put(ll, cp) do { \
85 eui64_copy((ll), (*cp)); \
86 (cp) += sizeof(eui64_t); \
89#define eui64_set32(e, l) do { \
91 (e).e32[1] = ppp_htonl(l); \
93#define eui64_setlo32(e, l) eui64_set32(e, l)
95char *eui64_ntoa(eui64_t);