Re: ICMP's & IP src addrs


C. Philip Wood (cpw%sneezy@LANL.GOV)
Thu, 22 Sep 88 16:03:27 MDT


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.



This archive was generated by hypermail 2.0b3 on Thu Mar 09 2000 - 14:43:30 GMT