[oe-commits] Richard Purdie : scripts/runqemu-ifup: Ensure netmask is set correctly

git at git.openembedded.org git at git.openembedded.org
Mon Dec 12 13:42:10 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 9e00d6b343120496ec0dd72240c7b04e0a8b7eaa
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9e00d6b343120496ec0dd72240c7b04e0a8b7eaa

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Dec 12 13:35:15 2011 +0000

scripts/runqemu-ifup: Ensure netmask is set correctly

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.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/runqemu-ifup |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup
index 870cb6b..3bd9980 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





More information about the Openembedded-commits mailing list