diff mbox

[RFC,3/4] net: port mirroring: add config options to enable port mirroring

Message ID 20091215163840.GE18710@hmsreliant.think-freely.org
State RFC, archived
Delegated to: David Miller
Headers show

Commit Message

Neil Horman Dec. 15, 2009, 4:38 p.m. UTC
Add configuration to enable port mirroring feature.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>


 Kconfig       |   14 ++++++++++++++
 core/Makefile |    1 +
 2 files changed, 15 insertions(+)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/Kconfig b/net/Kconfig
index 041c35e..b94f950 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -246,6 +246,20 @@  config NET_DROP_MONITOR
 	just checking the various proc files and other utilities for
 	drop statistics, say N here.
 
+config NET_PORT_MIRRORING
+	boolean "Network port mirroring"
+	depends on EXPERIMENTAL && TRACEPOINTS
+	---help---
+	When debugging network connectivity problems, it can be useful (and
+	sometimes necessecary) to record frames from an interface without using
+	any of the systems under test (e.g. if running a capture on the system
+	in question affects it in such a way that the problem then cannot be 
+	reproduced).  Port mirroring allows for the traffic to and from a given
+	port to be resent unaltered to a secondary port, so that a tertiary
+	system can record the traffic).  If you need to be able to see monitor
+	network traffic to/from a system without running software on the system
+	in question, say Y here.
+
 endmenu
 
 endmenu
diff --git a/net/core/Makefile b/net/core/Makefile
index 08791ac..305d88d 100644
--- a/net/core/Makefile
+++ b/net/core/Makefile
@@ -18,4 +18,5 @@  obj-$(CONFIG_NET_DMA) += user_dma.o
 obj-$(CONFIG_FIB_RULES) += fib_rules.o
 obj-$(CONFIG_TRACEPOINTS) += net-traces.o
 obj-$(CONFIG_NET_DROP_MONITOR) += drop_monitor.o
+obj-$(CONFIG_NET_PORT_MIRRORING) += mirror.o