summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-12 13:35:15 +0000
committerSaul Wold <sgw@linux.intel.com>2011-12-13 12:05:29 -0800
commitb806f726b1db2cb605869c1022ef727c1110255b (patch)
tree14c3337b902eda06a789cf945cf94c589631a0e0
parent160c1d99774969b4bf23662421c2bf1894244345 (diff)
downloadpoky-1.2_M1.tar.gz
poky-1.2_M1.tar.bz2
poky-1.2_M1.zip
scripts/runqemu-ifup: Ensure netmask is set correctly1.2_M1.rc21.2_M1.final1.2_M1
Without this the command will add a route for the subnet 192.168.7.0 which means multiple qemu instances can't operate correctly since all but the last one will be masked out. (From OE-Core rev: 9e00d6b343120496ec0dd72240c7b04e0a8b7eaa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu-ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup
index 870cb6bcb7..3bd9980ad0 100755
--- a/scripts/runqemu-ifup
+++ b/scripts/runqemu-ifup
@@ -94,7 +94,7 @@ if [ ! -x "$IPTABLES" ]; then
fi
n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ]
-$IFCONFIG $TAP 192.168.7.$n
+$IFCONFIG $TAP 192.168.7.$n netmask 255.255.255.255
dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ]
$ROUTE add -host 192.168.7.$dest $TAP