summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-11-28 21:23:43 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-11-28 21:23:43 +0000
commitab6ecdc1ed7075632325bbf496cabe7cdc83570e (patch)
tree1af05c253383d2cc2b86e9c794398195dcd0a786 /iw
parent345caabe67c7e3016086ac6686636260ce50e8f6 (diff)
downloadanaconda-ab6ecdc1ed7075632325bbf496cabe7cdc83570e.tar.gz
anaconda-ab6ecdc1ed7075632325bbf496cabe7cdc83570e.tar.xz
anaconda-ab6ecdc1ed7075632325bbf496cabe7cdc83570e.zip
All hail the United States Navy. This bug report came from them as they were trying to set up an all-IPv6 network with FC6 systems. They are actually using IPv6. Go figure.
Anyways, we only do broadcast and network address calculation when IPv4 is enabled.
Diffstat (limited to 'iw')
-rw-r--r--iw/network_gui.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index 965ad71d4..b61f7b7db 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -543,13 +543,14 @@ class NetworkWindow(InstallWindow):
if valsgood == 0:
continue
- try:
- (net, bc) = isys.inet_calcNetBroad (tmpvals['ipaddr'],
- tmpvals['netmask'])
- except Exception, e:
- print e
- self.handleBroadCastError()
- valsgood = 0
+ if IPV4cb.get_active() is True:
+ try:
+ (net, bc) = isys.inet_calcNetBroad (tmpvals['ipaddr'],
+ tmpvals['netmask'])
+ except Exception, e:
+ print e
+ self.handleBroadCastError()
+ valsgood = 0
if not valsgood:
continue
@@ -572,7 +573,8 @@ class NetworkWindow(InstallWindow):
else:
self.devices[dev].set((t, entrys[t].get_text()))
- self.devices[dev].set(('network', net), ('broadcast', bc))
+ if IPV4cb.get_active() is True:
+ self.devices[dev].set(('network', net), ('broadcast', bc))
self.devices[dev].set(('bootproto', bootproto))
self.devices[dev].set(('ONBOOT', onboot))