Newsgroups: comp.archives Path: utzoo!utgpu!news-server.csri.toronto.edu!ox.com!emv From: dupuy@cs.columbia.edu Subject: [sun-spots] Re: Source code for htoea Message-ID: <1991Feb9.232350.25865@ox.com> Followup-To: comp.sys.sun Keywords: Networks Sender: emv@ox.com (Edward Vielmetti) Reply-To: dupuy@cs.columbia.edu Organization: Sun-Spots References: <1118@brchh104.bnr.ca> Date: Sat, 9 Feb 1991 23:23:50 GMT Approved: emv@ox.com (Edward Vielmetti) X-Original-Newsgroups: comp.sys.sun 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