Proposal ipv6_addrs_common

Dirk Engling erdgeist at erdgeist.org
Tue Feb 7 21:32:42 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07.02.12 22:00, Dirk Engling wrote:

> Now about your loop in ifalias_af_common: if your ever encounter
> an entry with no value in inet|inet6|ipx), you will keep building
> up your _tmpargs forever, without any chance of ever breaking out
> of this state.

Ahh, now I see where this is going... you plan on collecting even more
parameters to support statements like this:

  inet 192.168.2.1 netmask 0xffffff00 inet6 ::4 prefixlen 64

while I had constructs in mind that speak for themselves:

  192.168.2.1/24 ::4/64

or maybe more verbose

  192.168.2.1/24 inet6 ::4/64

... So: is there anything besides the netmask you expect to appear in
the ipv4_addrs_IF and ifconfig_IF_alias* variables? If not, we should
just parse them appropriately.

  erdgeist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAk8xmHYACgkQuN1wFypsMNPGMACfV8F77kZGo9jVlLybz/kzHuzn
QcUAnA+1gRsAtLyNqk1Zs/QURGSWYhML
=5zUD
-----END PGP SIGNATURE-----


More information about the freebsd-rc mailing list