-diff -Nur dsniff-2.3/configure dsniff-2.3.patched/configure
---- dsniff-2.3/configure 2005-06-11 18:13:59.000000000 +0200
-+++ dsniff-2.3.patched/configure 2005-06-11 18:14:37.000000000 +0200
+Index: dsniff-2.4/configure
+===================================================================
+--- dsniff-2.4.orig/configure 2010-11-03 23:42:49.466000001 +0100
++++ dsniff-2.4/configure 2010-11-03 23:42:52.921000006 +0100
@@ -16,6 +16,8 @@
ac_help="$ac_help
--with-db=DIR use Berkeley DB (with --enable-compat185) in DIR"
--with-libpcap=DIR use libpcap in DIR"
ac_help="$ac_help
--with-libnet=DIR use libnet in DIR"
-@@ -3051,7 +3053,40 @@
+@@ -3059,7 +3061,40 @@
fi
echo $ac_n "checking for libnet""... $ac_c" 1>&6
-diff -Nur dsniff-2.3/record.c dsniff-2.3.patched/record.c
---- dsniff-2.3/record.c 2000-11-14 16:51:02.000000000 +0100
-+++ dsniff-2.3.patched/record.c 2005-06-11 18:14:56.000000000 +0200
-@@ -13,12 +13,7 @@
+Index: dsniff-2.4/record.c
+===================================================================
+--- dsniff-2.4.orig/record.c 2010-11-03 23:42:49.471000001 +0100
++++ dsniff-2.4/record.c 2010-11-03 23:42:52.922000005 +0100
+@@ -15,12 +15,7 @@
#include <stdio.h>
#include <time.h>
#include <md5.h>
-#endif
+#include <gdbm.h>
#include <libnet.h>
+
#include "options.h"
- #include "record.h"
-@@ -34,7 +29,7 @@
+@@ -37,7 +32,7 @@
struct netobj data;
};
static int
xdr_rec(XDR *xdrs, struct rec *rec)
-@@ -61,7 +56,6 @@
+@@ -64,7 +59,6 @@
tm = localtime(&rec->time);
strftime(tstr, sizeof(tstr), "%x %X", tm);
srcp = libnet_host_lookup(rec->src, Opt_dns);
dstp = libnet_host_lookup(rec->dst, Opt_dns);
-@@ -86,10 +80,10 @@
+@@ -89,10 +83,10 @@
fflush(stdout);
}
static u_char hash[16];
MD5_CTX ctx;
-@@ -102,16 +96,16 @@
+@@ -105,16 +99,16 @@
MD5Update(&ctx, rec->data.n_bytes, rec->data.n_len);
MD5Final(hash, &ctx);
XDR xdrs;
u_char buf[2048];
-@@ -120,15 +114,15 @@
+@@ -123,15 +117,15 @@
if (!xdr_rec(&xdrs, rec))
return (0);
return (1);
}
-@@ -136,18 +130,22 @@
+@@ -139,18 +133,22 @@
void
record_dump(void)
{
}
}
-@@ -155,16 +153,23 @@
+@@ -158,16 +156,23 @@
record_init(char *file)
{
int flags, mode;
return (0);
return (1);
-@@ -203,6 +208,6 @@
+@@ -206,6 +211,6 @@
void
record_close(void)
{