diff options
author | Josh Blum <josh@joshknows.com> | 2012-05-09 23:39:52 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-05-09 23:39:52 -0700 |
commit | 58bebf5511dffde44fb0e2a14edb3778e54aaf2b (patch) | |
tree | 4bd42bbfbaa4336b8f28400a6518798777c6ace2 /host/utils | |
parent | e8f449b0fc228bf7143b336ae0079e83e7e5b269 (diff) | |
parent | a6845bd0dd8cf34f0e62d7484267e7c581815af0 (diff) | |
download | uhd-58bebf5511dffde44fb0e2a14edb3778e54aaf2b.tar.gz uhd-58bebf5511dffde44fb0e2a14edb3778e54aaf2b.tar.bz2 uhd-58bebf5511dffde44fb0e2a14edb3778e54aaf2b.zip |
Merge branch 'maint'
Diffstat (limited to 'host/utils')
-rwxr-xr-x | host/utils/usrp_n2xx_net_burner.py | 6 |
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(): |