Subject: Re: Unable to flush ICMP redirect routes in kernel 3.0+

From: Flavio Leitner <[email-masked]>
Date: Thu, 17 Nov 2011 15:33:57 -0200

On Thu, 17 Nov 2011 18:18:22 +0100
Eric Dumazet <[email-masked]> wrote:

> Le jeudi 17 novembre 2011 à 15:01 -0200, Flavio Leitner a écrit :
> 
> > Right, so the loop trying different oif and saddr isn't working at
> > all because __ip_route_output_key() will create a route in the first
> > attempt.  Looks like you're right and we need the 'create' parameter
> > in __ip_route_output_key().
> 
> And we have to loop on all possible keys combinations.
> 
> (like code before David commit (f39925dbde77 ipv4: Cache learned
> redirect information in inetpeer.) : it had a goto do_next;

That is correct. I realize that now.

> I am preparing a patch.
thank you.

fbl