diff options
author | des <des@FreeBSD.org> | 1998-08-26 18:51:37 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-08-26 18:51:37 +0000 |
commit | 2ee4e1fc77587948fc12aefe4c2e15e78daceb08 (patch) | |
tree | 9c5b99307edca5b5234127c18d5bf4a4c1fedf49 /sbin/ping/ping.c | |
parent | ef284dc009ccd53edb53818985a9892c7f8a614b (diff) | |
download | FreeBSD-src-2ee4e1fc77587948fc12aefe4c2e15e78daceb08.zip FreeBSD-src-2ee4e1fc77587948fc12aefe4c2e15e78daceb08.tar.gz |
Remove -c restrictions from previous commit.
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r-- | sbin/ping/ping.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 54025cc..4db695b 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; |