Lines Matching defs:ifra
473 struct in6_aliasreq ifra;
480 bzero(&ifra, sizeof(ifra));
488 strncpy(ifra.ifra_name, if_name(ifp), sizeof(ifra.ifra_name));
491 bcopy(&ifra_passed->ifra_addr, &(ifra.ifra_addr), sizeof(struct sockaddr_in6));
493 ifra.ifra_addr.sin6_family = AF_INET6;
494 ifra.ifra_addr.sin6_len = sizeof(struct sockaddr_in6);
495 ifra.ifra_addr.sin6_addr.s6_addr16[0] = htons(0xfe80);
497 ifra.ifra_addr.sin6_addr.s6_addr16[1] = 0
499 ifra.ifra_addr.sin6_addr.s6_addr16[1] = htons(ifp->if_index); /* XXX */
501 ifra.ifra_addr.sin6_addr.s6_addr32[1] = 0;
503 ifra.ifra_addr.sin6_addr.s6_addr32[2] = 0;
504 ifra.ifra_addr.sin6_addr.s6_addr32[3] = htonl(1);
506 if (get_ifid(ifp, altifp, &ifra.ifra_addr.sin6_addr) != 0) {
513 ifra.ifra_addr.sin6_scope_id =
514 in6_addr2scopeid(ifp, &ifra.ifra_addr.sin6_addr);
517 ifra.ifra_prefixmask.sin6_len = sizeof(struct sockaddr_in6);
518 ifra.ifra_prefixmask.sin6_family = AF_INET6;
519 ifra.ifra_prefixmask.sin6_addr = in6mask64;
522 ifra.ifra_prefixmask.sin6_scope_id = 0xffffffff;
525 ifra.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME;
526 ifra.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME;
533 ifra.ifra_flags |= IN6_IFF_NODAD;
541 if ((error = in6_update_ifa(ifp, &ifra, NULL)) != 0) {
583 pr0.ndpr_plen = in6_mask2len(&ifra.ifra_prefixmask.sin6_addr, NULL);
584 pr0.ndpr_mask = ifra.ifra_prefixmask.sin6_addr;
585 pr0.ndpr_prefix = ifra.ifra_addr;
624 struct in6_aliasreq ifra;
627 bzero(&ifra, sizeof(ifra));
633 strncpy(ifra.ifra_name, if_name(ifp), sizeof(ifra.ifra_name));
635 ifra.ifra_prefixmask.sin6_len = sizeof(struct sockaddr_in6);
636 ifra.ifra_prefixmask.sin6_family = AF_INET6;
637 ifra.ifra_prefixmask.sin6_addr = in6mask128;
643 ifra.ifra_dstaddr.sin6_len = sizeof(struct sockaddr_in6);
644 ifra.ifra_dstaddr.sin6_family = AF_INET6;
645 ifra.ifra_dstaddr.sin6_addr = in6addr_loopback;
647 ifra.ifra_addr.sin6_len = sizeof(struct sockaddr_in6);
648 ifra.ifra_addr.sin6_family = AF_INET6;
649 ifra.ifra_addr.sin6_addr = in6addr_loopback;
652 ifra.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME;
653 ifra.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME;
656 ifra.ifra_flags |= IN6_IFF_NODAD;
659 ifra.ifra_flags |= IN6_IFF_NOPFX;
665 if ((error = in6_update_ifa(ifp, &ifra, NULL)) != 0) {
798 struct in6_aliasreq *ifra)
905 if (in6_ifattach_linklocal(ifp, altifp, ifra) == 0) {