Lines Matching refs:context_tmp
291 struct dhcp_context *context_tmp, *context_new = NULL; in dhcp_reply() local
309 for (context_tmp = context; context_tmp; context_tmp = context_tmp->current) in dhcp_reply()
310 if (context_tmp->netmask.s_addr && in dhcp_reply()
311 is_same_net(addr, context_tmp->start, context_tmp->netmask) && in dhcp_reply()
312 is_same_net(addr, context_tmp->end, context_tmp->netmask)) in dhcp_reply()
320 for (context_tmp = daemon->dhcp; context_tmp; context_tmp = context_tmp->next) in dhcp_reply()
321 if (context_tmp->netmask.s_addr && in dhcp_reply()
322 is_same_net(addr, context_tmp->start, context_tmp->netmask) && in dhcp_reply()
323 is_same_net(addr, context_tmp->end, context_tmp->netmask)) in dhcp_reply()
325 context_tmp->current = context_new; in dhcp_reply()
326 context_new = context_tmp; in dhcp_reply()
347 struct dhcp_context *context_tmp; in dhcp_reply() local
348 for (context_tmp = context; context_tmp; context_tmp = context_tmp->current) in dhcp_reply()
350 strcpy(daemon->namebuff, inet_ntoa(context_tmp->start)); in dhcp_reply()
351 if (context_tmp->flags & (CONTEXT_STATIC | CONTEXT_PROXY)) in dhcp_reply()
353 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->netmask)); in dhcp_reply()
356 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->end)); in dhcp_reply()