@@ -1827,15 +1827,33 @@ bool net_if_ipv6_router_rm(struct net_if_router *router);
18271827 *
18281828 * @return Hop limit
18291829 */
1830+ #if defined(CONFIG_NET_NATIVE_IPV6 )
18301831uint8_t net_if_ipv6_get_hop_limit (struct net_if * iface );
1832+ #else
1833+ static inline uint8_t net_if_ipv6_get_hop_limit (struct net_if * iface )
1834+ {
1835+ ARG_UNUSED (iface );
1836+
1837+ return 0 ;
1838+ }
1839+ #endif /* CONFIG_NET_NATIVE_IPV6 */
18311840
18321841/**
18331842 * @brief Set the default IPv6 hop limit of a given interface.
18341843 *
18351844 * @param iface Network interface
18361845 * @param hop_limit New hop limit
18371846 */
1847+ #if defined(CONFIG_NET_NATIVE_IPV6 )
18381848void net_if_ipv6_set_hop_limit (struct net_if * iface , uint8_t hop_limit );
1849+ #else
1850+ static inline void net_if_ipv6_set_hop_limit (struct net_if * iface ,
1851+ uint8_t hop_limit )
1852+ {
1853+ ARG_UNUSED (iface );
1854+ ARG_UNUSED (hop_limit );
1855+ }
1856+ #endif /* CONFIG_NET_NATIVE_IPV6 */
18391857
18401858/** @cond INTERNAL_HIDDEN */
18411859
@@ -1860,15 +1878,33 @@ static inline void net_ipv6_set_hop_limit(struct net_if *iface,
18601878 *
18611879 * @return Hop limit
18621880 */
1881+ #if defined(CONFIG_NET_NATIVE_IPV6 )
18631882uint8_t net_if_ipv6_get_mcast_hop_limit (struct net_if * iface );
1883+ #else
1884+ static inline uint8_t net_if_ipv6_get_mcast_hop_limit (struct net_if * iface )
1885+ {
1886+ ARG_UNUSED (iface );
1887+
1888+ return 0 ;
1889+ }
1890+ #endif /* CONFIG_NET_NATIVE_IPV6 */
18641891
18651892/**
18661893 * @brief Set the default IPv6 multicast hop limit of a given interface.
18671894 *
18681895 * @param iface Network interface
18691896 * @param hop_limit New hop limit
18701897 */
1898+ #if defined(CONFIG_NET_NATIVE_IPV6 )
18711899void net_if_ipv6_set_mcast_hop_limit (struct net_if * iface , uint8_t hop_limit );
1900+ #else
1901+ static inline void net_if_ipv6_set_mcast_hop_limit (struct net_if * iface ,
1902+ uint8_t hop_limit )
1903+ {
1904+ ARG_UNUSED (iface );
1905+ ARG_UNUSED (hop_limit );
1906+ }
1907+ #endif /* CONFIG_NET_NATIVE_IPV6 */
18721908
18731909/**
18741910 * @brief Set IPv6 reachable time for a given interface
0 commit comments