]> git.puffer.fish Git - mirror/frr.git/commitdiff
2003-10-27 Paul Jakma <paul@dishone.st>
authorpaul <paul>
Mon, 27 Oct 2003 22:12:02 +0000 (22:12 +0000)
committerpaul <paul>
Mon, 27 Oct 2003 22:12:02 +0000 (22:12 +0000)
* lib/if.{ch}: remove ifc_pointtopoint() - left over from the
  reverted RFC3021 patch.

lib/if.c
lib/if.h

index 524869b9c8d24a6f0a4c1e288e5c9b41fa523420..db10bc0f728532f6a66b2ee7af385fb868fdc636 100644 (file)
--- 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)
index 3fbeed9a8fa7778b993ee8912222f477cd6ed506..708853bc85bbf9b316cb00109fa6fb9672a53357 100644 (file)
--- a/lib/if.h
+++ b/lib/if.h
@@ -207,7 +207,6 @@ void connected_free (struct connected *);
 void connected_add (struct interface *, struct connected *);
 struct connected  *connected_delete_by_prefix (struct interface *, struct prefix *);
 struct connected  *connected_lookup_address (struct interface *, struct in_addr);
-int ifc_pointopoint (struct connected *);
 
 #ifndef HAVE_IF_NAMETOINDEX
 unsigned int if_nametoindex (const char *);