From a71930a154ffff10cda62b7c12935757fb9ba958 Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 15 Mar 2007 15:07:20 +0000 Subject: [PATCH] 2007-03-15 15:07:19 by steve Broadcast works. --- etc/xen-tools.conf | 1 + hooks/debian/40-setup-networking | 9 +++++++++ hooks/edgy/40-setup-networking | 9 +++++++++ 3 files changed, 19 insertions(+) diff --git a/etc/xen-tools.conf b/etc/xen-tools.conf index a6a305c..b524440 100644 --- a/etc/xen-tools.conf +++ b/etc/xen-tools.conf @@ -130,6 +130,7 @@ image = sparse # Specify sparse vs. full disk images. # # gateway = 192.168.1.1 # netmask = 255.255.255.0 +# broadcast = 192.168.1.255 # # Uncomment this if you wish the images to use DHCP # diff --git a/hooks/debian/40-setup-networking b/hooks/debian/40-setup-networking index 8dd944e..2a22b39 100755 --- a/hooks/debian/40-setup-networking +++ b/hooks/debian/40-setup-networking @@ -77,6 +77,14 @@ setupStaticNetworking () point='' fi + # + # broadcast address? + # + bcast=''; + if [ ! -z "${broadcast}" ]; then + bcast = ' broadcast ${broadcast}' + fi + # # We have a static IP address # @@ -94,6 +102,7 @@ iface eth0 inet static address ${ip1} gateway ${gateway} netmask ${netmask} + ${bcast} ${point} # post-up ethtool -K eth0 tx off diff --git a/hooks/edgy/40-setup-networking b/hooks/edgy/40-setup-networking index eb51a40..8d04c63 100755 --- a/hooks/edgy/40-setup-networking +++ b/hooks/edgy/40-setup-networking @@ -67,6 +67,14 @@ E_O_DHCP # setupStaticNetworking () { + # + # broadcast address? + # + bcast=''; + if [ ! -z "${broadcast}" ]; then + bcast = ' broadcast ${broadcast}' + fi + # # We have a static IP address # @@ -84,6 +92,7 @@ iface eth0 inet static address ${ip1} gateway ${gateway} netmask ${netmask} + ${bcast} # post-up ethtool -K eth0 tx off #