Lines Matching full:iaid
441 * An IAID is for identifying a unqiue interface within
457 * as the IAID as it's the most stable part given the
463 * generating the IAID from the MAC address is the only
475 if (ifp->hwlen >= sizeof(ifo->iaid))
476 memcpy(ifo->iaid,
477 ifp->hwaddr + ifp->hwlen - sizeof(ifo->iaid),
478 sizeof(ifo->iaid));
483 if (len <= sizeof(ifo->iaid)) {
484 memcpy(ifo->iaid, ifp->name, len);
485 if (len < sizeof(ifo->iaid))
486 memset(ifo->iaid + len, 0,
487 sizeof(ifo->iaid) - len);
489 /* IAID is the same size as a uint32_t */
491 memcpy(ifo->iaid, &len, sizeof(len));
507 memcpy(ifo->ia->iaid, ifo->iaid, sizeof(ifo->iaid));
515 memcpy(&ifo->ia[i].iaid, ifo->iaid,
516 sizeof(ifo->ia[i].iaid));
700 warn_iaid_conflict(struct interface *ifp, uint8_t *iaid)
710 if (memcmp(ifn->options->iaid, iaid,
711 sizeof(ifn->options->iaid)) == 0)
714 if (memcmp(&ifn->options->ia[i].iaid, iaid,
715 sizeof(ifn->options->ia[i].iaid)) == 0)
723 "%s: IAID conflicts with one assigned to %s",
791 logger(ifp->ctx, LOG_INFO, "%s: IAID %s", ifp->name,
792 hwaddr_ntoa(ifo->iaid, sizeof(ifo->iaid),
794 warn_iaid_conflict(ifp, ifo->iaid);
796 if (memcmp(ifo->iaid, ifo->ia[i].iaid,
797 sizeof(ifo->iaid)))
799 logger(ifp->ctx, LOG_INFO, "%s: IAID %s",
800 ifp->name, hwaddr_ntoa(ifo->ia[i].iaid,
801 sizeof(ifo->ia[i].iaid),
803 warn_iaid_conflict(ifp, ifo->ia[i].iaid);
1662 * load the hardware address to compare automated IAID */