From 5ebbf8a887c33c5afbae3f135e48bab0574396bc Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 18 Apr 2012 15:08:45 -0700 Subject: n2x0: card burner fixes for python3.0 and IPv6 has_key is not in python3.0, use key in dict put try catch around interface enumeration, might be an ipv6 issue --- host/utils/usrp_n2xx_net_burner.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'host/utils') diff --git a/host/utils/usrp_n2xx_net_burner.py b/host/utils/usrp_n2xx_net_burner.py index ae6219524..6d1c02712 100755 --- a/host/utils/usrp_n2xx_net_burner.py +++ b/host/utils/usrp_n2xx_net_burner.py @@ -196,8 +196,10 @@ def win_get_interfaces(): adNode = a.ipAddressList while True: #convert ipAddr and ipMask into hex addrs that can be turned into a bcast addr - ipAddr = adNode.ipAddress.decode() - ipMask = adNode.ipMask.decode() + try: + ipAddr = adNode.ipAddress.decode() + ipMask = adNode.ipMask.decode() + except AttributeError: pass if ipAddr and ipMask: hexAddr = struct.unpack("