dhcp: clear c_gateway and c_prefixlen before remove