Took out P2P_LOCALADDR_SHARE option and made it standard.

This commit is contained in:
David Greenman 1995-06-15 00:19:56 +00:00
parent 60562de998
commit 3740e2ad04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9234

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if.c 8.3 (Berkeley) 1/4/94
* $Id: if.c,v 1.14 1995/05/27 04:37:24 davidg Exp $
* $Id: if.c,v 1.15 1995/05/30 08:07:58 rgrimes Exp $
*/
#include <sys/param.h>
@ -239,13 +239,10 @@ ifa_ifwithnet(addr)
if (ifa->ifa_addr->sa_family != af || ifa->ifa_netmask == 0)
next: continue;
#ifdef P2P_LOCALADDR_SHARE
if (ifp->if_flags & IFF_POINTOPOINT) {
if (equal(addr, ifa->ifa_addr))
return (ifa);
} else
#endif /* P2P_LOCALADDR_SHARE */
{
} else {
cp = addr_data;
cp2 = ifa->ifa_addr->sa_data;
cp3 = ifa->ifa_netmask->sa_data;
@ -307,13 +304,10 @@ ifaof_ifpforaddr(addr, ifp)
return (ifa);
continue;
}
#ifdef P2P_LOCALADDR_SHARE
if (ifp->if_flags & IFF_POINTOPOINT) {
if (equal(addr, ifa->ifa_dstaddr))
return (ifa);
} else
#endif /* P2P_LOCALADDR_SHARE */
{
} else {
cp = addr->sa_data;
cp2 = ifa->ifa_addr->sa_data;
cp3 = ifa->ifa_netmask->sa_data;