Home | History | Annotate | Download | only in dhcpcd-6.8.2

Lines Matching refs:state

77 	const struct dhcp_state *state;
92 state = D_CSTATE(ifp);
93 if (state && state->addr.s_addr == addr)
107 struct dhcp_state *state = D_STATE(astate->iface);
109 if (state->state == DHS_IPV4LL_BOUND) {
114 if (state->state != DHS_BOUND) {
119 offer = state->offer;
120 state->offer = ipv4ll_make_lease(astate->addr.s_addr);
121 if (state->offer == NULL)
125 state->offer = offer;
132 struct dhcp_state *state = D_STATE(astate->iface);
134 state->conflicts = 0;
135 /* Need to keep the arp state so we can defend our IP. */
152 struct dhcp_state *state = D_STATE(astate->iface);
163 if (IN_LINKLOCAL(htonl(state->addr.s_addr)) &&
164 amsg && amsg->sip.s_addr == state->addr.s_addr)
165 fail = state->addr.s_addr;
173 if (astate->failed.s_addr == state->addr.s_addr) {
178 if (state->defend + DEFEND_INTERVAL > up) {
182 inet_ntoa(state->addr));
187 astate->iface->name, inet_ntoa(state->addr));
188 state->defend = up;
194 if (++state->conflicts == MAX_CONFLICTS)
200 state->conflicts >= MAX_CONFLICTS ?
209 struct dhcp_state *state = D_STATE(ifp);
213 if (state->arp_ipv4ll)
220 if (state->conflicts == 0) {
229 initstate(seed, state->randomstate, sizeof(state->randomstate));
235 state->arp_ipv4ll = astate;
240 if (IN_LINKLOCAL(htonl(state->addr.s_addr))) {
241 astate->addr = state->addr;
246 if (state->offer && IN_LINKLOCAL(ntohl(state->offer->yiaddr))) {
247 astate->addr.s_addr = state->offer->yiaddr;
248 free(state->offer);
249 state->offer = NULL;
259 setstate(state->randomstate);
278 struct dhcp_state *state = D_STATE(ifp);
280 eloop_timeout_delete(ifp->ctx->eloop, NULL, state->arp_ipv4ll);