Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2001 19:33:51 +0900
From:      JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= <jinmei@isl.rdc.toshiba.co.jp>
To:        skodati@in.ibm.com, freebsd-net@FreeBSD.ORG
Subject:   Re: Query: SIOCGIFAFLAGS_IN6
Message-ID:  <y7vlmqwv08g.wl@condor.isl.rdc.toshiba.co.jp>
In-Reply-To: In your message of "Tue, 20 Feb 2001 19:57:22 %2B0900" <17792.982666642@coconut.itojun.org>
References:  <CA2569F9.003AB595.00@d73mta05.au.ibm.com> <17792.982666642@coconut.itojun.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Tue, 20 Feb 2001 19:57:22 +0900, 
>>>>> itojun@iijlab.net said:

>> Iam a newbie to FreeBSD and iam working on DHCPv6. i would like to know the
>> importance of SIOCGIFAFLAGS_IN6 defined in in6_var.h
>> The definition of structure in6_ifreq differs from the definition of
>> in6_ifreq defined in Linux 2.4.0, and creates woes to port it.
>> Do i have any alternatives for the above for Linux .

> 	interface management ioctls are not standardized in any place
> 	(as far as I know of).  if you would like to support both *BSD and
> 	linux, you definitely need some #ifdef in your code, or use
> 	/sbin/ifconfig.

BTW, what if your goal is to just grab all interface addresses, you
can use the getifaddrs(3) library, which can be used for all *BSD.
And, if I remember correctly, the USAGI project has ported the
function to Linux.

					JINMEI, Tatuya
					Communication Platform Lab.
					Corporate R&D Center, Toshiba Corp.
					jinmei@isl.rdc.toshiba.co.jp

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?y7vlmqwv08g.wl>