38 #include "netif/ppp/ppp_opts.h" 39 #if PPP_SUPPORT && PPP_IPV6_SUPPORT 56 #define eui64_iszero(e) (((e).e32[0] | (e).e32[1]) == 0) 57 #define eui64_equals(e, o) (((e).e32[0] == (o).e32[0]) && \ 58 ((e).e32[1] == (o).e32[1])) 59 #define eui64_zero(e) (e).e32[0] = (e).e32[1] = 0; 61 #define eui64_copy(s, d) memcpy(&(d), &(s), sizeof(eui64_t)) 63 #define eui64_magic(e) do { \ 64 (e).e32[0] = magic(); \ 65 (e).e32[1] = magic(); \ 68 #define eui64_magic_nz(x) do { \ 70 } while (eui64_iszero(x)) 71 #define eui64_magic_ne(x, y) do { \ 73 } while (eui64_equals(x, y)) 75 #define eui64_get(ll, cp) do { \ 76 eui64_copy((*cp), (ll)); \ 77 (cp) += sizeof(eui64_t); \ 80 #define eui64_put(ll, cp) do { \ 81 eui64_copy((ll), (*cp)); \ 82 (cp) += sizeof(eui64_t); \ 85 #define eui64_set32(e, l) do { \ 87 (e).e32[1] = lwip_htonl(l); \ 89 #define eui64_setlo32(e, l) eui64_set32(e, l) 91 char *eui64_ntoa(eui64_t);