From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,81a8cbb4d4cc49a7 X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,81a8cbb4d4cc49a7 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-04-06 07:40:19 PST Xref: gmd.de comp.unix.osf.osf1:2786 comp.sys.dec:14827 Newsgroups: comp.unix.osf.osf1,comp.sys.dec Path: gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!hrz-ws11.hrz.uni-kassel.de!news.th-darmstadt.de!fauern!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!noc.near.net!atria.com!jtk From: jtk@atria.com (John T. Kohl) Subject: Re: FDDI-only DEC Alpha AXP running OSF/1--do they exist? In-Reply-To: hoffman@xdelta.enet.dec.com's message of 5 Apr 1994 22:24:40 GMT Message-ID: Sender: news@atria.com Nntp-Posting-Host: banana.atria.com Organization: Atria Software, Inc. References: <2nsof8$llv@jac.zko.dec.com> Date: Wed, 6 Apr 1994 14:40:19 GMT >>>>> "Stephen" == Stephen Hoffman 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 or working for but not representing: Atria Software --------- What are you pretending not to know?