Lines Matching defs:in6
121 #define EUI64_TO_IFID(in6) do {(in6)->s6_addr[8] ^= EUI64_UBIT; } while (0)
122 #define EUI64_GROUP(in6) ((in6)->s6_addr[8] & EUI64_GBIT)
123 #define EUI64_INDIVIDUAL(in6) (!EUI64_GROUP(in6))
124 #define EUI64_LOCAL(in6) ((in6)->s6_addr[8] & EUI64_UBIT)
125 #define EUI64_UNIVERSAL(in6) (!EUI64_LOCAL(in6))
127 #define IFID_LOCAL(in6) (!EUI64_LOCAL(in6))
128 #define IFID_UNIVERSAL(in6) (!EUI64_UNIVERSAL(in6))
140 struct in6_addr *in6) /* upper 64bits are preserved */
159 bcopy(digest, &in6->s6_addr[8], 8);
162 in6->s6_addr[8] &= ~EUI64_GBIT; /* g bit to "individual" */
163 in6->s6_addr[8] |= EUI64_UBIT; /* u bit to "local" */
166 EUI64_TO_IFID(in6);
264 struct in6_addr *in6) /* upper 64bits are preserved */
331 bcopy(addr, &in6->s6_addr[8], 8);
333 in6->s6_addr[8] = addr[0];
334 in6->s6_addr[9] = addr[1];
335 in6->s6_addr[10] = addr[2];
336 in6->s6_addr[11] = 0xff;
337 in6->s6_addr[12] = 0xfe;
338 in6->s6_addr[13] = addr[3];
339 in6->s6_addr[14] = addr[4];
340 in6->s6_addr[15] = addr[5];
350 bzero(&in6->s6_addr[8], 8);
351 in6->s6_addr[15] = addr[0];
356 in6->s6_addr[8] &= ~EUI64_GBIT; /* g bit to "individual" */
357 in6->s6_addr[8] |= EUI64_UBIT; /* u bit to "local" */
377 if (EUI64_GROUP(in6))
381 EUI64_TO_IFID(in6);
387 if ((in6->s6_addr[8] & ~(EUI64_GBIT | EUI64_UBIT)) == 0x00 &&
388 bcmp(&in6->s6_addr[9], allzero, 7) == 0) {
404 struct in6_addr *in6)
409 if (get_hw_ifid(ifp0, in6) == 0) {
416 if (altifp && get_hw_ifid(altifp, in6) == 0) {
427 if (get_hw_ifid(ifp, in6) != 0)
434 if (IFID_UNIVERSAL(in6)) {
445 if (get_rand_ifid(ifp, in6) == 0) {
459 in6->s6_addr[8], in6->s6_addr[9],
460 in6->s6_addr[10], in6->s6_addr[11],
461 in6->s6_addr[12], in6->s6_addr[13],
462 in6->s6_addr[14], in6->s6_addr[15]));
686 struct in6_addr *in6)
718 bzero(in6, sizeof(*in6));
719 in6->s6_addr16[0] = htons(0xff02);
721 in6->s6_addr16[1] = htons(ifp->if_index);
722 in6->s6_addr8[11] = 2;
723 bcopy(digest, &in6->s6_addr32[3], sizeof(in6->s6_addr32[3]));
802 struct in6_addr in6;
886 in6 = in6addr_loopback;
887 if ((ia6 = in6ifa_ifpwithaddr(ifp, &in6)) == NULL) {