Lines Matching refs:yiaddr
428 mess->yiaddr = config->addr; in dhcp_reply()
446 if (!address_allocate(context, &mess->yiaddr, mess->chaddr, mess->hlen, netid, now)) in dhcp_reply()
450 mess->yiaddr = lease->addr; in dhcp_reply()
453 if (!message && !(context = narrow_context(context, mess->yiaddr, netid))) in dhcp_reply()
472 (!(lease = lease_allocate(mess->yiaddr)))) in dhcp_reply()
477 logaddr = &mess->yiaddr; in dhcp_reply()
489 do_options(context, mess, end, NULL, hostname, get_domain(mess->yiaddr), in dhcp_reply()
752 mess->yiaddr = mess->ciaddr; in dhcp_reply()
773 log_packet("PXE", &mess->yiaddr, emac, emac_len, iface_name, (char *)mess->file, mess->xid); in dhcp_reply()
787 mess->yiaddr.s_addr = 0; in dhcp_reply()
926 mess->yiaddr = conf; in dhcp_reply()
930 mess->yiaddr = lease->addr; in dhcp_reply()
933 mess->yiaddr = addr; in dhcp_reply()
936 else if (!address_allocate(context, &mess->yiaddr, emac, emac_len, netid, now)) in dhcp_reply()
942 if (message || !(context = narrow_context(context, mess->yiaddr, netid))) in dhcp_reply()
945 log_packet("DHCPOFFER" , &mess->yiaddr, emac, emac_len, iface_name, NULL, mess->xid); in dhcp_reply()
964 do_options(context, mess, end, req_options, offer_hostname, get_domain(mess->yiaddr), in dhcp_reply()
975 mess->yiaddr = option_addr(opt); in dhcp_reply()
1008 if (lease && lease->addr.s_addr != mess->yiaddr.s_addr) in dhcp_reply()
1020 if (lease && lease->addr.s_addr != mess->yiaddr.s_addr) in dhcp_reply()
1045 mess->yiaddr = mess->ciaddr; in dhcp_reply()
1048 log_packet("DHCPREQUEST", &mess->yiaddr, emac, emac_len, iface_name, NULL, mess->xid); in dhcp_reply()
1060 if (!(context = narrow_context(context, mess->yiaddr, netid))) in dhcp_reply()
1069 else if (!address_available(context, mess->yiaddr, netid) && in dhcp_reply()
1070 (!have_config(config, CONFIG_ADDR) || config->addr.s_addr != mess->yiaddr.s_addr)) in dhcp_reply()
1080 config->addr.s_addr != mess->yiaddr.s_addr && in dhcp_reply()
1085 …else if ((addr_config = config_find_by_address(daemon->dhcp_conf, mess->yiaddr)) && addr_config !=… in dhcp_reply()
1088 else if (!lease && (ltmp = lease_find_by_addr(mess->yiaddr))) in dhcp_reply()
1110 if ((lease = lease_allocate(mess->yiaddr))) in dhcp_reply()
1120 log_packet("DHCPNAK", &mess->yiaddr, emac, emac_len, iface_name, message, mess->xid); in dhcp_reply()
1122 mess->yiaddr.s_addr = 0; in dhcp_reply()
1186 if (!hostname_auth && (client_hostname = host_from_dns(mess->yiaddr))) in dhcp_reply()
1221 log_packet("DHCPACK", &mess->yiaddr, emac, emac_len, iface_name, hostname, mess->xid); in dhcp_reply()
1234 do_options(context, mess, end, req_options, hostname, get_domain(mess->yiaddr), in dhcp_reply()