DHCP code was using an incorrect check for whether to construct a DHCPDISCOVER or DHCPREQUEST packet.