On 10/20/15 at 01:58am, Richard Laing wrote: > Hi, > > We recently found a bug in our code which resulted in rule 0 in the > routing policy database being deleted, this is a bad thing and the man > page documentation for "ip rule" indicates > > Rule 0 is special. It cannot be deleted or overridden. > > which seems entirely reasonable. The code in net/core/fib_rules.c does > not seem to protect against deletion of this rule and I was wondering if > there is a reason for this. If not I will submit a patch to address it.
This behaviour was changed in commit 5adef1809 ("net: fib_rules: allow to delete local rule") so it seems the manual page is outdated. Feel free to send a patch. > Simply running "ip rule del" shows the issue . This however looks like a bug. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html