summaryrefslogtreecommitdiff
path: root/sys/net/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index d0e80e51646..f32f10eb9eb 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.158 2014/04/03 08:22:10 mpi Exp $ */
+/* $OpenBSD: route.c,v 1.159 2014/04/10 13:47:21 mpi Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -150,9 +150,6 @@ int rtflushclone1(struct radix_node *, void *, u_int);
void rtflushclone(struct radix_node_head *, struct rtentry *);
int rt_if_remove_rtdelete(struct radix_node *, void *, u_int);
-int rt_ifa_add(struct ifaddr *, int, struct sockaddr *);
-int rt_ifa_del(struct ifaddr *, int, struct sockaddr *);
-
#define LABELID_MAX 50000
struct rt_label {
@@ -1079,28 +1076,6 @@ rt_maskedcopy(struct sockaddr *src, struct sockaddr *dst,
bzero((caddr_t)cp2, (unsigned)(cplim2 - cp2));
}
-/*
- * Set up a routing table entry, normally
- * for an interface.
- */
-int
-rtinit(struct ifaddr *ifa, int cmd, int flags)
-{
- struct sockaddr *dst;
- int error;
-
- KASSERT(cmd == RTM_ADD || cmd == RTM_DELETE);
-
- dst = flags & RTF_HOST ? ifa->ifa_dstaddr : ifa->ifa_addr;
-
- if (cmd == RTM_ADD)
- error = rt_ifa_add(ifa, flags, dst);
- else
- error = rt_ifa_del(ifa, flags, dst);
-
- return (error);
-}
-
int
rt_ifa_add(struct ifaddr *ifa, int flags, struct sockaddr *dst)
{