Lines Matching defs:current
76 isc_interface_t current; /* Current interface data. */
402 memset(&iter->current, 0, sizeof(iter->current));
403 iter->current.af = iter->clua_sa.sa_family;
404 memset(iter->current.name, 0, sizeof(iter->current.name));
405 snprintf(iter->current.name, sizeof(iter->current.name),
407 iter->current.flags = INTERFACE_F_UP;
408 get_inaddr(&iter->current.address, &ci.addr);
409 get_inaddr(&iter->current.netmask, &ci.netmask);
415 * Get information about the current interface to iter->current.
461 memset(&iter->current, 0, sizeof(iter->current));
462 iter->current.af = family;
464 INSIST(sizeof(ifreq.ifr_name) <= sizeof(iter->current.name));
465 memset(iter->current.name, 0, sizeof(iter->current.name));
466 memmove(iter->current.name, ifreq.ifr_name, sizeof(ifreq.ifr_name));
468 get_addr(family, &iter->current.address,
476 if (iter->current.address.type.in.s_addr == htonl(INADDR_ANY))
480 if (memcmp(&iter->current.address.type.in6, &in6addr_any,
490 iter->current.flags = 0;
506 iter->current.flags |= INTERFACE_F_UP;
510 iter->current.flags |= INTERFACE_F_POINTTOPOINT;
514 iter->current.flags |= INTERFACE_F_LOOPBACK;
521 memmove(lifreq.lifr_name, iter->current.name, sizeof(lifreq.lifr_name));
522 memmove(&lifreq.lifr_addr, &iter->current.address.type.in6,
523 sizeof(iter->current.address.type.in6));
534 isc_netaddr_format(&iter->current.address, sabuf, sizeof(sabuf));
549 iter->current.netmask.family = family;
558 iter->current.netmask.type.in6.s6_addr[i] = (~0 << bits) & 0xff;
569 if ((iter->current.flags & INTERFACE_F_POINTTOPOINT) != 0) {
587 get_addr(family, &iter->current.dstaddress,
612 get_addr(family, &iter->current.netmask,
644 memset(&iter->current, 0, sizeof(iter->current));
645 iter->current.af = family;
647 INSIST(sizeof(lifreq.lifr_name) <= sizeof(iter->current.name));
648 memset(iter->current.name, 0, sizeof(iter->current.name));
649 memmove(iter->current.name, lifreq.lifr_name, sizeof(lifreq.lifr_name));
651 get_addr(family, &iter->current.address,
659 if (iter->current.address.type.in.s_addr == htonl(INADDR_ANY))
663 if (memcmp(&iter->current.address.type.in6, &in6addr_any,
673 iter->current.flags = 0;
694 iter->current.flags |= INTERFACE_F_UP;
698 iter->current.flags |= INTERFACE_F_POINTTOPOINT;
702 iter->current.flags |= INTERFACE_F_LOOPBACK;
708 if ((iter->current.flags & INTERFACE_F_POINTTOPOINT) != 0) {
726 get_addr(family, &iter->current.dstaddress,
747 iter->current.netmask.family = family;
751 iter->current.netmask.type.in6.s6_addr[i / 8] =
774 get_addr(family, &iter->current.netmask,