Lines Matching defs:current
34 struct ifaddrs *pos; /*%< Ptr to current ifaddr */
35 isc_interface_t current; /*%< Current interface data. */
110 * Get information about the current interface to iter->current.
146 memset(&iter->current, 0, sizeof(iter->current));
149 if (namelen > sizeof(iter->current.name) - 1)
150 namelen = sizeof(iter->current.name) - 1;
152 memset(iter->current.name, 0, sizeof(iter->current.name));
153 memmove(iter->current.name, ifa->ifa_name, namelen);
155 iter->current.flags = 0;
158 iter->current.flags |= INTERFACE_F_UP;
161 iter->current.flags |= INTERFACE_F_POINTTOPOINT;
164 iter->current.flags |= INTERFACE_F_LOOPBACK;
166 iter->current.af = family;
168 get_addr(family, &iter->current.address, ifa->ifa_addr, ifa->ifa_name);
171 get_addr(family, &iter->current.netmask, ifa->ifa_netmask,
175 (iter->current.flags & INTERFACE_F_POINTTOPOINT) != 0)
176 get_addr(family, &iter->current.dstaddress, ifa->ifa_dstaddr,