[PATCH v4 1/4] dhcp: Refactor fill_one() to operate on a generic buffer