Skip to content

Commit

Permalink
comment about defrouter_select() behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmei committed Jun 29, 2001
1 parent b8ca655 commit 325156a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kame/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
/* $KAME: nd6.c,v 1.153 2001/06/27 17:30:06 itojun Exp $ */
/* $KAME: nd6.c,v 1.154 2001/06/29 05:23:25 jinmei Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -1955,8 +1955,11 @@ nd6_cache_lladdr(ifp, from, lladdr, lladdrlen, type, code)
* defrtrlist_update called the function as well. However, I believe
* we can compromise the overhead, since it only happens the first
* time.
* XXX: although defrouter_select() should not have a bad effect
* for those are not autoconfigured hosts, we explicitly avoid such
* cases for safety.
*/
if (do_update && ln->ln_router)
if (do_update && ln->ln_router && !ip6_forwarding && ip6_accept_rtadv)
defrouter_select();

return rt;
Expand Down

0 comments on commit 325156a

Please sign in to comment.