diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-11-29 11:59:48 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-12-04 11:41:49 +0100 |
commit | 566de813c318d6d30ec3645ee46d3e7357e49f5e (patch) | |
tree | dbe65e34e292a68469e14a91601c48ea9f4cdc11 /target/linux/lantiq | |
parent | 81b5e8e5d21437a65ebfb98112a0709f4020af36 (diff) | |
download | upstream-566de813c318d6d30ec3645ee46d3e7357e49f5e.tar.gz upstream-566de813c318d6d30ec3645ee46d3e7357e49f5e.tar.bz2 upstream-566de813c318d6d30ec3645ee46d3e7357e49f5e.zip |
ramips: prevent packet forwarding on mt7620 between switch ports during init (FS#103)
By default, forwarding between all ports is allowed on init. This is
problematic in cases where some ports are supposed to be isolated from
each other, most commonly LAN/WAN separation.
REG_ESW_PORT_PCR(port) has a destination mask for a particular port,
controlling what other ports it is allowed to send packets to.
Instead of initializing all to 0xff (all ports), allow each physical
port to send to the CPU port, and the CPU port to send to all other
ports.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/lantiq')
0 files changed, 0 insertions, 0 deletions