summaryrefslogtreecommitdiff
path: root/package/dsniff/patches/patch-webmitm_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-11 13:16:37 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-11 13:16:37 +0100
commit8c45eacba4fa94578529e315df3330d0bfd2e7b3 (patch)
treec3849fccac5777c233bc75d50542287983edc6d7 /package/dsniff/patches/patch-webmitm_c
parent192d96ee05fb8aa253c94a3504cada2d37a94291 (diff)
fix compile with libnet 1.1.x, from macports
Diffstat (limited to 'package/dsniff/patches/patch-webmitm_c')
-rw-r--r--package/dsniff/patches/patch-webmitm_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/dsniff/patches/patch-webmitm_c b/package/dsniff/patches/patch-webmitm_c
new file mode 100644
index 000000000..2ff4d2331
--- /dev/null
+++ b/package/dsniff/patches/patch-webmitm_c
@@ -0,0 +1,20 @@
+--- dsniff-2.4.orig/webmitm.c 2001-03-17 09:35:05.000000000 +0100
++++ dsniff-2.4/webmitm.c 2009-12-11 13:05:28.000000000 +0100
+@@ -242,7 +242,7 @@ server_init(char *buf, int size)
+ word = buf_tok(&msg, "/", 1);
+ vhost = buf_strdup(word);
+ }
+- ssin.sin_addr.s_addr = libnet_name_resolve(vhost, 1);
++ ssin.sin_addr.s_addr = libnet_name2addr4(NULL, vhost, 1);
+ free(vhost);
+
+ if (ssin.sin_addr.s_addr == ntohl(INADDR_LOOPBACK) ||
+@@ -510,7 +510,7 @@ main(int argc, char *argv[])
+ argv += optind;
+
+ if (argc == 1) {
+- if ((static_host = libnet_name_resolve(argv[0], 1)) == -1)
++ if ((static_host = libnet_name2addr4(NULL, argv[0], 1)) == -1)
+ usage();
+ }
+ else if (argc != 0) usage();