Home
last modified time | relevance | path

Searched refs:ifr6 (Results 1 – 4 of 4) sorted by relevance

/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c434 struct in6_ifreq ifr6; in get_ifi_info() local
437 memset(&ifr6, 0, sizeof(ifr6)); in get_ifi_info()
438 memcpy(&ifr6.ifr_name, &ifr->ifr_name, sizeof(ifr6.ifr_name )); in get_ifi_info()
439 memcpy(&ifr6.ifr_ifru.ifru_addr, &ifr->ifr_addr, sizeof(ifr6.ifr_ifru.ifru_addr)); in get_ifi_info()
440 if (ioctl(sockf6, SIOCGIFNETMASK_IN6, &ifr6) < 0) { in get_ifi_info()
458 sinptr6 = (struct sockaddr_in6 *) &ifr6.ifr_ifru.ifru_addr; in get_ifi_info()
/external/dhcpcd-6.8.2/
Dif-bsd.c1082 struct in6_ifreq ifr6; in if_addrflags6() local
1087 memset(&ifr6, 0, sizeof(ifr6)); in if_addrflags6()
1088 strlcpy(ifr6.ifr_name, ifp->name, sizeof(ifr6.ifr_name)); in if_addrflags6()
1089 ifr6.ifr_addr.sin6_family = AF_INET6; in if_addrflags6()
1090 ifr6.ifr_addr.sin6_addr = *addr; in if_addrflags6()
1091 ifa_scope(&ifr6.ifr_addr, ifp->index); in if_addrflags6()
1092 if (ioctl(s, SIOCGIFAFLAG_IN6, &ifr6) != -1) in if_addrflags6()
1093 flags = ifr6.ifr_ifru.ifru_flags6; in if_addrflags6()
1103 struct in6_ifreq ifr6; in if_getlifetime6() local
1108 memset(&ifr6, 0, sizeof(ifr6)); in if_getlifetime6()
[all …]
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c581 struct in6_ifreq ifr6; local
596 memset(&ifr6, 0, sizeof(ifr6));
597 strncpy(ifr6.ifr_name, ifname, strlen(ifname));
599 ifr6.ifr_addr = *(const struct sockaddr_in6 *)ifaddr;
601 if (ioctl(s, SIOCGIFAFLAG_IN6, &ifr6) < 0) {
610 if (ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_DUPLICATED
611 || ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_DETACHED
612 || ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_ANYCAST)
/external/ppp/pppd/
Dsys-linux.c2523 struct in6_ifreq ifr6; in sif6addr() local
2540 memset(&ifr6, 0, sizeof(ifr6)); in sif6addr()
2541 IN6_LLADDR_FROM_EUI64(ifr6.ifr6_addr, our_eui64); in sif6addr()
2542 ifr6.ifr6_ifindex = ifr.ifr_ifindex; in sif6addr()
2543 ifr6.ifr6_prefixlen = 10; in sif6addr()
2545 if (ioctl(sock6_fd, SIOCSIFADDR, &ifr6) < 0) { in sif6addr()
2574 struct in6_ifreq ifr6; in cif6addr() local
2588 memset(&ifr6, 0, sizeof(ifr6)); in cif6addr()
2589 IN6_LLADDR_FROM_EUI64(ifr6.ifr6_addr, our_eui64); in cif6addr()
2590 ifr6.ifr6_ifindex = ifr.ifr_ifindex; in cif6addr()
[all …]