From owner-freebsd-net Tue Apr 17 7:14:58 2001 Delivered-To: freebsd-net@freebsd.org Received: from coconut.itojun.org (coconut.itojun.org [210.160.95.97]) by hub.freebsd.org (Postfix) with ESMTP id 20E1C37B424 for ; Tue, 17 Apr 2001 07:14:53 -0700 (PDT) (envelope-from itojun@itojun.org) Received: from itojun.org (localhost [127.0.0.1]) by coconut.itojun.org (Postfix) with ESMTP id 13BB64B0B; Tue, 17 Apr 2001 23:14:50 +0900 (JST) To: skodati@in.ibm.com Cc: freebsd-net@FreeBSD.ORG In-reply-to: skodati's message of Tue, 17 Apr 2001 16:05:04 +0530. X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: IPv6 : interface configuration From: itojun@iijlab.net Date: Tue, 17 Apr 2001 23:14:50 +0900 Message-ID: <28190.987516890@itojun.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >I have configured my system for IPv6, and the system is getting >autoconfigured properly. (ifconfig shows both IPv4 and v6 addresses). >I want to read the information about interfaces being configured with IPv6 >address. >I opened a socket for ip domain and reading the information into "ifconf" >through "ioctl" with SIOCGIFCONF flag. And then reading all the addresses >thru ifreq. >But iam not able to find any interaces with address famly AF_INET6. getifaddrs(3) is the easiest way. SIOCGIFCONF is very hard to use these days, due to buffer size management, as well as variable-length packed struct . itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message