forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipq807x: Moved to a separate file the misc fixes (fix NAT Loopback wi…
…th ECM enabled and threaded network backlog processing) to make them apply right after the network service is started (start=20)
- Loading branch information
1 parent
e789100
commit 9c20f0e
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
START=21 | ||
|
||
start() { | ||
|
||
# Enabled threaded network backlog processing | ||
|
||
echo 1 > /proc/sys/net/core/backlog_threaded | ||
|
||
# Enabled "hairpin_mode" in LANs ports of br-lan for fix NAT Loopback with ECM enabled, by the default the value for the radios WIFI is 1, so I don't touch it | ||
|
||
for i in `ls -1d /sys/class/net/br-lan/brif/lan*` | ||
do | ||
echo 1 > $i/hairpin_mode | ||
done | ||
|
||
} | ||
|
||
stop() { | ||
|
||
# Disabled threaded network backlog processing | ||
|
||
echo 0 > /proc/sys/net/core/backlog_threaded | ||
|
||
# Disabled "hairpin_mode" in LANs ports of br-lan for fix NAT Loopback with ECM disabled, by the default the value for the radios WIFI is 1, so I don't touch it | ||
|
||
for i in `ls -1d /sys/class/net/br-lan/brif/lan*` | ||
do | ||
echo 0 > $i/hairpin_mode | ||
done | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters