Lines Matching refs:iface
88 struct interface *iface = arg; in start_ipv4ll() local
91 delete_timeout(NULL, iface); in start_ipv4ll()
92 iface->state->probes = 0; in start_ipv4ll()
93 iface->state->claims = 0; in start_ipv4ll()
94 if (iface->addr.s_addr) { in start_ipv4ll()
95 iface->state->conflicts = 0; in start_ipv4ll()
96 if (IN_LINKLOCAL(htonl(iface->addr.s_addr))) { in start_ipv4ll()
97 send_arp_announce(iface); in start_ipv4ll()
102 if (iface->state->offer == NULL) in start_ipv4ll()
105 addr = iface->state->offer->yiaddr; in start_ipv4ll()
106 free(iface->state->offer); in start_ipv4ll()
111 iface->name); in start_ipv4ll()
115 iface->state->offer = find_ipv4ll_lease(addr); in start_ipv4ll()
117 iface->state->offer = make_ipv4ll_lease(addr); in start_ipv4ll()
118 iface->state->lease.frominfo = 0; in start_ipv4ll()
119 send_arp_probe(iface); in start_ipv4ll()
125 struct interface *iface = arg; in handle_ipv4ll_failure() local
128 if (iface->state->fail.s_addr == iface->addr.s_addr) { in handle_ipv4ll_failure()
130 if (iface->state->defend + DEFEND_INTERVAL > up) { in handle_ipv4ll_failure()
133 iface->name, DEFEND_INTERVAL); in handle_ipv4ll_failure()
134 drop_dhcp(iface, "EXPIRE"); in handle_ipv4ll_failure()
135 iface->state->conflicts = -1; in handle_ipv4ll_failure()
138 iface->name); in handle_ipv4ll_failure()
139 iface->state->defend = up; in handle_ipv4ll_failure()
144 close_sockets(iface); in handle_ipv4ll_failure()
145 free(iface->state->offer); in handle_ipv4ll_failure()
146 iface->state->offer = NULL; in handle_ipv4ll_failure()
147 delete_timeout(NULL, iface); in handle_ipv4ll_failure()
148 if (++iface->state->conflicts > MAX_CONFLICTS) { in handle_ipv4ll_failure()
150 iface->name); in handle_ipv4ll_failure()
151 iface->state->interval = RATE_LIMIT_INTERVAL / 2; in handle_ipv4ll_failure()
152 start_discover(iface); in handle_ipv4ll_failure()
154 add_timeout_sec(PROBE_WAIT, start_ipv4ll, iface); in handle_ipv4ll_failure()