netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] IPv6 route replacement
@ 2009-07-22  9:50 Jiri Pirko
  2009-07-22 11:09 ` YOSHIFUJI Hideaki
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Pirko @ 2009-07-22  9:50 UTC (permalink / raw)
  To: netdev; +Cc: davem, pekkas, yoshfuji, kaber

Hello guys.

I would like to hear your opinion on the following:

[root@f11 ~]# ip -6 route list 3ffe::1:1
[root@f11 ~]# ip -6 route add 3ffe::1:1 via fe80::20c:29ff:fe4c:3108 dev eth0 metric 1024
[root@f11 ~]# ip -6 route list 3ffe::1:1
3ffe::1:1 via fe80::20c:29ff:fe4c:3108 dev eth0  metric 1024  mtu 1500 advmss 1440 hoplimit 4294967295
[root@f11 ~]# ip -6 route change 3ffe::1:1 via fe80::20c:29ff:fe4c:3108 dev eth0 metric 100
[root@f11 ~]# ip -6 route list 3ffe::1:1
3ffe::1:1 via fe80::20c:29ff:fe4c:3108 dev eth0  metric 100  mtu 1500 advmss 1440 hoplimit 4294967295
3ffe::1:1 via fe80::20c:29ff:fe4c:3108 dev eth0  metric 1024  mtu 1500 advmss 1440 hoplimit 4294967295
[root@f11 ~]#

Now do you think this is the right behaviour? I would expect the first route to
be replaced. The same result is when you do "ip -6 route replace"

Thanks

Jirka

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] IPv6 route replacement
  2009-07-22  9:50 [RFC] IPv6 route replacement Jiri Pirko
@ 2009-07-22 11:09 ` YOSHIFUJI Hideaki
  0 siblings, 0 replies; 2+ messages in thread
From: YOSHIFUJI Hideaki @ 2009-07-22 11:09 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: netdev, davem, pekkas, kaber, yoshfuji

Hi,

Jiri Pirko wrote:
> Now do you think this is the right behaviour? I would expect the first route to
> be replaced. The same result is when you do "ip -6 route replace"

Well, even in IPv4 you cannot change metric;
same route can be installed e.g., for manual
backup route entry.

But well, NLM_F_REPLACE handler is completely
missing in IPv6.  I think we are okay with
"replace" (NLM_F_CREATE|NLM_F_REPLACE) but we
could return "no such route" for "change"
(NLM_F_REPLACE).

--yoshfuji

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-22 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22  9:50 [RFC] IPv6 route replacement Jiri Pirko
2009-07-22 11:09 ` YOSHIFUJI Hideaki

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).