summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-10-25 12:09:07 +0000
committermpi <mpi@openbsd.org>2017-10-25 12:09:07 +0000
commit8415aa69aacb6941f91ec9070a3804335c6953ce (patch)
tree2610df5a49ac02721402cc7ab56c4c6aaba7f6e8 /usr.sbin/ndp
parentAdd P key to paste tagged in buffer mode, and trim some code that should (diff)
downloadwireguard-openbsd-8415aa69aacb6941f91ec9070a3804335c6953ce.tar.xz
wireguard-openbsd-8415aa69aacb6941f91ec9070a3804335c6953ce.zip
Remove dead code, found by jsg@.
ok jsg@, florian@
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index da03a3eda3c..937213e871c 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ndp.c,v 1.86 2017/08/09 17:35:38 jmc Exp $ */
+/* $OpenBSD: ndp.c,v 1.87 2017/10/25 12:09:07 mpi Exp $ */
/* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */
/*
@@ -135,7 +135,6 @@ void usage(void);
int rtmsg(int);
int rtget(struct sockaddr_in6 **, struct sockaddr_dl **);
void ifinfo(char *);
-void harmonize_rtr(void);
static char *sec2str(time_t);
static void ts_print(const struct timeval *);
static int rdomain;
@@ -908,21 +907,6 @@ ifinfo(char *ifname)
close(s);
}
-void
-harmonize_rtr(void)
-{
- char dummyif[IFNAMSIZ+8];
- int s;
-
- if ((s = socket(AF_INET6, SOCK_DGRAM, 0)) < 0)
- err(1, "socket");
- strlcpy(dummyif, "lo0", sizeof(dummyif)); /* dummy */
- if (ioctl(s, SIOCSNDFLUSH_IN6, (caddr_t)&dummyif) < 0)
- err(1, "ioctl(SIOCSNDFLUSH_IN6)");
-
- close(s);
-}
-
static char *
sec2str(time_t total)
{