Commit 20595ce1 authored by Philippe Gerum's avatar Philippe Gerum

net/ipv4: opt in for non-deliverable packet warning

parent 245104ca
......@@ -62,5 +62,14 @@ config XENO_DRIVERS_NET_RTIPV4_ROUTER
See Documentation/README.routing for further information.
config XENO_DRIVERS_NET_RTIPV4_DEBUG
bool "RTipv4 Debugging"
depends on XENO_DRIVERS_NET_RTIPV4
default n
---help---
Enables debug message output of the RTipv4 layer. Typically, you
may want to turn this on for tracing issues in packet delivery.
source "drivers/xenomai/net/stack/ipv4/udp/Kconfig"
# source "drivers/xenomai/net/stack/ipv4/tcp/Kconfig"
......@@ -105,7 +105,8 @@ static inline void rt_ip_local_deliver(struct rtskb *skb)
rt_ip_fallback_handler(skb);
#endif /* CONFIG_XENO_DRIVERS_NET_ADDON_PROXY */
} else {
rtdm_printk("RTnet: no protocol found\n");
if (IS_ENABLED(CONFIG_XENO_DRIVERS_NET_RTIPV4_DEBUG))
rtdm_printk("RTnet: no protocol found\n");
kfree_rtskb(skb);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment