Path: utzoo!utgpu!water!watmath!clyde!att!ucbvax!LANL.GOV!cpw%sneezy
From: cpw%sneezy@LANL.GOV (C. Philip Wood)
Newsgroups: comp.protocols.tcp-ip
Subject: Re: ICMP's & IP src addrs
Message-ID: <8809222203.AA17270@sneezy.lanl.gov>
Date: 22 Sep 88 22:03:27 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 19

Please excuse my previous posting.  The program had one tiny bug which
caused the last host ping'd to be the broadcast address!

The corrected code:

	set networkpart=192.5.16
	@ subnet = 1
	@ maskfactor = 32
	@ host = 1
	@ maxhost = $maskfactor - 1
	@ subnetpart = ( $maskfactor * $subnet )
	while ( $host < $maxhost )
	@ hostpart = ( $subnetpart + $host )
	set address="$networkpart.$hostpart"
	icmp echo vanilla $address
	@ host = ( $host + 1 )
	end
	
Phil Wood.