• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/iputils/

Lines Matching defs:interfaces

156 static struct interface *interfaces;
157 static int interfaces_size; /* Number of elements in interfaces */
596 * TODO handle multiple logical interfaces per
601 ap->ira_addr = interfaces[i].localaddr.s_addr;
602 ap->ira_preference = htonl(interfaces[i].preference);
611 &interfaces[i]);
614 &interfaces[i]);
616 struct interface *ifp = &interfaces[i];
984 if ((interfaces[i].flags & (IFF_BROADCAST|IFF_POINTOPOINT)) == 0)
986 cc = sendbcastif(s, packet, packetlen, &interfaces[i]);
1026 if ((interfaces[i].flags & (IFF_BROADCAST|IFF_POINTOPOINT|IFF_MULTICAST)) == 0)
1028 cc = sendmcastif(s, packet, packetlen, sin, &interfaces[i]);
1077 interfaces[i].preference = preference;
1113 if (interfaces)
1114 interfaces = (struct interface *)ALLIGN(realloc((char *)interfaces,
1117 interfaces = (struct interface *)ALLIGN(malloc(numifs *
1119 if (interfaces == NULL) {
1152 strncpy(interfaces[i].name, ifr->ifr_name, IFNAMSIZ-1);
1155 interfaces[i].localaddr = sin->sin_addr;
1156 interfaces[i].flags = ifreq.ifr_flags;
1157 interfaces[i].netmask.s_addr = (__u32)0xffffffff;
1162 interfaces[i].ifindex = ifreq.ifr_ifindex;
1170 interfaces[i].address = sin->sin_addr;
1171 interfaces[i].remoteaddr = sin->sin_addr;
1173 interfaces[i].bcastaddr = sin->sin_addr;
1174 interfaces[i].flags |= IFF_BROADCAST;
1177 interfaces[i].address = interfaces[i].localaddr;
1178 interfaces[i].remoteaddr = interfaces[i].address;
1184 interfaces[i].netmask = sin->sin_addr;
1191 interfaces[i].bcastaddr = sin->sin_addr;
1197 pr_name(interfaces[i].localaddr),
1198 interfaces[i].flags);
1205 logdebug("Found %d interfaces\n", num_interfaces);
1222 mreq.imr_ifindex = interfaces[i].ifindex;
1262 if ((in.s_addr & interfaces[i].netmask.s_addr ) ==
1263 (interfaces[i].remoteaddr.s_addr & interfaces[i].netmask.s_addr))