From 8c45eacba4fa94578529e315df3330d0bfd2e7b3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 11 Dec 2009 13:16:37 +0100 Subject: fix compile with libnet 1.1.x, from macports --- package/dsniff/patches/patch-webmitm_c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/dsniff/patches/patch-webmitm_c (limited to 'package/dsniff/patches/patch-webmitm_c') 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(); -- cgit v1.2.3