Lines Matching defs:current
66 isc_interface_t current; /* Current interface data. */
301 * Get information about the current interface to iter->current.
316 memset(&iter->current, 0, sizeof(iter->current));
317 iter->current.af = AF_INET;
319 get_addr(AF_INET, &iter->current.address,
326 iter->current.flags = 0;
330 iter->current.flags |= INTERFACE_F_UP;
333 iter->current.flags |= INTERFACE_F_POINTTOPOINT;
334 snprintf(iter->current.name, sizeof(iter->current.name),
340 iter->current.flags |= INTERFACE_F_LOOPBACK;
341 snprintf(iter->current.name, sizeof(iter->current.name),
349 if ((iter->current.flags & INTERFACE_F_POINTTOPOINT) != 0) {
350 get_addr(AF_INET, &iter->current.dstaddress,
355 snprintf(iter->current.name, sizeof(iter->current.name),
361 get_addr(AF_INET, &iter->current.netmask,
375 memset(&iter->current, 0, sizeof(iter->current));
376 iter->current.af = AF_INET6;
381 get_addr(AF_INET6, &iter->current.address,
388 iter->current.flags = INTERFACE_F_UP;
390 snprintf(iter->current.name, sizeof(iter->current.name),
394 iter->current.netmask.type.in6.s6_addr[i] = 0xff;
395 iter->current.netmask.family = AF_INET6;
396 if (IN6_IS_ADDR_LOOPBACK(&iter->current.address.type.in6))
418 iter->current.flags = INTERFACE_F_UP | INTERFACE_F_LOOPBACK;
419 snprintf(iter->current.name, sizeof(iter->current.name),
423 iter->current.address.type.in6.s6_addr[i] = 0;
425 iter->current.address.type.in6.s6_addr[i] = 1;
426 iter->current.netmask.type.in6.s6_addr[i] = 0xff;
428 iter->current.address.family = AF_INET6;
429 iter->current.netmask.family = AF_INET6;
480 memmove(ifdata, &iter->current, sizeof(*ifdata));