1 /* 2 * Copyright (c) 2024 Nordic Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/net/net_if.h> 8 9 #if defined(CONFIG_NET_CONNECTION_MANAGER) 10 void wait_for_network(void); 11 #else wait_for_network(void)12static inline void wait_for_network(void) { } 13 #endif /* CONFIG_NET_CONNECTION_MANAGER */ 14 15 #if defined(CONFIG_NET_VLAN) 16 int init_vlan(void); 17 #else init_vlan(void)18static inline int init_vlan(void) 19 { 20 return 0; 21 } 22 #endif /* CONFIG_NET_VLAN */ 23 24 #if defined(CONFIG_NET_L2_IPIP) 25 int init_tunnel(void); 26 bool is_tunnel(struct net_if *iface); 27 #else init_tunnel(void)28static inline int init_tunnel(void) 29 { 30 return 0; 31 } 32 is_tunnel(struct net_if * iface)33static inline bool is_tunnel(struct net_if *iface) 34 { 35 ARG_UNUSED(iface); 36 return false; 37 } 38 #endif /* CONFIG_NET_L2_IPIP */ 39