diff options
author | paul <paul> | 2003-10-27 22:12:02 +0000 |
---|---|---|
committer | paul <paul> | 2003-10-27 22:12:02 +0000 |
commit | 948cf55c4447257960fda0d89fb45e93644393b1 (patch) | |
tree | 87360f9330b45da6aa9b4d2d168cb787a26d391d /lib | |
parent | 3738d8cab744b1e11148d23ce16db5891b5e747e (diff) |
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')
-rw-r--r-- | lib/if.c | 24 | ||||
-rw-r--r-- | lib/if.h | 1 |
2 files changed, 0 insertions, 25 deletions
@@ -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) @@ -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 *); |