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