einhorn@hydra.unm.edu (E Drew Einhorn ADV.SCI.Inc) (08/24/90)
To support debugging I would like to obtain an enhanced version of ping. If one is not available I would like to try writing one. I would prefer starting from a working vanilla version of ping. Is the source available for anonymous ftp? Desired features include: 1) Turning on the record route option in the IP header of the ICMP echo request packet. 2) Decoding the route recorded in the ICMP echo reply generated by the request. Use pointer queries to obtain the name of networks/machines/gateways from nameserver(s). Will try gethostbyaddr() first, my FM collection is not consistent about whether gethostbyaddr() talks to nameservers(s) or only examines /etc/hosts. 3) Collect statistics by measuring round trip time to first IP address on route, 2nd address on route, ... Thanks -- einhorn@hydra.unm.edu
dpz@action.rutgers.edu (David Paul Zimmerman) (08/24/90)
I can help you with 1) and 2). A couple of years ago I made modifications to the Berkeley ping to allow writing and reading of route-record packets. That is dimacs.rutgers.edu:~ftp/pub/ping.shar. I also found that 4.3BSD hosts didn't do the right thing per the RFCs with ICMP echo request packets that had record-route set (and by association, timestamp request packets also). dimacs.rutgers.edu:~ftp/pub/rr.shar are kernel changes to 4.3BSD to deal with that. Although I've submitted both back to Berkeley, I don't know if they've made 4.3-Tahoe, -Reno, or 4.4. I've also gotten a report of a portability bug for rr.shar, but haven't dealt with it yet (change the caddr_t definition of "opts" to u_char *). David (from the Norse meaning "hacker of wire") -- David Paul Zimmerman dpz@dimacs.rutgers.edu Systems Programmer rutgers!dpz Rutgers Univ Center for Discrete Math and Theoretical Computer Science (DIMACS)
0004219666@MCIMAIL.COM (Bob Stine) (08/24/90)
Drew, The capabilities and availability of various flavors of ping and related tools are described in RFC 1147. - Bob Stine
einhorn@HYDRA.UNM.EDU (E Drew Einhorn ADV.SCI.Inc) (08/24/90)
Thanks