summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/rtadvd/if.c23
-rw-r--r--usr.sbin/rtadvd/if.h4
2 files changed, 2 insertions, 25 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
diff --git a/usr.sbin/rtadvd/if.h b/usr.sbin/rtadvd/if.h
index b444d4b5e60..889fd1f299e 100644
--- a/usr.sbin/rtadvd/if.h
+++ b/usr.sbin/rtadvd/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.8 2002/02/16 21:28:08 millert Exp $ */
+/* $OpenBSD: if.h,v 1.9 2010/05/21 13:41:23 chl Exp $ */
/* $KAME: if.h,v 1.6 2001/01/21 15:37:14 itojun Exp $ */
/*
@@ -42,7 +42,6 @@ int if_getmtu(char *);
int if_getflags(int, int);
int lladdropt_length(struct sockaddr_dl *);
void lladdropt_fill(struct sockaddr_dl *, struct nd_opt_hdr *);
-int rtbuf_len(void);
char *get_next_msg(char *, char *, int, size_t *, int);
struct in6_addr *get_addr(char *);
int get_rtm_ifindex(char *);
@@ -54,5 +53,4 @@ int prefixlen(u_char *, u_char *);
int rtmsg_type(char *);
int ifmsg_type(char *);
int rtmsg_len(char *);
-int ifmsg_len(char *);
void init_iflist(void);