LCOV - code coverage report
Current view: top level - zephyr/posix/net - if.h Coverage Total Hit
Test: new.info Lines: 0.0 % 9 0
Test Date: 2025-09-05 16:43:28

            Line data    Source code
       1            0 : /*
       2              :  * Copyright (c) 2019 Linaro Limited
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : #ifndef ZEPHYR_INCLUDE_POSIX_NET_IF_H_
       7              : #define ZEPHYR_INCLUDE_POSIX_NET_IF_H_
       8              : 
       9              : #ifdef CONFIG_NET_INTERFACE_NAME_LEN
      10              : #define IF_NAMESIZE CONFIG_NET_INTERFACE_NAME_LEN
      11              : #else
      12            0 : #define IF_NAMESIZE 1
      13              : #endif
      14              : 
      15              : #ifdef __cplusplus
      16              : extern "C" {
      17              : #endif
      18              : 
      19            0 : struct if_nameindex {
      20            0 :         unsigned int if_index;
      21            0 :         char *if_name;
      22              : };
      23              : 
      24            0 : char *if_indextoname(unsigned int ifindex, char *ifname);
      25            0 : void if_freenameindex(struct if_nameindex *ptr);
      26            0 : struct if_nameindex *if_nameindex(void);
      27            0 : unsigned int if_nametoindex(const char *ifname);
      28              : 
      29              : #ifdef __cplusplus
      30              : }
      31              : #endif
      32              : 
      33              : #endif /* ZEPHYR_INCLUDE_POSIX_NET_IF_H_ */
        

Generated by: LCOV version 2.0-1