summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Marineau <marineam@gentoo.org>2007-05-01 00:20:35 +0000
committerMichael Marineau <marineam@gentoo.org>2007-05-01 00:20:35 +0000
commitb7d4200a3880b72dcea0babc4f30102dbef10b16 (patch)
tree0114f2026822d2e7fc4c6aa2faaabaf7a976a044 /app-emulation/xen-tools/files/xen-tools-3.0.4_p1-network-bridge-broadcast.patch
parentFix the xen remove mintor mode patch, now typing works. (diff)
downloadxen-b7d4200a3880b72dcea0babc4f30102dbef10b16.tar.gz
xen-b7d4200a3880b72dcea0babc4f30102dbef10b16.tar.bz2
xen-b7d4200a3880b72dcea0babc4f30102dbef10b16.zip
Copy xen-tools 3.0.2 into overlay and reorganize the files dir. This is what the portage commit will look like.
svn path=/xen/; revision=25
Diffstat (limited to 'app-emulation/xen-tools/files/xen-tools-3.0.4_p1-network-bridge-broadcast.patch')
-rw-r--r--app-emulation/xen-tools/files/xen-tools-3.0.4_p1-network-bridge-broadcast.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-emulation/xen-tools/files/xen-tools-3.0.4_p1-network-bridge-broadcast.patch b/app-emulation/xen-tools/files/xen-tools-3.0.4_p1-network-bridge-broadcast.patch
new file mode 100644
index 0000000..e830de5
--- /dev/null
+++ b/app-emulation/xen-tools/files/xen-tools-3.0.4_p1-network-bridge-broadcast.patch
@@ -0,0 +1,19 @@
+diff -ru xen-3.0.4_1-src.orig/tools/examples/network-bridge xen-3.0.4_1-src/tools/examples/network-bridge
+--- xen-3.0.4_1-src.orig/tools/examples/network-bridge 2007-01-08 07:00:48.000000000 -0800
++++ xen-3.0.4_1-src/tools/examples/network-bridge 2007-03-05 17:37:32.000000000 -0800
+@@ -70,13 +70,13 @@
+ vif0="vif0.${vifnum}"
+
+ get_ip_info() {
+- addr_pfx=`ip addr show dev $1 | egrep '^ *inet' | sed -e 's/ *inet //' -e 's/ .*//'`
++ addr_pfx=`ip addr show dev $1 | egrep '^ *inet' | sed -e 's/ *inet //' -e "s/$1//"`
+ gateway=`ip route show dev $1 | fgrep default | sed 's/default via //'`
+ }
+
+ do_ifup() {
+ if ! ifup $1 ; then
+- if [ ${addr_pfx} ] ; then
++ if [ "${addr_pfx}" ] ; then
+ # use the info from get_ip_info()
+ ip addr flush $1
+ ip addr add ${addr_pfx} dev $1