On 3/1/17 4:42 PM, Martin KaFai Lau wrote: > On Wed, Mar 01, 2017 at 04:07:38PM -0800, David Ahern wrote: >> On 3/1/17 3:16 PM, Martin KaFai Lau wrote: >>> [ An unrelated topic. I wonder ip -6 r del xyz::/0 would delete >>> the gateway route...] >> >> a very related question ... >> >> ip -6 r del x::/0 comes down to the kernel as delete '::/0' (plen is 0, >> so cfg->fc_dst is 0). It ends up on the null_entry from fib6_locate b/c >> of the 0 prefix length, so it is another variant of 'ip -6 ro del ::/0' > Agree on the plen == 0 part. > > I actually meant if 'ip -6 r del xyz::/0' would delete any _default_ > _gateway_ also. By looking at ip6_route_del() alone, it seems it only
Per rtm_to_fib6_config, plen of 0 means fc_dst is 0. Meaning xyz::/0 == ::/0