summaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
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():