Beispiel #1
0
 def _handle_v6(self, input):
     input = Converter.expand_ipv6(input)
     input = Converter.remove_non_hexa_sumbols(input)
     split = int(len(input) / 2)
     low = Converter.convertstring2int(input[split:])
     high = Converter.convertstring2int(input[:split])
     return high, low
Beispiel #2
0
def v6_to_packer_format(v6_addr):
    return pattern_to_ascii_chars(
        Converter.remove_non_hexa_sumbols(Converter.expand_ipv6(v6_addr)))