Ticket #21225: patch-record.c.diff

File patch-record.c.diff, 465 bytes (added by hsivank@…, 15 years ago)
  • record.c

    old new  
    6565        tm = localtime(&rec->time);
    6666        strftime(tstr, sizeof(tstr), "%x %X", tm);
    6767       
    68         srcp = libnet_host_lookup(rec->src, Opt_dns);
    69         dstp = libnet_host_lookup(rec->dst, Opt_dns);
     68        srcp = libnet_addr2name4(rec->src, Opt_dns);
     69        dstp = libnet_addr2name4(rec->dst, Opt_dns);
    7070
    7171        if ((pr = getprotobynumber(rec->proto)) == NULL)
    7272                protop = "unknown";