diff options
author | Josh Blum <josh@joshknows.com> | 2012-07-12 01:18:40 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-07-12 01:18:40 -0700 |
commit | af6ad0d8ae9235b261799e4384ffc7fc59c4319c (patch) | |
tree | c32e3b739d9378954caa3d93b5c7ab8e4d13417a | |
parent | ce2d5e2b8a8ca97cd24654e0ea7c0ed86aae525c (diff) | |
download | uhd-af6ad0d8ae9235b261799e4384ffc7fc59c4319c.tar.gz uhd-af6ad0d8ae9235b261799e4384ffc7fc59c4319c.tar.bz2 uhd-af6ad0d8ae9235b261799e4384ffc7fc59c4319c.zip |
n2xx: fix for usrp_n2xx_net_burner addr decode failure
In the windows network address extractor:
The except: continue line could get use stuck in an infinite loop.
This fix sets addr to None so the code below it does not execute,
and the next node in the chain is tested as expected.
-rwxr-xr-x | host/utils/usrp_n2xx_net_burner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/usrp_n2xx_net_burner.py b/host/utils/usrp_n2xx_net_burner.py index c52be3d44..f2cfb8ecf 100755 --- a/host/utils/usrp_n2xx_net_burner.py +++ b/host/utils/usrp_n2xx_net_burner.py @@ -199,7 +199,7 @@ def win_get_interfaces(): try: ipAddr = adNode.ipAddress.decode() ipMask = adNode.ipMask.decode() - except: continue + except: ipAddr = None if ipAddr and ipMask: hexAddr = struct.unpack("<L", socket.inet_aton(ipAddr))[0] hexMask = struct.unpack("<L", socket.inet_aton(ipMask))[0] |