On Wed, Mar 7, 2012 at 01:24, hiren panchasara
<hiren.panchas...@gmail.com> wrote:
> On Wed, Mar 7, 2012 at 12:49 AM, Juli Mallett <jmall...@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?

Yes.

> And for the interface of your interest, you can check if rc.conf is
> specifying any persistent configuration or not.

Pretty much.  There are other ways one could configure the interfaces
persistently (for example, a series of ifconfig commands in rc.local)
but in general rc.conf is the way to go, unless you decide to build
your own configuration system.
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to