]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: add loopback device tracking
authorJohn Rutherford <john.rutherford@dektech.com.au>
Wed, 7 Aug 2019 02:52:29 +0000 (12:52 +1000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 05:11:39 +0000 (22:11 -0700)
commite4f3a0fee3388bfa8d92b2d81abcba115501ecf5
treef4f751d693daadfe7794648c529958b1da1b7b5b
parent5305415920beb0157f7ab8b429f5db18b538d2a4
tipc: add loopback device tracking

Since node internal messages are passed directly to the socket, it is not
possible to observe those messages 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 enabled if network taps are active for the loopback device.
pcap filtering restrictions require the messages to be presented to the
receiving side of the loopback device.

v3 - Function dev_nit_active used to check for network taps.
   - Procedure netif_rx_ni used to send cloned messages to loopback device.

Signed-off-by: John Rutherford <john.rutherford@dektech.com.au>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.c
net/tipc/bearer.c
net/tipc/bearer.h
net/tipc/core.c
net/tipc/core.h
net/tipc/node.c
net/tipc/topsrv.c