Home
last modified time | relevance | path

Searched refs:ia6 (Results 1 – 15 of 15) sorted by relevance

/openbsd/sys/netinet6/
H A Din6.c312 if (ia6 == NULL) { in in6_ioctl_change_ifaddr()
335 if (ia6 == NULL) in in6_ioctl_change_ifaddr()
358 ia6 = NULL; in in6_ioctl_change_ifaddr()
431 if (ia6 == NULL) { in in6_ioctl_get()
641 if (ia6 == NULL) in in6_update_ifa()
649 if (ia6 == NULL) { in in6_update_ifa()
651 ia6 = malloc(sizeof(*ia6), M_IFADDR, M_WAITOK | M_ZERO); in in6_update_ifa()
656 ia6->ia_ifa.ifa_addr = sin6tosa(&ia6->ia_addr); in in6_update_ifa()
658 ia6->ia_addr.sin6_len = sizeof(ia6->ia_addr); in in6_update_ifa()
666 ia6->ia_ifa.ifa_dstaddr = sin6tosa(&ia6->ia_dstaddr); in in6_update_ifa()
[all …]
H A Din6_src.c104 struct in6_ifaddr *ia6 = NULL; in in6_pcbselsrc() local
136 if (ia6 == NULL || (ia6->ia6_flags & in in6_pcbselsrc()
168 if (ia6 == NULL) in in6_pcbselsrc()
171 *in6src = &ia6->ia_addr.sin6_addr; in in6_pcbselsrc()
199 ia6 = ifatoia6(rt->rt_ifa); in in6_pcbselsrc()
221 if (ia6 == NULL) in in6_pcbselsrc()
224 *in6src = &ia6->ia_addr.sin6_addr; in in6_pcbselsrc()
240 struct in6_ifaddr *ia6 = NULL; in in6_selectsrc() local
262 if (ia6 == NULL) in in6_selectsrc()
265 *in6src = &ia6->ia_addr.sin6_addr; in in6_selectsrc()
[all …]
H A Dnd6_nbr.c1087 struct in6_ifaddr *ia6 = ifatoia6(ifa); in nd6_dad_start() local
1101 ia6->ia6_flags &= ~IN6_IFF_TENTATIVE; in nd6_dad_start()
1163 struct in6_ifaddr *ia6; in nd6_dad_timer() local
1177 ia6 = ifatoia6(ifa); in nd6_dad_timer()
1178 taddr6 = ia6->ia_addr.sin6_addr; in nd6_dad_timer()
1227 ia6->ia6_flags &= ~IN6_IFF_TENTATIVE; in nd6_dad_timer()
1258 ia6->ia_ifp->if_xname, in nd6_dad_duplicated()
1262 ia6->ia6_flags &= ~IN6_IFF_TENTATIVE; in nd6_dad_duplicated()
1263 ia6->ia6_flags |= IN6_IFF_DUPLICATED; in nd6_dad_duplicated()
1269 ia6->ia_ifp->if_xname, in nd6_dad_duplicated()
[all …]
H A Dnd6.c447 struct in6_ifaddr *ia6; in nd6_expire() local
452 ia6 = ifatoia6(ifa); in nd6_expire()
454 if (IFA6_IS_INVALID(ia6)) { in nd6_expire()
455 in6_purgeaddr(&ia6->ia_ifa); in nd6_expire()
457 if (IFA6_IS_DEPRECATED(ia6)) in nd6_expire()
459 nd6_expire_timer_update(ia6); in nd6_expire()
600 struct in6_ifaddr *ia6; in nd6_is_addr_neighbor() local
618 ia6 = ifatoia6(ifa); in nd6_is_addr_neighbor()
621 if (ia6->ia6_flags & IN6_IFF_AUTOCONF) in nd6_is_addr_neighbor()
625 &ia6->ia_addr.sin6_addr, in nd6_is_addr_neighbor()
[all …]
H A Din6_ifattach.c239 struct in6_ifaddr *ia6; in in6_ifattach_linklocal() local
285 ia6 = in6ifa_ifpforlinklocal(ifp, 0); in in6_ifattach_linklocal()
288 if (ia6->ia6_flags & IN6_IFF_TENTATIVE) in in6_ifattach_linklocal()
289 nd6_dad_start(&ia6->ia_ifa); in in6_ifattach_linklocal()
300 error = rt_ifa_add(&ia6->ia_ifa, flags, ia6->ia_ifa.ifa_addr, in in6_ifattach_linklocal()
303 in6_purgeaddr(&ia6->ia_ifa); in in6_ifattach_linklocal()
H A Dmld6.c406 struct in6_ifaddr *ia6; in mld6_sendpkt() local
421 if ((ia6 = in6ifa_ifpforlinklocal(ifp, ignflags)) == NULL) { in mld6_sendpkt()
425 if ((ia6->ia6_flags & IN6_IFF_TENTATIVE)) in mld6_sendpkt()
426 ia6 = NULL; in mld6_sendpkt()
460 ip6->ip6_src = ia6 ? ia6->ia_addr.sin6_addr : in6addr_any; in mld6_sendpkt()
492 ip6_output(mh, &ip6_opts, NULL, ia6 ? 0 : IPV6_UNSPECSRC, &im6o, in mld6_sendpkt()
H A Dicmp6.c1153 struct in6_ifaddr *ia6; in icmp6_reflect() local
1171 ia6 = in6_ifawithscope(rt->rt_ifa->ifa_ifp, &t, rtableid, rt); in icmp6_reflect()
1172 if (ia6 != NULL) in icmp6_reflect()
1173 src = &ia6->ia_addr.sin6_addr; in icmp6_reflect()
1508 struct in6_ifaddr *ia6; in icmp6_redirect_output() local
1509 if ((ia6 = in6ifa_ifpforlinklocal(ifp, IN6_IFF_TENTATIVE| in icmp6_redirect_output()
1512 ifp_ll6 = &ia6->ia_addr.sin6_addr; in icmp6_redirect_output()
H A Dip6_input.c544 struct in6_ifaddr *ia6 = ifatoia6(rt->rt_ifa); in ip6_input_if() local
576 if ((ia6->ia6_flags & (IN6_IFF_TENTATIVE|IN6_IFF_DUPLICATED))) { in ip6_input_if()
/openbsd/sbin/dhcp6leased/
H A Dprintconf.c48 struct in6_addr ia6; in print_iface_pd_conf() local
52 memset(&ia6, 0, sizeof(ia6)); in print_iface_pd_conf()
53 inet_pton(AF_INET6, "2001:db8::", &ia6); in print_iface_pd_conf()
56 ia6.s6_addr[i] |= pd_conf->prefix_mask.s6_addr[i]; in print_iface_pd_conf()
58 inet_ntop(AF_INET6, &ia6, ntopbuf, INET6_ADDRSTRLEN); in print_iface_pd_conf()
/openbsd/usr.sbin/ospf6d/
H A Drde_spf.c207 struct in6_addr ia6; in rt_calc() local
225 bzero(&ia6, sizeof(ia6)); in rt_calc()
227 bcopy(&adv_rtr, &ia6.s6_addr[12], sizeof(adv_rtr)); in rt_calc()
276 bzero(&ia6, sizeof(ia6)); in rt_calc()
277 bcopy(prefix + 1, &ia6, in rt_calc()
282 rt_update(&ia6, prefix->prefixlen, &w->nexthop, in rt_calc()
316 bzero(&ia6, sizeof(ia6)); in rt_calc()
319 rt_update(&ia6, prefix->prefixlen, &w->nexthop, v->type, in rt_calc()
344 bzero(&ia6, sizeof(ia6)); in rt_calc()
345 bcopy(&v->lsa->data.rtr_sum.dest_rtr_id, &ia6.s6_addr[12], in rt_calc()
[all …]
/openbsd/usr.sbin/ospf6ctl/
H A Dospf6ctl.c775 struct in6_addr ia6; in show_db_msg_detail() local
808 bzero(&ia6, sizeof(ia6)); in show_db_msg_detail()
810 printf(" Prefix: %s/%d%s\n", log_in6addr(&ia6), in show_db_msg_detail()
815 bcopy((char *)asext + off, &ia6, sizeof(ia6)); in show_db_msg_detail()
817 log_in6addr(&ia6)); in show_db_msg_detail()
818 off += sizeof(ia6); in show_db_msg_detail()
843 bzero(&ia6, sizeof(ia6)); in show_db_msg_detail()
844 bcopy(prefix + 1, &ia6, in show_db_msg_detail()
953 bzero(&ia6, sizeof(ia6)); in show_db_msg_detail()
954 bcopy(prefix + 1, &ia6, in show_db_msg_detail()
[all …]
/openbsd/sbin/iked/
H A Dradius.c535 struct in6_addr ia6; in iked_radius_config() local
612 radius_get_ipv6_attr(pkt, attr_type, &ia6); in iked_radius_config()
616 &ia6); in iked_radius_config()
636 sin6->sin6_addr = ia6; in iked_radius_config()
/openbsd/sys/net/
H A Dif_spppsubr.c4394 struct in6_ifaddr *ia6; in sppp_get_ip6_addrs() local
4403 ia6 = in6ifa_ifpforlinklocal(ifp, 0); in sppp_get_ip6_addrs()
4404 if (ia6) { in sppp_get_ip6_addrs()
4406 bcopy(&ia6->ia_addr.sin6_addr, &ssrc, sizeof(ssrc)); in sppp_get_ip6_addrs()
4408 bcopy(&ia6->ia_prefixmask.sin6_addr, srcmask, in sppp_get_ip6_addrs()
4430 struct in6_ifaddr *ia6; in sppp_update_ip6_addr() local
4435 ia6 = in6ifa_ifpforlinklocal(ifp, 0); in sppp_update_ip6_addr()
4436 if (ia6 == NULL) { in sppp_update_ip6_addr()
4460 if (memcmp(&ia6->ia_prefixmask.sin6_addr, &in6mask128, in sppp_update_ip6_addr()
4466 ifra->ifra_lifetime = ia6->ia6_lifetime; in sppp_update_ip6_addr()
[all …]
/openbsd/usr.sbin/relayd/
H A Drelay.c2670 struct sockaddr_in6 ia6, ib6; in relay_cmp_af() local
2684 bcopy(a, &ia6, sizeof(struct sockaddr_in6)); in relay_cmp_af()
2687 ret = memcmp(&ia6.sin6_addr, &ib6.sin6_addr, in relay_cmp_af()
2688 sizeof(ia6.sin6_addr)); in relay_cmp_af()
2690 ret = memcmp(&ia6.sin6_port, &ib6.sin6_port, in relay_cmp_af()
2691 sizeof(ia6.sin6_port)); in relay_cmp_af()
/openbsd/sys/netinet/
H A Dtcp_input.c794 struct in6_ifaddr *ia6; in tcp_input() local
799 (ia6 = in6ifa_ifpwithaddr(ifp, in tcp_input()
801 (ia6->ia6_flags & in tcp_input()