*BSD News Article 43947


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!usenet.eel.ufl.edu!jfh
From: jfh@ucet.ufl.edu ()
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: IP address of local machine
Date: 12 May 1995 14:33:32 GMT
Organization: IBM Writing Laboratory, University of Florida
Lines: 16
Message-ID: <3ovrjs$hge@huron.eel.ufl.edu>
References: <D8Fs2t.Cr7@mv.mv.com> <3ovkv8$ejc@huron.eel.ufl.edu> <D8GwnL.384@mv.mv.com>
NNTP-Posting-Host: trinh.ucet.ufl.edu

In article <D8GwnL.384@mv.mv.com> shaman@mv.mv.com (Coranth Gryphon) writes:

>	struct in_addr address;
>
>	memcpy ((char *) &address, hostEntry->h_addr_list[n], sizeof(address));
>
>then you have a real in_addr in local memory.

Kool...I like that...thanks.


-- 
-------------------------------------------------------------------------------
| Jim Hranicky                                             Assistant Sysadmin |
| IBM Writing Laboratory       jfh@ucet.ufl.edu         University of Florida |
-------------------------------------------------------------------------------