From d0cdeb123b6d391dee993dbaf4ca9139ccca62cd Mon Sep 17 00:00:00 2001 From: iMHLv2 Date: Thu, 31 Jan 2013 03:04:25 +0000 Subject: [PATCH] remove the unused ip62str() function - we're not using IPv6Address objects --- volatility/plugins/mac/netstat.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/volatility/plugins/mac/netstat.py b/volatility/plugins/mac/netstat.py index 89882203..568a0e44 100644 --- a/volatility/plugins/mac/netstat.py +++ b/volatility/plugins/mac/netstat.py @@ -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())