Lines Matching refs:iface
534 const struct interface *iface,
540 time_t up = uptime() - iface->start_uptime;
546 const struct if_options *ifo = iface->state->options;
547 const struct dhcp_lease *lease = &iface->state->lease;
555 iface->net.s_addr == lease->net.s_addr &&
556 (iface->state->new == NULL ||
557 iface->state->new->cookie == htonl(MAGIC_COOKIE)))))
559 dhcp->ciaddr = iface->addr.s_addr;
561 if (type == DHCP_INFORM && iface->addr.s_addr == 0)
566 dhcp->hwtype = iface->family;
567 switch (iface->family) {
570 dhcp->hwlen = iface->hwlen;
571 memcpy(&dhcp->chaddr, &iface->hwaddr, iface->hwlen);
587 dhcp->xid = iface->state->xid;
594 if (iface->clientid) {
596 memcpy(p, iface->clientid, iface->clientid[0] + 1);
597 p += iface->clientid[0] + 1;
603 lease->addr.s_addr != iface->addr.s_addr))
633 sz = get_mtu(iface->name);
635 if (set_mtu(iface->name, MTU_MIN) == 0)