diff options
author | Sofian Brabez <sbz@FreeBSD.org> | 2014-07-22 12:33:36 +0000 |
---|---|---|
committer | Sofian Brabez <sbz@FreeBSD.org> | 2014-07-22 12:33:36 +0000 |
commit | 2e875105323361b0bb01abf7a11128835825d298 (patch) | |
tree | cbdf82280505965ba43404b81015df8104b28d5e /security/dsniff/files/patch-filesnarf.c | |
parent | - Update to version 0.46, stagify, and cleanup the port (diff) |
- Update to 2.4b1
- Fix build with libnet11 and libnids (introduced by r361784)
Reported by: pkg-fallout
Notes
Notes:
svn path=/head/; revision=362536
Diffstat (limited to '')
-rw-r--r-- | security/dsniff/files/patch-filesnarf.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/security/dsniff/files/patch-filesnarf.c b/security/dsniff/files/patch-filesnarf.c new file mode 100644 index 000000000000..f7d8a084198c --- /dev/null +++ b/security/dsniff/files/patch-filesnarf.c @@ -0,0 +1,22 @@ +--- ./filesnarf.c.orig 2001-03-15 09:33:03.000000000 +0100 ++++ ./filesnarf.c 2014-07-22 13:20:14.000000000 +0200 +@@ -134,8 +134,8 @@ + int fd; + + warnx("%s.%d > %s.%d: %s (%d@%d)", +- libnet_host_lookup(addr->daddr, 0), addr->dest, +- libnet_host_lookup(addr->saddr, 0), addr->source, ++ libnet_addr2name4(addr->daddr, LIBNET_DONT_RESOLVE), addr->dest, ++ libnet_addr2name4(addr->saddr, LIBNET_DONT_RESOLVE), addr->source, + ma->filename, len, ma->offset); + + if ((fd = open(ma->filename, O_WRONLY|O_CREAT, 0644)) >= 0) { +@@ -353,7 +353,7 @@ + } + + static void +-decode_udp_nfs(struct libnet_ip_hdr *ip) ++decode_udp_nfs(struct libnet_ipv4_hdr *ip) + { + static struct tuple4 addr; + struct libnet_udp_hdr *udp; |