[PATCH 3/3] dhcp: add hook_edit() function