coleman@cam.nist.gov (Sean Sheridan Coleman X5672) (01/04/91)
I installed a program awhile back called htoea. It converts host names and IP addresses to ethernet addresses. Does anyone remember where the source code for this program resides? coleman@bldrdoc.gov
dupuy@cs.columbia.edu (01/09/91)
coleman@cam.nist.gov (Sean Sheridan Coleman X5672) writes: > I installed a program awhile back called htoea. It converts host names and > IP addresses to ethernet addresses. Does anyone remember where the source > code for this program resides? The source code for this program is part of a package called ethertools, written by Phil Budne (then of Boston University). I don't know where it might be archived, but I could send you a modified version, using a library routine with this functionality in my ethernet access library, available via ftp from cs.columbia.edu, in ~ftp/pub/etherlib.tar.Z, or in the nearest comp.sources.unix archives. Personally, I just use the following shell script, although it's not as complete as my library routine, which will also use the ethers.by{name,addr} YP/NIS maps (and even RARP!) in an attempt hostnames and IP addresses to ethernet addresses. #!/bin/sh - set -e /usr/etc/ping -r ${1?"Usage: $0 hostname"} 5 > /dev/null /usr/etc/arp -a | grep $1 @alex -- inet: dupuy@cs.columbia.edu uucp: ...!rutgers!cs.columbia.edu!dupuy