iproute2 IPV6: ip route del succeeds but the route remains

Bug #930899 reported by yurac2008
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iproute (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

1) Ubuntu release: 11.10
2) Package:
iproute:
  Installed: 20110315-1build1
  Candidate: 20110315-1build1
  Version table:
 *** 20110315-1build1 0
        500 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/main amd64 Packages
        100 /var/lib/dpkg/status
3) In the following sequence, the second call to 'ip route del' should fail:
ip route add <IPV6> dev <ETH>
ping6 <IPV6>
ip route del <IPV6> dev <ETH>
ip route del <IPV6> dev <ETH>

4) Both calls to 'ip route del' succeed. The first one does not actually delete the route.

Below is a script that reproduces the problem:
#!/bin/sh

# A weird behavior of the ip command for IPV6
# First call to "route del" returns success but the route remains

start()
{
    echo "START: ip route add $1 dev $2"
    ip route add $1 dev $2
    echo "RES=$?"
}

stop()
{
    echo "STOP: ip route del $1 dev $2"
    ip route del $1 dev $2
    echo "RES=$?"
}

if [ $# -lt 2 ]
then
    echo "Usage: $0 <IP_ADDR> <DEVICE>"
    exit 0
fi

start $1 $2
ping6 $1 -c 1 -w 1
stop $1 $2
stop $1 $2
stop $1 $2

Revision history for this message
Stéphane Graber (stgraber) wrote :

Can you run a matching "ip -6 route show <route>" between each run?

I suspect that what you're seeing is the kernel caching the route to the link local of your router, essentially duplicating the route in the table. That's fine and would match your symptoms.

Changed in iproute (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for iproute (Ubuntu) because there has been no activity for 60 days.]

Changed in iproute (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.