From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f9ea9aa446a60c65,start X-Google-Attributes: gidfee84,public From: shcun1@penfold.cc.monash.edu.au (Mr SH Cunningham) Subject: gethostid() never works onAlpha Date: 1995/10/30 Message-ID: <471qi0$uc7@harbinger.cc.monash.edu.au>#1/1 X-Deja-AN: 118292137 x-nntp-posting-user: shcun1 organization: Monash University newsgroups: comp.unix.osf.osf1 Whenever I use gethostid(), it always returns 0, no matter which DEC alpha machine I run the program using it on. How can I get the DARPA Internet address for a DEC alpha machine running Digital Unix? I recall reading a while ago that you need to use some socket() call or ioctl() or both, but I can't recall the arguments required to return the DARPA Internet address (the number shown when the machine boots eg. ln0: DEC LANCE Ethernet Interface, hardware address: 03-CF-2D-3C-A0-DC).