Centralise construction of the DHCP request and response packets.