#!/bin/sh

# shell script which does the brute force work of generating IPs to 
# traceroute to and calling tracepath.

let a=1
while [[ $a -lt 127 ]] {
        prtraceroute $a.10.10.10
        let a="a+1"
}

let a=128
while [[ $a -lt 192 ]] {
        let b=1
        while [[ $b -lt 255 ]] {
                prtraceroute $a.$b.10.10
                let b="b+1"
        }
        let a="a+1"
}

let a=192
while [[ $a -lt 224 ]] {
        let b=1
        while [[ $b -lt 255 ]] {
                let c=1
                while [[ $c -lt 255 ]] {
                        prtraceroute $a.$b.$c.10
                        let c="c+1"
                }
                let b="b+1"
        }
        let a="a+1"
}
