Ticket #21225: patch-filesnarf.c.diff

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

    old new  
    134134        int fd;
    135135
    136136        warnx("%s.%d > %s.%d: %s (%d@%d)",
    137               libnet_host_lookup(addr->daddr, 0), addr->dest,
    138               libnet_host_lookup(addr->saddr, 0), addr->source,
     137              libnet_addr2name4(addr->daddr, LIBNET_DONT_RESOLVE), addr->dest,
     138              libnet_addr2name4(addr->saddr, LIBNET_DONT_RESOLVE), addr->source,
    139139              ma->filename, len, ma->offset);
    140140       
    141141        if ((fd = open(ma->filename, O_WRONLY|O_CREAT, 0644)) >= 0) {
     
    353353}
    354354
    355355static void
    356 decode_udp_nfs(struct libnet_ip_hdr *ip)
     356decode_udp_nfs(struct libnet_ipv4_hdr *ip)
    357357{
    358358        static struct tuple4 addr;
    359359        struct libnet_udp_hdr *udp;