Commit a3cde71f authored by Marcin Gasiorek's avatar Marcin Gasiorek Committed by Carles Cufi
Browse files

net: Remove '#ifdef CONFIG_NET_ROUTE' around forwarding getter and setter.

Because `forwarding` flag is available unconditionally the compilation
guard has no make sense. Additionally this flag and related getter and
setter can be used for e.g. IPv4 packets forwarding in future, which
would be impossible looking at `NET_ROUTE` dependencies.

Signed-off-by: default avatarMarcin Gasiorek <marcin.gasiorek@nordicsemi.no>
parent 6a536f9f
Loading
Loading
Loading
Loading
+0 −7
Changes for include/zephyr/net/net_pkt.h: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -477,7 +477,6 @@ static inline void net_pkt_set_eof(struct net_pkt *pkt, bool eof)
}
#endif

#if defined(CONFIG_NET_ROUTE)
static inline bool net_pkt_forwarding(struct net_pkt *pkt)
{
	return pkt->forwarding;
@@ -487,12 +486,6 @@ static inline void net_pkt_set_forwarding(struct net_pkt *pkt, bool forward)
{
	pkt->forwarding = forward;
}
#else
static inline bool net_pkt_forwarding(struct net_pkt *pkt)
{
	return false;
}
#endif

#if defined(CONFIG_NET_IPV4)
static inline uint8_t net_pkt_ipv4_ttl(struct net_pkt *pkt)