Source code for htoea
dupuy at cs.columbia.edu
dupuy at cs.columbia.edu
Wed Jan 9 18:56:45 AEST 1991
coleman at 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 at cs.columbia.edu
uucp: ...!rutgers!cs.columbia.edu!dupuy
More information about the Comp.sys.sun
mailing list