On Fri, Mar 24, 2017 at 03:29:28PM +0100, Martin Pieuchot wrote:
> 
> Could you tell me if the diff below solve the issue?

Yes it solves it.

The router entry isn't marked as expired on timeout, but renewed, and
inet6 connectivity still works after 1 day of inactivity.

05:36:46.725925 2001:41d0:fe39:c05c:215:c5ff:fe0b:8b7a 00:15:c5:0b:8b:7a  bce0 
permanent R l
05:36:46.726013 2001:41d0:fe39:c05c:68d5:fa65:2c4:b88 00:15:c5:0b:8b:7a   bce0 
permanent R l
05:36:46.726093 2001:41d0:fe39:c05c:dc0c:ac15:9479:f485 00:15:c5:0b:8b:7a bce0 
permanent R l
05:36:46.726182 fe80::215:c5ff:fe0b:8b7a%bce0        00:15:c5:0b:8b:7a    bce0 
permanent R l
05:36:46.726322 fe80::cabe:19ff:fee2:2ced%bce0       c8:be:19:e2:2c:ed    bce0 
3s        S R
                                                                                
            
05:36:56.735895 2001:41d0:fe39:c05c:215:c5ff:fe0b:8b7a 00:15:c5:0b:8b:7a  bce0 
permanent R l
05:36:56.735984 2001:41d0:fe39:c05c:68d5:fa65:2c4:b88 00:15:c5:0b:8b:7a   bce0 
permanent R l
05:36:56.736066 2001:41d0:fe39:c05c:dc0c:ac15:9479:f485 00:15:c5:0b:8b:7a bce0 
permanent R l
05:36:56.736155 fe80::215:c5ff:fe0b:8b7a%bce0        00:15:c5:0b:8b:7a    bce0 
permanent R l
05:36:56.736297 fe80::cabe:19ff:fee2:2ced%bce0       c8:be:19:e2:2c:ed    bce0 
29m25s    S R

Thanks !

> Index: netinet6//nd6.c
> ===================================================================
> RCS file: /cvs/src/sys/netinet6/nd6.c,v
> retrieving revision 1.206
> diff -u -p -r1.206 nd6.c
> --- netinet6//nd6.c   8 Mar 2017 09:34:43 -0000       1.206
> +++ netinet6//nd6.c   24 Mar 2017 14:24:51 -0000
> @@ -748,8 +748,6 @@ nd6_free(struct rtentry *rt, int gc)
>  
>       splsoftassert(IPL_SOFTNET);
>  
> -     nd6_invalidate(rt);
> -
>       /*
>        * we used to have pfctlinput(PRC_HOSTDEAD) here.
>        * even though it is not harmful, it was not really necessary.
> @@ -830,6 +828,8 @@ nd6_free(struct rtentry *rt, int gc)
>        * a side effect (XXX).
>        */
>       next = TAILQ_NEXT(ln, ln_list);
> +
> +     nd6_invalidate(rt);
>  
>       /*
>        * Detach the route from the routing tree and the list of neighbor

-- 
Sebastien Marie

Reply via email to