summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches/108-hwnat-ifname.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/patches/108-hwnat-ifname.patch')
-rwxr-xr-xtarget/linux/ramips/patches/108-hwnat-ifname.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ramips/patches/108-hwnat-ifname.patch b/target/linux/ramips/patches/108-hwnat-ifname.patch
new file mode 100755
index 0000000..6b6fed1
--- /dev/null
+++ b/target/linux/ramips/patches/108-hwnat-ifname.patch
@@ -0,0 +1,21 @@
+Index: linux-3.10.14/net/nat/hw_nat/ra_nat.c
+===================================================================
+--- linux-3.10.14.orig/net/nat/hw_nat/ra_nat.c
++++ linux-3.10.14/net/nat/hw_nat/ra_nat.c
+@@ -4157,6 +4157,16 @@ static void SetAclFwd(uint32_t Ebl)
+ #endif
+ #endif
+ LanInt = ra_dev_get_by_name("br0");
++/* discard above!! */
++#if defined (CONFIG_SUPPORT_OPENWRT)
++#if defined (CONFIG_RALINK_MT7621) || defined (CONFIG_ARCH_MT7623)
++ WanInt = ra_dev_get_by_name("eth1");
++#else
++ WanInt = ra_dev_get_by_name("eth0.2");
++#endif
++ LanInt = ra_dev_get_by_name("br-lan");
++#endif
++
+ for(i = 0;i< 6;i++){
+ value = RegRead(RALINK_ETH_SW_BASE + 0x2004 + (i * 0x100));
+ value |= (0x1 << 10);