diff options
Diffstat (limited to 'usr.sbin/rtadvd/if.c')
-rw-r--r-- | usr.sbin/rtadvd/if.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/usr.sbin/rtadvd/if.c b/usr.sbin/rtadvd/if.c index f7238d63d3c..55fbb335a3b 100644 --- a/usr.sbin/rtadvd/if.c +++ b/usr.sbin/rtadvd/if.c @@ -1,5 +1,5 @@ -/* $OpenBSD: if.c,v 1.7 2001/01/15 11:06:25 itojun Exp $ */ -/* $KAME: if.c,v 1.15 2000/10/25 04:30:44 jinmei Exp $ */ +/* $OpenBSD: if.c,v 1.8 2001/01/21 15:11:18 itojun Exp $ */ +/* $KAME: if.c,v 1.16 2001/01/19 03:07:18 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -259,17 +259,6 @@ rtbuf_len() return(len); } -int -get_rtinfo(char *buf, size_t *len) -{ - int mib[6] = {CTL_NET, AF_ROUTE, 0, AF_INET6, NET_RT_DUMP, 0}; - - if (sysctl(mib, 6, buf, len, NULL, 0) < 0) - return(-1); - - return(0); -} - #define FILTER_MATCH(type, filter) ((0x1 << type) & filter) #define SIN6(s) ((struct sockaddr_in6 *)(s)) #define SDL(s) ((struct sockaddr_dl *)(s)) |