Hi,
I'm interested in adding port mirroring support to OpenWRT, which allows to
reuse a switch port to "sniff" on another port. This is a great debugging tool
and is supported by most managed switches (e.g. [4]).
The two patches for the rtl8366rb [1] and ar8216 [2] drivers haven't drawn much
(any?) attention and I wanted to know if I can help integrating them.
I dove through a couple of product briefs and datasheets and with the present
set of switch drivers it should be possible to add port mirroring to the
majority of drivers (datasheets are a must however):
* mvswitch
88E6060 - should be possible using the Port Association Vector (tx only is
possible, rx implies tx mirroring). no hardware to test against
* adm6996 - not supported
* ar8216
AR8316 - unknown
AR8216 - unknown
AR8236 - product sheet claims support
AR8327 - patch available and tested on TL-WDR4300
AR8328 - product sheet claims support
* b53
BCM5325E - product sheet claims support. WRT54GL is available but no
datasheet
BCM5236 - unknown
BCM539x - unknown
BCM53115 - product sheet claims support
BCM53125 - unknown
BCM63XX - unknown
* psb6970 - product sheet claims support
* ip17xx
IP175A - not supported
IP175C - not supported
IP175D - product sheet claims support
* rtl8306 - not supported
* rtl8366rb - patch available and tested on TL-WR1043ND
* rtl8366s - datasheet claims support through ACLs. pre-release datasheet 1.4
has no documentation on how to use ACLs
* rtl8367 - product sheet claims support
The available patches add four global swlib options:
enable_mirror_rx
enable_mirror_tx
mirror_monitor_port
mirror_source_port
This one-to-one model doesn't reflect the capabilites some of these switches
have, but I opted for a KISS solution :).
LuCI integration is available too [3], so end users could use this feature
right away.
Thanks,
Colin
[1]: http://patchwork.openwrt.org/patch/1466/
[2]: http://patchwork.openwrt.org/patch/3515/
[3]: https://dev.openwrt.org/ticket/10202
[4]: http://www.netgear.de/images/FSM726v3_DS_02Feb1122-5241.pdf
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel