dupuy@cs.columbia.edu (02/10/91)
Archive-name: internet/noctools/etherlib/1991-01-09 Archive: cs.columbia.edu:/pub/etherlib.tar.Z [128.59.16.20] Original-posting-by: dupuy@cs.columbia.edu Original-subject: Re: Source code for htoea Reposted-by: emv@ox.com (Edward Vielmetti) 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