Lines Matching refs:ifr_addr
76 if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_ifru)) in iface_enumerate()
77 len = ifr->ifr_addr.sa_len + offsetof(struct ifreq, ifr_ifru); in iface_enumerate()
86 if (ifr->ifr_addr.sa_family == AF_INET && ipv4_callback) in iface_enumerate()
90 addr = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; in iface_enumerate()
93 netmask = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; in iface_enumerate()
95 broadcast = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; in iface_enumerate()
103 else if (ifr->ifr_addr.sa_family == AF_INET6 && ipv6_callback) in iface_enumerate()
105 struct in6_addr *addr = &((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_addr; in iface_enumerate()
113 (int)((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_scope_id, in iface_enumerate()
183 ifr->ifr_addr.sa_family = AF_LINK; in send_via_bpf()
187 memcpy(ether.ether_shost, LLADDR((struct sockaddr_dl *)&ifr->ifr_addr), ETHER_ADDR_LEN); in send_via_bpf()