Thread (29 messages) 29 messages, 5 authors, 2012-04-18

Re: [PATCH] ipv6: Fix problem with expired dst cache

From: Gao feng <hidden>
Date: 2012-02-24 07:20:58

于 2012年02月24日 14:51, Eric Dumazet 写道:
Le vendredi 24 février 2012 à 14:20 +0800, Gao feng a écrit :
quoted
if the ipv6 dst cache copy from the dst witch generated by ICMPV6 RA packet.
this dst cache will not be checked expire because it has no RTF_EXPIRES flag
So this dst cache always be used until the dst gc run.

add a pointer in struct rt6_info,point to where the dst cache copy from.
in func rt6_check_expired check if rt6->info->rt6i_copy is expired.
Sorry, I really dont understand what you are saying.
Just because ipv6 dst cache has no RTF_EXPIRES flag,
so even this dst cache has expired,it will be used until the gc run.
Also, adding a pointer to a structure without holding a reference on it
is suspicious.
OK,I think there is no use to hold a reference.
the dst cache will be deleted before the pointer,
So this pointer will be always usefull.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help