Lines Matching defs:ifra
103 struct ifaliasreq ifra;
105 bzero(&ifra, sizeof(ifra));
106 strlcpy(ifra.ifra_name, name, sizeof(ifra.ifra_name));
108 *((struct sockaddr_in *)&ifra.ifra_addr) = blank_sin;
109 ((struct sockaddr_in *)&ifra.ifra_addr)->sin_addr = *addr;
112 *((struct sockaddr_in *)&ifra.ifra_mask) = blank_sin;
113 ((struct sockaddr_in *)&ifra.ifra_mask)->sin_addr = *mask;
116 *((struct sockaddr_in *)&ifra.ifra_broadaddr) = blank_sin;
117 ((struct sockaddr_in *)&ifra.ifra_broadaddr)->sin_addr = *broadcast;
119 return (ifioctl(so, SIOCAIFADDR, (caddr_t)&ifra, current_proc()));