reassign 551937 linux-2.6 thanks Hello Vincent!
On Thu, Oct 22, 2009 at 12:37:09AM +0200, Vincent Danjean wrote: [...] > In stable, "ip route replace ..." generate an error if the route already > exists: > # ip -6 route ls table 1 > # ip -6 route replace ::c058:6301 src 2002:XXXX:YYYY::1 dev tun6to4 table 1 > # ip -6 route replace ::c058:6301 src 2002:XXXX:YYYY::1 dev tun6to4 table 1 > RTNETLINK answers: File exists [...] I've observed this behaviour (for ipv6 only): - kernel returns EEXISTS if replace with identical settings. - kernel adds yet another route if replace with non-identical settings (ie. different metric or device). I think this is a kernel bug rather then a bug in iproute2. The only difference for add and replace in iproute2 is the flags that gets passed to the kernel (add = NLM_F_EXCL, replace = NLM_F_REPLACE - see ip/iproute.c). -- Andreas Henriksson -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org