Module Name: src Committed By: roy Date: Sun Nov 10 21:32:38 UTC 2019
Modified Files: src/usr.sbin/rtadvd: config.c Log Message: rtadvd: remove support for SIOCSIFINFO_IN6 It's been broken since we enabled dropping privs. It's also probably the wrong place to do this, and support for SIOCSIFINFO_IN6 will be in the next dhcpcd import. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/usr.sbin/rtadvd/config.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/rtadvd/config.c diff -u src/usr.sbin/rtadvd/config.c:1.41 src/usr.sbin/rtadvd/config.c:1.42 --- src/usr.sbin/rtadvd/config.c:1.41 Fri Jun 14 09:06:45 2019 +++ src/usr.sbin/rtadvd/config.c Sun Nov 10 21:32:38 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: config.c,v 1.41 2019/06/14 09:06:45 roy Exp $ */ +/* $NetBSD: config.c,v 1.42 2019/11/10 21:32:38 roy Exp $ */ /* $KAME: config.c,v 1.93 2005/10/17 14:40:02 suz Exp $ */ /* @@ -507,34 +507,6 @@ getconfig(const char *intface, int exith goto errexit; } -#ifdef SIOCSIFINFO_IN6 - { - struct in6_ndireq ndi; - int s; - - if ((s = prog_socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { - logit(LOG_ERR, "<%s> socket: %m", __func__); - goto errexit; - } - memset(&ndi, 0, sizeof(ndi)); - strncpy(ndi.ifname, intface, IFNAMSIZ); - if (prog_ioctl(s, SIOCGIFINFO_IN6, &ndi) < 0) { - logit(LOG_INFO, "<%s> ioctl:SIOCGIFINFO_IN6 at %s: %m", - __func__, intface); - } - - /* reflect the RA info to the host variables in kernel */ - ndi.ndi.chlim = tmp->hoplimit; - ndi.ndi.retrans = tmp->retranstimer; - ndi.ndi.basereachable = tmp->reachabletime; - if (prog_ioctl(s, SIOCSIFINFO_IN6, &ndi) < 0) { - logit(LOG_INFO, "<%s> ioctl:SIOCSIFINFO_IN6 at %s: %m", - __func__, intface); - } - prog_close(s); - } -#endif - /* route information */ for (i = -1; i < MAXROUTE; i++) { struct rtinfo *rti;