/* * Copyright (c) 2020 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Zperf sample. */ #include #include #ifdef CONFIG_NET_LOOPBACK_SIMULATE_PACKET_DROP #include #endif int main(void) { #if defined(CONFIG_USB_DEVICE_STACK) int ret; ret = usb_enable(NULL); if (ret != 0) { printk("usb enable error %d\n", ret); } (void)net_config_init_app(NULL, "Initializing network"); #endif /* CONFIG_USB_DEVICE_STACK */ #ifdef CONFIG_NET_LOOPBACK_SIMULATE_PACKET_DROP loopback_set_packet_drop_ratio(1); #endif return 0; }