diff options
author | dg <dg@FreeBSD.org> | 1995-06-15 00:19:56 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-06-15 00:19:56 +0000 |
commit | af679f9c572744dad3260580ccb92ef78d5cff51 (patch) | |
tree | b8ee4032e6dc0141d34d0ed2f37910fb36d6c4d2 /sys/net | |
parent | fad4d09ecc0d74a9baeb1c6f1667df1024cc0974 (diff) | |
download | FreeBSD-src-af679f9c572744dad3260580ccb92ef78d5cff51.zip FreeBSD-src-af679f9c572744dad3260580ccb92ef78d5cff51.tar.gz |
Took out P2P_LOCALADDR_SHARE option and made it standard.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 27d6149..a9085d5 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -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; |