Lines Matching refs:interfaces
155 static struct interface *interfaces; variable
611 ap->ira_addr = interfaces[i].localaddr.s_addr; in advertise()
612 ap->ira_preference = htonl(interfaces[i].preference); in advertise()
621 &interfaces[i]); in advertise()
624 &interfaces[i]); in advertise()
626 struct interface *ifp = &interfaces[i]; in advertise()
1002 if ((interfaces[i].flags & (IFF_BROADCAST|IFF_POINTOPOINT)) == 0) in sendbcast()
1004 cc = sendbcastif(s, packet, packetlen, &interfaces[i]); in sendbcast()
1044 if ((interfaces[i].flags & (IFF_BROADCAST|IFF_POINTOPOINT|IFF_MULTICAST)) == 0) in sendmcast()
1046 cc = sendmcastif(s, packet, packetlen, sin, &interfaces[i]); in sendmcast()
1095 interfaces[i].preference = preference; in init()
1131 if (interfaces != NULL) in initifs()
1132 (void) free(interfaces); in initifs()
1133 interfaces = (struct interface *)ALLIGN(malloc(numifs * in initifs()
1135 if (interfaces == NULL) { in initifs()
1168 strncpy(interfaces[i].name, ifr->ifr_name, IFNAMSIZ-1); in initifs()
1171 interfaces[i].localaddr = sin->sin_addr; in initifs()
1172 interfaces[i].flags = ifreq.ifr_flags; in initifs()
1173 interfaces[i].netmask.s_addr = (__u32)0xffffffff; in initifs()
1178 interfaces[i].ifindex = ifreq.ifr_ifindex; in initifs()
1186 interfaces[i].address = sin->sin_addr; in initifs()
1187 interfaces[i].remoteaddr = sin->sin_addr; in initifs()
1189 interfaces[i].bcastaddr = sin->sin_addr; in initifs()
1190 interfaces[i].flags |= IFF_BROADCAST; in initifs()
1193 interfaces[i].address = interfaces[i].localaddr; in initifs()
1194 interfaces[i].remoteaddr = interfaces[i].address; in initifs()
1200 interfaces[i].netmask = sin->sin_addr; in initifs()
1207 interfaces[i].bcastaddr = sin->sin_addr; in initifs()
1213 pr_name(interfaces[i].localaddr), in initifs()
1214 interfaces[i].flags); in initifs()
1242 if (joined[j] == interfaces[i].ifindex) in join()
1248 mreq.imr_ifindex = interfaces[i].ifindex; in join()
1257 joined[i] = interfaces[i].ifindex; in join()
1290 if ((in.s_addr & interfaces[i].netmask.s_addr ) == in is_directly_connected()
1291 (interfaces[i].remoteaddr.s_addr & interfaces[i].netmask.s_addr)) in is_directly_connected()