netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krishna Kumar <krkumar@us.ibm.com>
To: Krishna Kumar <krkumar@us.ibm.com>
Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, davem@redhat.com,
	netdev@oss.sgi.com, linux-net@vger.kernel.org
Subject: Re: [PATCH 1/4] Prefix List against 2.5.73
Date: Tue, 15 Jul 2003 17:11:51 -0700	[thread overview]
Message-ID: <3F149847.2000408@us.ibm.com> (raw)
In-Reply-To: <3F14492C.30708@us.ibm.com>

 > I proposechanging the values of IFA_PERM/TENT/DEPRE/SECOND, etc,

On the other hand, to maintain compatibility with existing apps (ip command),
I can change the new values instead. So now the same ip util program will
display the correct flag values for the address and then display the remaining
flags which are the O/M flags.

I will send patch for this tomorrow.

Thanks,

- KK

> Hi Alexey,
> 
>>> +    IFA_IFFLAGS,
>>
>>
>> What's about ifa_flags? There is some space there, and the things
>> kept there now: TENTATIVE/DEPRECATED et al. are close relatives
>> of O/M.
> 
> 
>  > > Alexey, O/M are not flags for addresses, but for interfaces.
> 
>  > > > But tell me, please, what is the difference between new _address_
>  > > > attribute IFA_IFFLAGS and already existing address attrbute 
> ifa_flags?
> 
> Conceptually these are different, one for address and one for interface. 
> But I also
> agree to your point that these can both be enclosed within one attribute 
> to return.
> If we agree to do it in this way, then we have to change the values of 
> either of
> the two sets of #defines (if_flags & ifa_flags since they intersect). I 
> propose
> changing the values of IFA_PERM/TENT/DEPRE/SECOND, etc, for no other 
> reason other
> than the MANAGED/OTHER flags has values copied off from the RA (bitwise 
> values of
> the icmpv6_nd_ra field of RA). It might make more meaning to keep 0x80 
> for field 'M'
> which is the first bit of the field, but let me know if this is not 
> acceptable.
> 
>> This does not pass through Occam's razor. Why not to give a filter to 
>> plain
>> RTM_GETROUTE? We did not implement filtering not because we do not want,
>> but because we (me, is more appropriate) are lazy.
> 
> 
> OK, I can change that to give a filter. Is it OK to add the filter to 
> rtm_flags ?
> I was thinking of adding RTM_F_PREFIX, and rt6_dump_route() can pass 
> this information
> to rt6_fill_node() which does filtering of routes based on whether this 
> flag is set
> or not. Did I understand you correctly here ?
> 
>> Also, I am not sure that the interface should include things sort of
>>
>> +    if ((addr_type & (IPV6_ADDR_LINKLOCAL | IPV6_ADDR_LOOPBACK |
>> +            IPV6_ADDR_MULTICAST)) != 0 ||
>> +            addr_type == IPV6_ADDR_ANY)
>>
> 
> I can remove the check completely and introduce a new flag RTF_PREFIX_RT 
> to distinguish
> between various route types.
> 
> Are these modifications OK ?
> 
> Thanks,
> 
> - KK
> 
>> For kernel all they are direct routes, if the application wants to apply
>> some policy not formulated in terms of filters for RTM_GETROUTE, let it
>> to filter itself. Moreover, I used to emphasize that user of rtnetlink
>> should not believe to reliability of kernel filtering. It is just 
>> necessary
>> measure to guarantee that a new application, which is aware of a new
>> attribute, will behave correctly with older kernels, which are not aware
>> of this attribute. Not a requirement, of course.
>>
>> Anyway, if you want to apply such specific policy, you can add a flag
>> to rtm_flags, which would say: RTM_F_OFFICIALLY_PREFIX and base filtering
>> on this flag, when it is given.
>>
>> Alexey
>>
> 

  reply	other threads:[~2003-07-16  0:11 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-14 22:35 [PATCH 1/4] Prefix List against 2.5.73 Krishna Kumar
2003-07-15  1:17 ` kuznet
2003-07-15  6:59   ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-15 13:20     ` kuznet
2003-07-15 18:34   ` Krishna Kumar
2003-07-16  0:11     ` Krishna Kumar [this message]
2003-07-16  0:21     ` kuznet
2003-07-16  8:39       ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-16 18:42         ` [PATCH 1/2] " Krishna Kumar
2003-07-16 18:49           ` Krishna Kumar
2003-07-16 18:50           ` [PATCH 2/2] Prefix List against 2.4.21 Krishna Kumar
2003-07-16 23:41         ` [PATCH 1/4] Prefix List against 2.5.73 kuznet
2003-07-17  0:06           ` Krishna Kumar
2003-07-17  0:38             ` kuznet
2003-07-17 21:12               ` [PATCH 1/2] Prefix List and O/M flags " Krishna Kumar
2003-07-17 22:06                 ` [PATCH 2/2] Prefix List and O/M flags against 2.4.21 Krishna Kumar
2003-07-17 22:22                   ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-17 22:34                     ` Krishna Kumar
2003-07-17 22:47                       ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-18  0:37                         ` [PATCH 2/2] Prefix List and O/M flags against 2.5.73 Krishna Kumar
2003-07-19  6:47                           ` David S. Miller
2003-07-19  7:33                           ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-21  0:49                             ` kuznet
2003-07-21 12:17                           ` David S. Miller
2003-07-21 17:16                             ` Krishna Kumar
2003-07-21  1:55                       ` [PATCH 2/2] Prefix List and O/M flags against 2.4.21 kuznet
2003-07-21  4:46                         ` David S. Miller
2003-07-22 21:50                         ` O/M flags against 2.6.0-test1 Krishna Kumar
2003-07-22 22:25                           ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-22 22:59                             ` Krishna Kumar
2003-07-23 10:13                           ` David S. Miller
2003-07-23 22:32                             ` Krishna Kumar
2003-07-24  7:07                               ` David S. Miller
2003-07-24 14:02                                 ` kuznet
2003-07-24 14:26                                   ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-24 14:43                                     ` kuznet
2003-07-25  0:14                                       ` Krishna Kumar
2003-07-25 13:22                                         ` David S. Miller
2003-07-30  0:33                                 ` Krishna Kumar
2003-07-31  5:02                                   ` David S. Miller
2003-07-31 20:33                                     ` Krishna Kumar
2003-08-04 23:57                                       ` David S. Miller
2003-09-05 18:26                                         ` Krishna Kumar
2003-09-12  2:25                                           ` David S. Miller
2003-09-12 22:36                                             ` Krishna Kumar
2003-09-12 22:45                                             ` O/M flags for 2.4.22 (was "Re: O/M flags against 2.6.0-test1") Krishna Kumar
2003-09-13  0:19                                               ` David S. Miller
2003-09-16 22:06                                                 ` Krishna Kumar
2003-09-20  8:18                                                   ` David S. Miller
2003-07-22 23:52                         ` [PATCH] Prefix List against 2.4.21 Krishna Kumar
2003-07-23 10:02                           ` David S. Miller
2003-07-17 21:53               ` [PATCH 1/4] Prefix List against 2.5.73 YOSHIFUJI Hideaki / 吉藤英明

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F149847.2000408@us.ibm.com \
    --to=krkumar@us.ibm.com \
    --cc=davem@redhat.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=linux-net@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).