def testAddressDecoding(self): self.assertEqual(tools.DecodeAddress(six.b('\xc0\xa8\x00\xff')), '192.168.0.255')
def get_framed_ipaddr(self): try: return tools.DecodeAddress(self.get(8)[0]) except: return None
def get_framed_netmask(self): try: return tools.DecodeAddress(self.get(9)[0]) except: return None
def get_nas_addr(self): try: return tools.DecodeAddress(self.get(4)[0]) except: return None