Article View: comp.sys.sun
Article #6378Re: Source code for htoea
From: dupuy
Date: Wed, 09 Jan 1991 07:56
Date: Wed, 09 Jan 1991 07:56
28 lines
1620 bytes
1620 bytes
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
Technical Details
Message-ID:
<1118@brchh104.bnr.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: dupuy@cs.columbia.edu Newsgroups: comp.sys.sun Subject: Re: Source code for htoea Keywords: Networks Message-ID: <1118@brchh104.bnr.ca> Date: 9 Jan 91 07:56:45 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 28 Approved: Sun-Spots@rice.edu X-Refs: Original: v10n6 X-Sun-Spots-Digest: Volume 10, Issue 4, message 8 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu