Hello.
In article <200307160021.EAA10195@xxxxxxxxxxxxx> (at Wed, 16 Jul 2003 04:21:33
+0400 (MSD)), kuznet@xxxxxxxxxxxxx says:
> Select yourself: either IFA_IFFLAGS or translated flags in ifa_flags.
> I prefer the second way just because it is too unpleasant to add
> a new attribute for sake of two bits with no visible candidates
> to use remaining ones.
Well, I dislike ifa_flags because
- it is conceptually wrong to combine them.
e.g. even if all autoconf addresses expired, flags lasts and
we should report it to userspace.
- ifa_flags is extremely expensive resource.
There are only 8 bits. Use it only for addresses.
My suggestion is:
- create L3 per-interface RTM, say, RTM_xxxIFACE.
- provide inet_device / inet6_dev things via this RTM.
e.g. per-interface statistics, flags etc.
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
|