Ticket #21225: patch-filesnarf.c.diff
File patch-filesnarf.c.diff, 733 bytes (added by hsivank@…, 15 years ago) |
---|
-
filesnarf.c
old new 134 134 int fd; 135 135 136 136 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, 139 139 ma->filename, len, ma->offset); 140 140 141 141 if ((fd = open(ma->filename, O_WRONLY|O_CREAT, 0644)) >= 0) { … … 353 353 } 354 354 355 355 static void 356 decode_udp_nfs(struct libnet_ip _hdr *ip)356 decode_udp_nfs(struct libnet_ipv4_hdr *ip) 357 357 { 358 358 static struct tuple4 addr; 359 359 struct libnet_udp_hdr *udp;