summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2012-06-07 16:36:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-08 11:43:20 +0100
commit4706e1f44865fa8c84f728dd38fd06e122dc20f5 (patch)
tree13d5fec9eb1398274f3810a4342ec77a0c334f4d
parent241ecd30baeac6f0bde96fcb6b3e820ca1db4a5e (diff)
downloadtizen-distro-4706e1f44865fa8c84f728dd38fd06e122dc20f5.tar.gz
tizen-distro-4706e1f44865fa8c84f728dd38fd06e122dc20f5.tar.bz2
tizen-distro-4706e1f44865fa8c84f728dd38fd06e122dc20f5.zip
runqemu-ifup: enable arp proxying
This allows core-image-sato to access the WAN. Thanks to Dexuan Cui for proposing this fix. Fixes [YOCTO #2329] (From OE-Core rev: d294b1bddece429f2639676ddc97d2896fc58916) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu-ifup1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup
index e4c3dafeef..0926faf439 100755
--- a/scripts/runqemu-ifup
+++ b/scripts/runqemu-ifup
@@ -109,6 +109,7 @@ $ROUTE add -host 192.168.7.$dest $TAP
$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$n/32
$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$dest/32
echo 1 > /proc/sys/net/ipv4/ip_forward
+echo 1 > /proc/sys/net/ipv4/conf/$TAP/proxy_arp
$IPTABLES -P FORWARD ACCEPT
echo $TAP