/* * Copyright (c) 2022 Meta * * SPDX-License-Identifier: Apache-2.0 */ #include "_common.h" #ifdef CONFIG_POSIX_API #include #else #include #endif /** * @brief existence test for `` * * @see net/if.h */ ZTEST(posix_headers, test_net_if_h) { /* zassert_not_equal(-1, offsetof(struct if_nameindex, if_index)); */ /* not implemented */ /* zassert_not_equal(-1, offsetof(struct if_nameindex, if_name)); */ /* not implemented */ /* zassert_not_equal(-1, IF_NAMESIZE); */ /* not implemented */ if (IS_ENABLED(CONFIG_POSIX_API)) { /* zassert_not_null(if_freenameindex); */ /* not implemented */ /* zassert_not_null(if_indextoname); */ /* not implemented */ /* zassert_not_null(if_nameindex); */ /* not implemented */ /* zassert_not_null(if_nametoindex); */ /* not implemented */ } }