From: jtk@atria.com (John T. Kohl)
Subject: Re: FDDI-only DEC Alpha AXP running OSF/1--do they exist?
Date: Wed, 6 Apr 1994 14:40:19 GMT [thread overview]
Message-ID: <CnuE37.JEy@atria.com> (raw)
In-Reply-To: hoffman@xdelta.enet.dec.com's message of 5 Apr 1994 22:24:40 GMT
>>>>> "Stephen" == Stephen Hoffman <hoffman@xdelta.enet.dec.com> writes:
In article <2nsof8$llv@jac.zko.dec.com> hoffman@xdelta.enet.dec.com (Stephen Hoffman) writes:
Stephen> What's the real question?
The real question is whether there will always be some network adapter
that looks enough like an ethernet to get an address from this loop:
struct ifreq *ifrq, ifreqs[32];
int s;
struct ifreq *ifrq, ifreqs[32];
struct ifdevea eaddr;
struct ifconf ifc;
s = socket(AF_INET, SOCK_STREAM, 0);
ifc.ifc_req = ifreqs;
ifc.ifc_len = sizeof(ifreqs);
ioctl(s, SIOCGIFCONF, &ifc); /* ignore errors */
for (ifrq = ifreqs;
ifc.ifc_len > 0;
ifrq++, ifc.ifc_len -= sizeof(*ifrq)) {
/* for each known interface, try to get a physaddr. */
strncpy(eaddr.ifr_name, ifrq->ifr_name, IFNAMSIZ);
if (ioctl(s, SIOCRPHYSADDR, &eaddr) == 0) {
...
}
}
I believe FDDI will look enough like Ethernet (uses same style of 48-bit
station IDs). What's token ring like?
--
John Kohl <jtk@atria.com> or <jtkohl@mit.edu>
working for but not representing: Atria Software
---------
What are you pretending not to know?
next prev parent reply other threads:[~1994-04-06 14:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-04-05 19:28 FDDI-only DEC Alpha AXP running OSF/1--do they exist? John T. Kohl
1994-04-05 20:45 ` Randy Buckland
1994-04-05 22:24 ` Stephen Hoffman
1994-04-05 23:23 ` Lawrence V. Stefani
1994-04-06 14:40 ` John T. Kohl [this message]
1994-04-06 17:10 ` Stephen Hoffman
1994-04-09 20:30 ` Thor Lancelot Simon
1994-04-10 17:12 ` Dave Cherkus
1994-04-10 22:48 ` Lawrence V. Stefani
1994-04-08 5:38 ` Matt Holdrege
1994-04-08 16:50 ` Lawrence V. Stefani
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox