Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

in nd6_is_addr_neighbor, check if the default interface is equal to

the interface in question in addition to check if the default router
list is empty.
  • Loading branch information...
commit b4595881875d633f7c8ecbb578f201718ac77d36 1 parent c398ab3
authored October 28, 2001

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  kame/sys/netinet6/nd6.c
6  kame/sys/netinet6/nd6.c
... ...
@@ -1,4 +1,4 @@
1  
-/*	$KAME: nd6.c,v 1.215 2001/10/26 16:50:11 jinmei Exp $	*/
  1
+/*	$KAME: nd6.c,v 1.216 2001/10/28 17:19:25 jinmei Exp $	*/
2 2
 
3 3
 /*
4 4
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1100,8 +1100,10 @@ nd6_is_addr_neighbor(addr, ifp)
1100 1100
 	 * XXX: we restrict the condition to hosts, because routers usually do
1101 1101
 	 * not have the "default router list".
1102 1102
 	 */
1103  
-	if (!ip6_forwarding && TAILQ_FIRST(&nd_defrouter) == NULL)
  1103
+	if (!ip6_forwarding && TAILQ_FIRST(&nd_defrouter) == NULL &&
  1104
+	    nd6_defifindex == ifp->if_index) {
1104 1105
 		return(1);
  1106
+	}
1105 1107
 
1106 1108
 	/*
1107 1109
 	 * Even if the address matches none of our addresses, it might be

0 notes on commit b459588

Please sign in to comment.
Something went wrong with that request. Please try again.