Lines Matching refs:yiaddr
392 mess->yiaddr = config->addr; in dhcp_reply()
405 if (!address_allocate(context, &mess->yiaddr, mess->chaddr, mess->hlen, netid, in dhcp_reply()
409 mess->yiaddr = lease->addr; in dhcp_reply()
412 if (!message && !(context = narrow_context(context, mess->yiaddr, netid))) in dhcp_reply()
425 if (!message && !lease && (!(lease = lease_allocate(mess->yiaddr)))) in dhcp_reply()
429 logaddr = &mess->yiaddr; in dhcp_reply()
439 do_options(context, mess, end, NULL, hostname, get_domain(mess->yiaddr), domain, in dhcp_reply()
665 mess->yiaddr = mess->ciaddr; in dhcp_reply()
686 log_packet("PXE", &mess->yiaddr, emac, emac_len, iface_name, (char*) mess->file, in dhcp_reply()
699 mess->yiaddr.s_addr = 0; in dhcp_reply()
828 mess->yiaddr = conf; in dhcp_reply()
831 mess->yiaddr = lease->addr; in dhcp_reply()
835 mess->yiaddr = addr; in dhcp_reply()
838 else if (!address_allocate(context, &mess->yiaddr, emac, emac_len, netid, now)) in dhcp_reply()
845 if (message || !(context = narrow_context(context, mess->yiaddr, netid))) return 0; in dhcp_reply()
847 log_packet("DHCPOFFER", &mess->yiaddr, emac, emac_len, iface_name, NULL, mess->xid); in dhcp_reply()
865 do_options(context, mess, end, req_options, offer_hostname, get_domain(mess->yiaddr), in dhcp_reply()
874 mess->yiaddr = option_addr(opt); in dhcp_reply()
899 if (lease && lease->addr.s_addr != mess->yiaddr.s_addr) { in dhcp_reply()
907 if (lease && lease->addr.s_addr != mess->yiaddr.s_addr) { in dhcp_reply()
928 mess->yiaddr = mess->ciaddr; in dhcp_reply()
931 log_packet("DHCPREQUEST", &mess->yiaddr, emac, emac_len, iface_name, NULL, mess->xid); in dhcp_reply()
941 if (!(context = narrow_context(context, mess->yiaddr, netid))) { in dhcp_reply()
949 else if (!address_available(context, mess->yiaddr, netid) && in dhcp_reply()
951 config->addr.s_addr != mess->yiaddr.s_addr)) in dhcp_reply()
960 config->addr.s_addr != mess->yiaddr.s_addr && in dhcp_reply()
965 else if ((addr_config = config_find_by_address(daemon->dhcp_conf, mess->yiaddr)) && in dhcp_reply()
969 else if (!lease && (ltmp = lease_find_by_addr(mess->yiaddr))) { in dhcp_reply()
987 if ((lease = lease_allocate(mess->yiaddr))) in dhcp_reply()
996 … log_packet("DHCPNAK", &mess->yiaddr, emac, emac_len, iface_name, message, mess->xid); in dhcp_reply()
998 mess->yiaddr.s_addr = 0; in dhcp_reply()
1052 if (!hostname_auth && (client_hostname = host_from_dns(mess->yiaddr))) { in dhcp_reply()
1081 log_packet("DHCPACK", &mess->yiaddr, emac, emac_len, iface_name, hostname, in dhcp_reply()
1094 do_options(context, mess, end, req_options, hostname, get_domain(mess->yiaddr), in dhcp_reply()