packet: Fix DHCP packing

Thanks to @apanda for the bug report.