Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jul 2002 17:45:28 +0200
From:      =?ISO-8859-1?Q?Andreas_M=F6ller?= <andreas-moeller@gmx.net>
To:        freebsd-net@freebsd.org
Subject:   How to determine the address of a network interface?
Message-ID:  <3D231C18.8020408@gmx.net>

next in thread | raw e-mail | index | archive | help
Hello,

	I am trying to write a small program in C that just outputs the IP
address of an arbitrary network interface (like ifconfig, but only the
address). The problem is, I don't know how I can determine the address
and my programming experience is too limited in order to fully
understand the ifconfig source code (I think ifconfig determines the
address through the function in_status() in ifconfig.c, though I don't
comprehend it).

	It would be nice if anybody could point out how I should proceed or
where I can find more information.


Thanks a lot in advance,

		Andreas

PS: I apologize if this is the wrong list for my questions. Please also
excuse any language mistakes since English is not my native language.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D231C18.8020408>