remove the unused ip62str() function - we're not using IPv6Address objects

This commit is contained in:
iMHLv2
2013-01-31 03:04:25 +00:00
parent f78e443fd4
commit d0cdeb123b
-15
View File
@@ -93,21 +93,6 @@ class mac_netstat(lsof.mac_lsof):
return (lip, lport, rip, rport)
def ip62str(self, ipbytes):
ret = ""
ctr = 0
for byte in ipbytes:
ret = ret + "%.02x" % byte
# make it the : notation
if ctr % 2 and ctr != 15:
ret = ret + ":"
ctr = ctr + 1
return ret
def parse_ipv6(self, socket, pcb, proto):
lip = pcb.inp_dependladdr.inp6_local.__u6_addr.v()
lport = self.port(pcb.inp_lport.v())