From owner-freebsd-net@FreeBSD.ORG Wed Mar 7 09:24:07 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 845BC106564A; Wed, 7 Mar 2012 09:24:07 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 35CFA8FC18; Wed, 7 Mar 2012 09:24:07 +0000 (UTC) Received: by obbwc7 with SMTP id wc7so9613120obb.13 for ; Wed, 07 Mar 2012 01:24:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ys2fNoJ0U3RgoPMUcjT9tDs65roVBUOi6JpCtXidKfU=; b=MCI5ADPbExpzO2F5m4UU0ckviWdoRa6qh3P1bXyP2+BUsaOekzWu1wTf0iRwX7SC6j ZVaGpvuyNDHLr5V+zViZoZSo7z9/lNi6nW7ZwcGQRBvphSEKtfRAMQKoZnjaqEa3ftNc 63z6oMLmYcy9NpbBQ5ZXOLre1ClrpUJ/ntlV55Apkfr7FD2OYYBK0u6reNtt8+1Tzd9d vBQfAYPvz7jhwy+IZLWSIU2CYaER+FNKOQhOXUkB3iPOzL5PfLg+Z4kKAA2YDy4Ixxi7 1jClQdxMDaZRkQz81NpHwBunDReLSy4cM4RFtXwoWAx1dj2ZHkO1DIABCNql7axXny4I E0RA== MIME-Version: 1.0 Received: by 10.60.4.105 with SMTP id j9mr518215oej.29.1331112246882; Wed, 07 Mar 2012 01:24:06 -0800 (PST) Received: by 10.182.11.101 with HTTP; Wed, 7 Mar 2012 01:24:06 -0800 (PST) In-Reply-To: References: <63821C69-16E5-4483-8307-69DCF2865E99@my.gd> Date: Wed, 7 Mar 2012 01:24:06 -0800 Message-ID: From: hiren panchasara To: Juli Mallett Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-net@freebsd.org" , Damien Fleuriot Subject: Re: Network Interface configuration X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2012 09:24:07 -0000 On Wed, Mar 7, 2012 at 12:49 AM, Juli Mallett wrote: > In general, interfaces do > not come from the configuration files like rc.conf, however the way > that those interfaces are set up on boot is configured by files like > rc.conf. > Thanks Juli. So, does it mean that looking at getifaddrs() is the best way (as ifconfig is doing) to get the correct state of network interfaces at any point in time? And for the interface of your interest, you can check if rc.conf is specifying any persistent configuration or not. Hiren