summaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rtadvd/if.c')
-rw-r--r--usr.sbin/rtadvd/if.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.sbin/rtadvd/if.c b/usr.sbin/rtadvd/if.c
index 3cd1932a9a6..5a4ad632568 100644
--- a/usr.sbin/rtadvd/if.c
+++ b/usr.sbin/rtadvd/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.22 2009/07/11 09:51:53 rainer Exp $ */
+/* $OpenBSD: if.c,v 1.23 2010/05/21 13:41:23 chl Exp $ */
/* $KAME: if.c,v 1.17 2001/01/21 15:27:30 itojun Exp $ */
/*
@@ -210,19 +210,6 @@ lladdropt_fill(struct sockaddr_dl *sdl, struct nd_opt_hdr *ndopt)
return;
}
-int
-rtbuf_len()
-{
- size_t len;
-
- int mib[6] = {CTL_NET, AF_ROUTE, 0, AF_INET6, NET_RT_DUMP, 0};
-
- if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0)
- return(-1);
-
- return(len);
-}
-
#define FILTER_MATCH(type, filter) ((0x1 << type) & filter)
#define SIN6(s) ((struct sockaddr_in6 *)(s))
#define SDL(s) ((struct sockaddr_dl *)(s))
@@ -436,14 +423,6 @@ rtmsg_len(char *buf)
return(rtm->rtm_msglen);
}
-int
-ifmsg_len(char *buf)
-{
- struct if_msghdr *ifm = (struct if_msghdr *)buf;
-
- return(ifm->ifm_msglen);
-}
-
/*
* alloc buffer and get if_msghdrs block from kernel,
* and put them into the buffer