--- dsniff-2.3/arpspoof.c	2000-11-28 08:43:43.000000000 +0100
+++ dsniff-2.3-utm/arpspoof.c	2007-07-19 12:27:11.000000000 +0200
@@ -34,7 +34,7 @@
 usage(void)
 {
 	fprintf(stderr, "Version: " VERSION "\n"
-		"Usage: arpspoof [-i interface] [-t target] host\n");
+		"Usage: arpspoof [-i interface] [-t target] [-c count] host\n");
 	exit(1);
 }
 
@@ -149,12 +149,17 @@
 {
 	int c;
 	char ebuf[PCAP_ERRBUF_SIZE];
+	int count = 3;
+	int i;
 	
 	intf = NULL;
 	spoof_ip = target_ip = 0;
 	
-	while ((c = getopt(argc, argv, "i:t:h?V")) != -1) {
+	while ((c = getopt(argc, argv, "c:i:t:h?V")) != -1) {
 		switch (c) {
+		case 'c':
+			count = atoi(optarg);
+			break;
 		case 'i':
 			intf = optarg;
 			break;
@@ -189,7 +194,7 @@
 	signal(SIGINT, cleanup);
 	signal(SIGTERM, cleanup);
 	
-	for (;;) {
+	for (i = 0; i < count; i++) {
 		arp_send(llif, intf, ARPOP_REPLY, NULL, spoof_ip,
 			 (target_ip ? (u_char *)&target_mac : NULL),
 			 target_ip);

