Use tags from pxe-proxy dhcp-range statements.

This commit is contained in:
Simon Kelley
2013-08-20 10:33:32 +01:00
parent e4cdbbf521
commit a37cd7aaf5

View File

@@ -848,7 +848,15 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
if (tmp)
{
struct dhcp_boot *boot = find_boot(tagif_netid);
struct dhcp_boot *boot;
if (tmp->netid.net)
{
tmp->netid.next = netid;
tagif_netid = run_tag_if(&tmp->netid);
}
boot = find_boot(tagif_netid);
mess->yiaddr.s_addr = 0;
if (mess_type == DHCPDISCOVER || mess->ciaddr.s_addr == 0)