Browse files

removed a duplicated and unnecessary code

  • Loading branch information...
1 parent 3abedb3 commit 588c86180e9db486becacf88283f098e321d5cb5 suz committed Aug 4, 2005
Showing with 1 addition and 9 deletions.
  1. +1 −9 kame/sys/netinet6/nd6.c
View
10 kame/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $KAME: nd6.c,v 1.384 2005/07/14 14:15:00 jinmei Exp $ */
+/* $KAME: nd6.c,v 1.385 2005/08/04 13:49:40 suz Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1229,14 +1229,6 @@ nd6_is_addr_neighbor(addr, ifp)
return (1);
/*
- * If the address is assigned on the node of the other side of
- * a p2p interface, the address should be a neighbor.
- */
- dstaddr = ifa_ifwithdstaddr((struct sockaddr *)addr);
- if ((dstaddr != NULL) && (dstaddr->ifa_ifp == ifp))
- return (1);
-
- /*
* If the default router list is empty, all addresses are regarded
* as on-link, and thus, as a neighbor.
* XXX: we restrict the condition to hosts, because routers usually do

0 comments on commit 588c861

Please sign in to comment.