diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-03-24 12:05:56 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-03-24 12:12:09 +0100 |
commit | 4336cfda123af6a1f664e2288625f2b7e1d858d9 (patch) | |
tree | bffe812662005fea71767c9d9f2063eff48002e3 /target/linux | |
parent | 13eb73b2788d1526318fd89e8b9c5ad4a7d716b6 (diff) | |
download | upstream-4336cfda123af6a1f664e2288625f2b7e1d858d9.tar.gz upstream-4336cfda123af6a1f664e2288625f2b7e1d858d9.tar.bz2 upstream-4336cfda123af6a1f664e2288625f2b7e1d858d9.zip |
ramips: allow packets with ttl=0
Some broken ISPs (e.g. Comcast) send DHCPv6 packets with hop limit=0.
This trips up the TTL=0 check in the PPE if enabled.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_offload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_offload.c b/target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_offload.c index 3001c081f7..9de3f67bca 100644 --- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_offload.c +++ b/target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_offload.c @@ -370,8 +370,8 @@ static int mtk_ppe_start(struct mtk_eth *eth) mtk_w32(eth, 0x55555555, MTK_REG_PPE_DFT_CPORT); #endif - /* drop packets with TTL=0 */ - mtk_m32(eth, 0, MTK_PPE_GLO_CFG_TTL0_DROP, MTK_REG_PPE_GLO_CFG); + /* allow packets with TTL=0 */ + mtk_m32(eth, MTK_PPE_GLO_CFG_TTL0_DROP, 0, MTK_REG_PPE_GLO_CFG); /* send all traffic from gmac to the ppe */ mtk_m32(eth, 0xffff, 0x4444, MTK_GDMA_FWD_CFG(0)); |