Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2012 01:24:06 -0800
From:      hiren panchasara <hiren.panchasara@gmail.com>
To:        Juli Mallett <jmallett@freebsd.org>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, Damien Fleuriot <ml@my.gd>
Subject:   Re: Network Interface configuration
Message-ID:  <CALCpEUEaGTs78AqG7umSZV-tf2Hun45EwsLYyF5Spg4-YF85vw@mail.gmail.com>
In-Reply-To: <CACVs6=9JLuXmHe9Ciwg-RgLUcu0hWTwzEnr4eE16wX2KynEmiA@mail.gmail.com>
References:  <CALCpEUFCjOvy4WdALpE_vzxk8sfypxwgg=L01iNorXrN=dCwrA@mail.gmail.com> <63821C69-16E5-4483-8307-69DCF2865E99@my.gd> <CALCpEUHrtQxLdiCtGN27jASgokpUTbSOU2dZAVYLxk81B1wPrQ@mail.gmail.com> <CACVs6=9JLuXmHe9Ciwg-RgLUcu0hWTwzEnr4eE16wX2KynEmiA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 7, 2012 at 12:49 AM, Juli Mallett <jmallett@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCpEUEaGTs78AqG7umSZV-tf2Hun45EwsLYyF5Spg4-YF85vw>