summaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-05-09 23:39:52 -0700
committerJosh Blum <josh@joshknows.com>2012-05-09 23:39:52 -0700
commit58bebf5511dffde44fb0e2a14edb3778e54aaf2b (patch)
tree4bd42bbfbaa4336b8f28400a6518798777c6ace2 /host/utils
parente8f449b0fc228bf7143b336ae0079e83e7e5b269 (diff)
parenta6845bd0dd8cf34f0e62d7484267e7c581815af0 (diff)
downloaduhd-58bebf5511dffde44fb0e2a14edb3778e54aaf2b.tar.gz
uhd-58bebf5511dffde44fb0e2a14edb3778e54aaf2b.tar.bz2
uhd-58bebf5511dffde44fb0e2a14edb3778e54aaf2b.zip
Merge branch 'maint'
Diffstat (limited to 'host/utils')
-rwxr-xr-xhost/utils/usrp_n2xx_net_burner.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/utils/usrp_n2xx_net_burner.py b/host/utils/usrp_n2xx_net_burner.py
index 835ab696f..f38a72fa1 100755
--- a/host/utils/usrp_n2xx_net_burner.py
+++ b/host/utils/usrp_n2xx_net_burner.py
@@ -205,9 +205,9 @@ def win_get_interfaces():
hexMask = struct.unpack("<L", socket.inet_aton(ipMask))[0]
if(hexAddr and hexMask): #don't broadcast on 255.255.255.255, that's just lame
yield socket.inet_ntoa(struct.pack("<L", (hexAddr & hexMask) | (~hexMask) & 0xFFFFFFFF))
- adNode = adNode.next
- if not adNode:
- break
+ try: adNode = adNode.next
+ except: break
+ if not adNode: break
def enumerate_devices():
for bcast_addr in get_interfaces():