LCOV - code coverage report
Current view: top level - zephyr/net - loopback.h Coverage Total Hit
Test: new.info Lines: 100.0 % 1 1
Test Date: 2025-09-05 22:20:39

            Line data    Source code
       1            1 : /** @file
       2              :  * @brief Loopback control interface
       3              :  */
       4              : 
       5              : /*
       6              :  * Copyright (c) 2022 Radarxense B.V.
       7              :  *
       8              :  * SPDX-License-Identifier: Apache-2.0
       9              :  */
      10              : 
      11              : #ifndef ZEPHYR_INCLUDE_NET_LOOPBACK_H_
      12              : #define ZEPHYR_INCLUDE_NET_LOOPBACK_H_
      13              : 
      14              : #ifdef __cplusplus
      15              : extern "C" {
      16              : #endif
      17              : 
      18              : #ifdef CONFIG_NET_LOOPBACK_SIMULATE_PACKET_DROP
      19              : /**
      20              :  * @brief Set the packet drop rate
      21              :  *
      22              :  * @param[in] ratio Value between 0 = no packet loss and 1 = all packets dropped
      23              :  *
      24              :  * @return 0 on success, otherwise a negative integer.
      25              :  */
      26              : int loopback_set_packet_drop_ratio(float ratio);
      27              : 
      28              : /**
      29              :  * @brief Get the number of dropped packets
      30              :  *
      31              :  * @return number of packets dropped by the loopback interface
      32              :  */
      33              : int loopback_get_num_dropped_packets(void);
      34              : #endif
      35              : 
      36              : #ifdef __cplusplus
      37              : }
      38              : #endif
      39              : 
      40              : #endif /* ZEPHYR_INCLUDE_NET_LOOPBACK_H_ */
        

Generated by: LCOV version 2.0-1