head	1.4;
access;
symbols
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.3
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.3
	RELEASE_3_3_0:1.3
	RELEASE_3_2_0:1.3
	RELEASE_3_1_0:1.3
	RELEASE_2_2_8:1.2
	portscanner_1_0:1.1.1.1
	BILLF:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2002.07.07.20.11.57;	author billf;	state dead;
branches;
next	1.3;

1.3
date	98.12.03.19.17.30;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	98.11.18.21.29.24;	author billf;	state Exp;
branches;
next	1.1;

1.1
date	98.11.17.20.46.44;	author billf;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.11.17.20.46.44;	author billf;	state Exp;
branches;
next	;


desc
@@


1.4
log
@upgrade from 1.0 to 1.2

Submitted by:	fenner's distfile survey
@
text
@--- portscanner.c.orig	Sun Aug  9 14:50:35 1998
+++ portscanner.c	Thu Dec  3 11:15:05 1998
@@@@ -24,18 +24,21 @@@@
 /***********************************************************/
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <netinet/in.h>
-#include <unistd.h>
+#include <arpa/inet.h>
 #include <netdb.h>
 #include <sys/time.h>
 #include <fcntl.h>
+#include <string.h>
 
 int sock = -1;
 struct sockaddr_in address;
 int result;
-extern char *sys_errlist[];
+/* extern char *sys_errlist[]; */
 extern int errno;
 int current_port = 0; 
 u_short base_port = 0;
@@@@ -83,7 +86,7 @@@@
           } else if (verbose == 2) printf(" address valid\n");
    
    if ((base_port > end_port) || ((short)base_port < 0)) { 
-     fprintf(stderr,"Bad port range : start=%d end=%d !\n");
+     fprintf(stderr,"Bad port range : start=%d end=%d !\n",base_port,end_port);
      exit(1);
    } else if (verbose == 2) {
             printf("Port range: %d to %d\n",base_port,end_port);
@


1.3
log
@printf() was missing some arguments.  -Wall is such a nice thing.
@
text
@@


1.2
log
@Fix ports/net/portscanner for 3.0-* people.

PR:		ports/8737
Reviewed by:	Bill Fumerola <billf@@FreeBSD.org>
Submitted by:	Osokin Sergey <osa@@freebsd.org.ru>
@
text
@d1 3
a3 3
--- portscanner.c.old	Wed Nov 18 16:25:41 1998
+++ portscanner.c	Wed Nov 18 16:25:53 1998
@@@@ -24,10 +24,10 @@@@
d7 1
d13 1
d17 2
a18 1
@@@@ -35,7 +35,7 @@@@
d27 9
@


1.1
log
@Initial revision
@
text
@d1 14
a14 2
--- portscanner.c.old	Tue Aug 11 17:11:20 1998
+++ portscanner.c	Tue Aug 11 17:11:27 1998
@


1.1.1.1
log
@Initial import of portscanner, a quick and dirty way to scan ports
similar to strobe, but much quicker, and good for use in scripts and CGI.

PR:		ports/7582
@
text
@@
