diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-10-25 12:09:08 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-10-25 12:09:08 +0000 |
commit | 81cc6de9a8808ec2fb17ba66f5a62446210131f8 (patch) | |
tree | 1201d69749d9ce15c65c30a218cb356f17162ccf /usr.sbin | |
parent | a8f99b4c35cbc0cf12927ba434bdd8608ecc04bb (diff) |
Remove dead code, found by jsg@.
ok jsg@, florian@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ndp/ndp.c | 18 |
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) { |