summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
authorpaul <paul>2003-10-27 22:12:02 +0000
committerpaul <paul>2003-10-27 22:12:02 +0000
commit57ce17d34d536526f92c50957b2b1e50836c9bcc (patch)
tree93846dca36f3ac232ec3ab8961bc192782df63db /lib/if.c
parente2013c3814631a9938f2b9e592c5c95761312baf (diff)
downloadquagga-57ce17d34d536526f92c50957b2b1e50836c9bcc.tar.bz2
quagga-57ce17d34d536526f92c50957b2b1e50836c9bcc.tar.xz
2003-10-27 Paul Jakma <paul@dishone.st>
* lib/if.{ch}: remove ifc_pointtopoint() - left over from the reverted RFC3021 patch.
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/if.c b/lib/if.c
index 524869b9..db10bc0f 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -708,30 +708,6 @@ connected_lookup_address (struct interface *ifp, struct in_addr dst)
return match;
}
-/* Check the connected information is PtP style or not. */
-int
-ifc_pointopoint (struct connected *ifc)
-{
- struct prefix *p;
- int ptp = 0;
-
- /* When interface has PtP flag. */
- if (if_is_pointopoint (ifc->ifp))
- return 1;
-
- /* RFC3021 PtP check. */
- p = ifc->address;
-
- if (p->family == AF_INET)
- ptp = (p->prefixlen >= IPV4_MAX_PREFIXLEN - 1);
-#ifdef HAVE_IPV6
- if (p->family == AF_INET6)
- ptp = (p->prefixlen >= IPV6_MAX_PREFIXLEN - 1);
-#endif /* HAVE_IPV6 */
-
- return ptp;
-}
-
#ifndef HAVE_IF_NAMETOINDEX
unsigned int
if_nametoindex (const char *name)