From a1c4f3fbd5c6c2c9bed3a4e3a5343dea850e4e8e Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 19 Apr 2017 14:11:52 +0300 Subject: [PATCH] net: Print debug info if packet is loopback back to us Without this info it is a bit difficult to notice what is going on in loopback case. Change-Id: I8f61330c01d025e41f00d663bd26947b8cafb5c0 Signed-off-by: Jukka Rissanen --- subsys/net/ip/net_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/net/ip/net_core.c b/subsys/net/ip/net_core.c index 19edec77604..f5d0e1d472e 100644 --- a/subsys/net/ip/net_core.c +++ b/subsys/net/ip/net_core.c @@ -311,6 +311,7 @@ int net_send_data(struct net_pkt *pkt) /* Packet is destined back to us so send it directly * to RX processing. */ + NET_DBG("Loopback pkt %p back to us", pkt); processing_data(pkt, true); return 0; }