Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def ip(data): 
    if not isinstance(data, str): data = unlong(data)
    return '.'.join([str(ord(c)) for c in data])
        


src/k/y/kyro-HEAD/lib/probe.py   kyro(Download)
                    # ICMP Time Exceeded
                    original_ip_header, original_data = data[28:48], data[48:56]
                    dest_addr = util.ip(original_ip_header[16:20])
                    probe = self.get_probe(dest_addr)
                    if not probe: return