diff options
Diffstat (limited to 'app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch')
-rw-r--r-- | app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch b/app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch new file mode 100644 index 0000000..f916ece --- /dev/null +++ b/app-emulation/xen-tools/files/xen-tools-3.1.3-network-bridge-broadcast.patch @@ -0,0 +1,11 @@ +--- xen-3.1.3/tools/examples/network-bridge.orig 2008-01-31 02:06:54.000000000 -0800 ++++ xen-3.1.3/tools/examples/network-bridge 2008-02-02 17:21:25.000000000 -0800 +@@ -70,7 +70,7 @@ + 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 //'` + } + |