summaryrefslogtreecommitdiff
path: root/package/dsniff/patches/patch-urlsnarf_c
blob: 74ca39b4d09eae80a81ee2b01e589cc1cf04bde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- dsniff-2.4.orig/urlsnarf.c	2001-03-15 10:26:13.000000000 +0100
+++ dsniff-2.4/urlsnarf.c	2009-12-11 13:03:37.000000000 +0100
@@ -145,14 +145,14 @@ process_http_request(struct tuple4 *addr
 		if (user == NULL)
 			user = "-";
 		if (vhost == NULL)
-			vhost = libnet_host_lookup(addr->daddr, Opt_dns);
+			vhost = libnet_addr2name4(addr->daddr, Opt_dns);
 		if (referer == NULL)
 			referer = "-";
 		if (agent == NULL)
 			agent = "-";
 		
 		printf("%s - %s [%s] \"%s http://%s%s\" - - \"%s\" \"%s\"\n",
-		       libnet_host_lookup(addr->saddr, Opt_dns),
+		       libnet_addr2name4(addr->saddr, Opt_dns),
 		       user, timestamp(), req, vhost, uri, referer, agent);
 	}
 	fflush(stdout);