From ce6f26dde3139294aafbc2fb14a44aef44ce74d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 26 Aug 1998 18:51:37 +0000 Subject: [PATCH] Remove -c restrictions from previous commit. --- sbin/ping/ping.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 54025cc32e2b..4db695bb0ec3 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93"; #endif static const char rcsid[] = - "$Id: ping.c,v 1.39 1998/07/15 06:45:02 charnier Exp $"; + "$Id: ping.c,v 1.40 1998/08/26 01:58:39 dillon Exp $"; #endif /* not lint */ /* @@ -125,9 +125,6 @@ int options; #define F_MIF 0x1000 #define F_AUDIBLE 0x2000 -#define NPACKETS 16 -#define MAXUSRPACKETS 100 - /* * MAX_DUP_CHK is the number of bits in received table, i.e. the maximum * number of received sequence numbers we can keep track of. Change 128 @@ -232,9 +229,6 @@ main(argc, argv) "invalid count of packets to transmit: `%s'", optarg); npackets = ultmp; - if (uid && npackets > MAXUSRPACKETS) - errx(EX_USAGE, -"you cannot send more than %d packets.", MAXUSRPACKETS); break; case 'd': options |= F_SO_DEBUG; @@ -342,12 +336,6 @@ main(argc, argv) usage(); target = argv[optind]; - /* - * If not root, infinite packets not allowed. Limit to NPACKETS. - */ - if (uid && !npackets) - npackets = NPACKETS; - bzero((char *)&whereto, sizeof(struct sockaddr)); to = (struct sockaddr_in *)&whereto; to->sin_family = AF_INET;