From: john.rutherf...@dektech.com.au Date: Mon, 24 Jun 2019 16:44:35 +1000 > Since node internal messages are passed directly to socket it is not > possible to observe this message exchange via tcpdump or wireshark. > > We now remedy this by making it possible to clone such messages and send > the clones to the loopback interface. The clones are dropped at reception > and have no functional role except making the traffic visible. > > The feature is turned on/off by enabling/disabling the loopback "bearer" > "eth:lo". > > Acked-by: Jon Maloy <jon.ma...@ericsson.com> > Signed-off-by: John Rutherford <john.rutherf...@dektech.com.au>
What a waste, just clone the packet, attach loopback to it, and go: if (dev_nit_active(loopback_dev)) dev_queue_xmit_nit(skb, loopback_dev);