[PATCH net-next 2/4] selftests: forwarding: lib: Move require_command to net, generalize