CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: wiz Date: Thu Apr 16 07:23:59 UTC 2020 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Sort SEE ALSO. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.40 src/usr.sbin/rtsold/rtsold.8:1.41 --- src/usr.sbin/rtsold/rtsold.8:1.40 Wed Apr 15 20:31:58 2020 +++ src/usr.sbin/rtsold/rtsold.8 Thu Apr 16 07:23:58 2020 @@ -1,4 +1,4 @@ -.\" $NetBSD: rtsold.8,v 1.40 2020/04/15 20:31:58 kim Exp $ +.\" $NetBSD: rtsold.8,v 1.41 2020/04/16 07:23:58 wiz Exp $ .\" $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\" .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -64,5 +64,5 @@ keyword to invoke to send a router solicitation message, without running it as daemon. .\" .Sh SEE ALSO -.Xr dhcpcd 8 , -.Xr ifconfig.if 5 +.Xr ifconfig.if 5 , +.Xr dhcpcd 8
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: wiz Date: Mon Apr 13 20:44:40 UTC 2020 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Remove trailing dot in SEE ALSO. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.38 src/usr.sbin/rtsold/rtsold.8:1.39 --- src/usr.sbin/rtsold/rtsold.8:1.38 Mon Apr 13 15:23:18 2020 +++ src/usr.sbin/rtsold/rtsold.8 Mon Apr 13 20:44:39 2020 @@ -1,4 +1,4 @@ -.\" $NetBSD: rtsold.8,v 1.38 2020/04/13 15:23:18 uwe Exp $ +.\" $NetBSD: rtsold.8,v 1.39 2020/04/13 20:44:39 wiz Exp $ .\" $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\" .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -52,4 +52,4 @@ about it without changing the actual rou .Dl dhcpcd -dB6T --nodhcp6 < Ns Ar interface Ns \^> .\" .Sh SEE ALSO -.Xr dhcpcd 8 . +.Xr dhcpcd 8
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: uwe Date: Mon Apr 13 15:23:18 UTC 2020 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Use .Dl for one line literal display. Add SEE ALSO. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.37 src/usr.sbin/rtsold/rtsold.8:1.38 --- src/usr.sbin/rtsold/rtsold.8:1.37 Sun Oct 22 18:09:33 2017 +++ src/usr.sbin/rtsold/rtsold.8 Mon Apr 13 15:23:18 2020 @@ -1,4 +1,4 @@ -.\" $NetBSD: rtsold.8,v 1.37 2017/10/22 18:09:33 abhinav Exp $ +.\" $NetBSD: rtsold.8,v 1.38 2020/04/13 15:23:18 uwe Exp $ .\" $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\" .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -48,6 +48,8 @@ as their functionality is now included i .Pp For example to send a routing solicitation message and print information about it without changing the actual routing table: -.Bd -literal - dhcpcd -dB6T --nodhcp6 -.Ed +.Pp +.Dl dhcpcd -dB6T --nodhcp6 < Ns Ar interface Ns \^> +.\" +.Sh SEE ALSO +.Xr dhcpcd 8 .
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: abhinav Date: Sun Oct 22 18:09:33 UTC 2017 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Add rtsol to the NAME section as well To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.36 src/usr.sbin/rtsold/rtsold.8:1.37 --- src/usr.sbin/rtsold/rtsold.8:1.36 Sun Oct 12 19:53:34 2014 +++ src/usr.sbin/rtsold/rtsold.8 Sun Oct 22 18:09:33 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: rtsold.8,v 1.36 2014/10/12 19:53:34 christos Exp $ +.\" $NetBSD: rtsold.8,v 1.37 2017/10/22 18:09:33 abhinav Exp $ .\" $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\" .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -33,7 +33,8 @@ .Os .\" .Sh NAME -.Nm rtsold +.Nm rtsold , +.Nm rtsol .Nd router solicitation daemon .\" .Sh DESCRIPTION
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: christos Date: Sun Oct 12 19:53:34 UTC 2014 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Give an example how to use dhcpcd instead of rtsol To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.35 src/usr.sbin/rtsold/rtsold.8:1.36 --- src/usr.sbin/rtsold/rtsold.8:1.35 Thu Sep 11 17:04:34 2014 +++ src/usr.sbin/rtsold/rtsold.8 Sun Oct 12 15:53:34 2014 @@ -1,4 +1,4 @@ -.\ $NetBSD: rtsold.8,v 1.35 2014/09/11 21:04:34 wiz Exp $ +.\ $NetBSD: rtsold.8,v 1.36 2014/10/12 19:53:34 christos Exp $ .\ $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\ .\ Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -28,7 +28,7 @@ .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\ SUCH DAMAGE. .\ -.Dd September 9, 2014 +.Dd October 12, 2014 .Dt RTSOLD 8 .Os .\ @@ -44,3 +44,9 @@ have been removed from .Nx as their functionality is now included in .Xr dhcpcd 8 . +.Pp +For example to send a routing solicitation message and print information +about it without changing the actual routing table: +.Bd -literal + dhcpcd -dB6T --nodhcp6 interface +.Ed
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: wiz Date: Thu Sep 11 21:04:35 UTC 2014 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Use Nx. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.34 src/usr.sbin/rtsold/rtsold.8:1.35 --- src/usr.sbin/rtsold/rtsold.8:1.34 Thu Sep 11 13:10:04 2014 +++ src/usr.sbin/rtsold/rtsold.8 Thu Sep 11 21:04:34 2014 @@ -1,4 +1,4 @@ -.\ $NetBSD: rtsold.8,v 1.34 2014/09/11 13:10:04 roy Exp $ +.\ $NetBSD: rtsold.8,v 1.35 2014/09/11 21:04:34 wiz Exp $ .\ $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\ .\ Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -40,5 +40,7 @@ .Nm and .Nm rtsol -have been removed from NetBSD as their functionality is now included in +have been removed from +.Nx +as their functionality is now included in .Xr dhcpcd 8 .
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: joerg Date: Tue Mar 25 17:17:44 UTC 2014 Modified Files: src/usr.sbin/rtsold: rtsold.c Log Message: Don't cast to time_t just to implicitly cast to uint32_t next. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/usr.sbin/rtsold/rtsold.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/rtsold/rtsold.c diff -u src/usr.sbin/rtsold/rtsold.c:1.40 src/usr.sbin/rtsold/rtsold.c:1.41 --- src/usr.sbin/rtsold/rtsold.c:1.40 Tue Mar 18 20:39:55 2014 +++ src/usr.sbin/rtsold/rtsold.c Tue Mar 25 17:17:44 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsold.c,v 1.40 2014/03/18 20:39:55 dsl Exp $ */ +/* $NetBSD: rtsold.c,v 1.41 2014/03/25 17:17:44 joerg Exp $ */ /* $KAME: rtsold.c,v 1.77 2004/01/03 01:35:13 itojun Exp $ */ /* @@ -587,7 +587,7 @@ rtsol_timer_update(struct ifinfo *ifinfo ifinfo-timer = tm_max; /* stop timer(valid?) */ break; case IFS_DELAY: - interval = (time_t) (arc4random() % (MAX_RTR_SOLICITATION_DELAY * MILLION)); + interval = arc4random() % (MAX_RTR_SOLICITATION_DELAY * MILLION); ifinfo-timer.tv_sec = interval / MILLION; ifinfo-timer.tv_usec = (suseconds_t)(interval % MILLION); break;
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: christos Date: Tue Mar 18 19:30:09 UTC 2014 Modified Files: src/usr.sbin/rtsold: rtsold.c Log Message: use time_t for time To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/usr.sbin/rtsold/rtsold.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/rtsold/rtsold.c diff -u src/usr.sbin/rtsold/rtsold.c:1.38 src/usr.sbin/rtsold/rtsold.c:1.39 --- src/usr.sbin/rtsold/rtsold.c:1.38 Mon Mar 17 20:16:49 2014 +++ src/usr.sbin/rtsold/rtsold.c Tue Mar 18 15:30:09 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsold.c,v 1.38 2014/03/18 00:16:49 christos Exp $ */ +/* $NetBSD: rtsold.c,v 1.39 2014/03/18 19:30:09 christos Exp $ */ /* $KAME: rtsold.c,v 1.77 2004/01/03 01:35:13 itojun Exp $ */ /* @@ -565,7 +565,7 @@ rtsol_timer_update(struct ifinfo *ifinfo { #define MILLION 100 #define DADRETRY 10 /* XXX: adhoc */ - long interval; + time_t interval; struct timeval now; bzero(ifinfo-timer, sizeof(ifinfo-timer)); @@ -587,7 +587,7 @@ rtsol_timer_update(struct ifinfo *ifinfo ifinfo-timer = tm_max; /* stop timer(valid?) */ break; case IFS_DELAY: - interval = arc4random() % (MAX_RTR_SOLICITATION_DELAY * MILLION); + interval = (time_t) (arc4random() % (MAX_RTR_SOLICITATION_DELAY * MILLION)); ifinfo-timer.tv_sec = interval / MILLION; ifinfo-timer.tv_usec = (suseconds_t)(interval % MILLION); break;
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: dsl Date: Tue Mar 18 20:39:55 UTC 2014 Modified Files: src/usr.sbin/rtsold: rtsold.c Log Message: Change previous to use uint32_t for 'interval'. The value is a random interval in usec obtained by reducing a uint32_t value modulo 100 (multiplied by a delay in seconds of 1). The value is then being split into secs+usec and assigned to a timeval (and an interval). With -Wsign-conversion the type has to be either an unsigned 32bit type, or a signed 64bit one. This is just plain stupid. Warning about conversions between signed and unsigned types really only makes sense if the compiler is dynamically tracking the domain of the value. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/usr.sbin/rtsold/rtsold.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/rtsold/rtsold.c diff -u src/usr.sbin/rtsold/rtsold.c:1.39 src/usr.sbin/rtsold/rtsold.c:1.40 --- src/usr.sbin/rtsold/rtsold.c:1.39 Tue Mar 18 19:30:09 2014 +++ src/usr.sbin/rtsold/rtsold.c Tue Mar 18 20:39:55 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsold.c,v 1.39 2014/03/18 19:30:09 christos Exp $ */ +/* $NetBSD: rtsold.c,v 1.40 2014/03/18 20:39:55 dsl Exp $ */ /* $KAME: rtsold.c,v 1.77 2004/01/03 01:35:13 itojun Exp $ */ /* @@ -565,7 +565,7 @@ rtsol_timer_update(struct ifinfo *ifinfo { #define MILLION 100 #define DADRETRY 10 /* XXX: adhoc */ - time_t interval; + uint32_t interval; struct timeval now; bzero(ifinfo-timer, sizeof(ifinfo-timer));
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: christos Date: Tue Mar 18 00:16:49 UTC 2014 Modified Files: src/usr.sbin/rtsold: Makefile dump.c if.c probe.c rtsock.c rtsol.c rtsold.c rtsold.h Log Message: KNF, bump warns, fix warnings to print the program name. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/rtsold/Makefile cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/rtsold/dump.c cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/rtsold/if.c \ src/usr.sbin/rtsold/rtsol.c cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/rtsold/probe.c cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/rtsold/rtsock.c cvs rdiff -u -r1.37 -r1.38 src/usr.sbin/rtsold/rtsold.c cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/rtsold/rtsold.h 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/rtsold/Makefile diff -u src/usr.sbin/rtsold/Makefile:1.14 src/usr.sbin/rtsold/Makefile:1.15 --- src/usr.sbin/rtsold/Makefile:1.14 Wed Apr 22 11:23:08 2009 +++ src/usr.sbin/rtsold/Makefile Mon Mar 17 20:16:49 2014 @@ -1,5 +1,6 @@ -# $NetBSD: Makefile,v 1.14 2009/04/22 15:23:08 lukem Exp $ +# $NetBSD: Makefile,v 1.15 2014/03/18 00:16:49 christos Exp $ +WARNS?=6 USE_FORT?= yes # network client (local server) PROG= rtsold Index: src/usr.sbin/rtsold/dump.c diff -u src/usr.sbin/rtsold/dump.c:1.9 src/usr.sbin/rtsold/dump.c:1.10 --- src/usr.sbin/rtsold/dump.c:1.9 Sat Apr 11 03:51:59 2009 +++ src/usr.sbin/rtsold/dump.c Mon Mar 17 20:16:49 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: dump.c,v 1.9 2009/04/11 07:51:59 lukem Exp $ */ +/* $NetBSD: dump.c,v 1.10 2014/03/18 00:16:49 christos Exp $ */ /* $KAME: dump.c,v 1.10 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -48,11 +48,11 @@ static FILE *fp; -extern struct ifinfo *iflist; - -static void dump_interface_status __P((void)); -static const char *sec2str __P((time_t)); -const char *ifstatstr[] = {IDLE, DELAY, PROBE, DOWN, TENTATIVE}; +static void dump_interface_status(void); +static const char *sec2str(time_t); +static const char *ifstatstr[] = { + IDLE, DELAY, PROBE, DOWN, TENTATIVE +}; static void dump_interface_status(void) @@ -115,32 +115,32 @@ sec2str(time_t total) char *ep = result[sizeof(result)]; int n; - days = total / 3600 / 24; - hours = (total / 3600) % 24; - mins = (total / 60) % 60; - secs = total % 60; + days = (int)(total / 3600 / 24); + hours = (int)((total / 3600) % 24); + mins = (int)((total / 60) % 60); + secs = (int)(total % 60); if (days) { first = 0; - n = snprintf(p, ep - p, %dd, days); + n = snprintf(p, (size_t)(ep - p), %dd, days); if (n 0 || n = ep - p) return ?; p += n; } if (!first || hours) { first = 0; - n = snprintf(p, ep - p, %dh, hours); + n = snprintf(p, (size_t)(ep - p), %dh, hours); if (n 0 || n = ep - p) return ?; p += n; } if (!first || mins) { first = 0; - n = snprintf(p, ep - p, %dm, mins); + n = snprintf(p, (size_t)(ep - p), %dm, mins); if (n 0 || n = ep - p) return ?; p += n; } - snprintf(p, ep - p, %ds, secs); - return(result); + snprintf(p, (size_t)(ep - p), %ds, secs); + return result; } Index: src/usr.sbin/rtsold/if.c diff -u src/usr.sbin/rtsold/if.c:1.15 src/usr.sbin/rtsold/if.c:1.16 --- src/usr.sbin/rtsold/if.c:1.15 Sat Mar 18 16:41:23 2006 +++ src/usr.sbin/rtsold/if.c Mon Mar 17 20:16:49 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: if.c,v 1.15 2006/03/18 21:41:23 dan Exp $ */ +/* $NetBSD: if.c,v 1.16 2014/03/18 00:16:49 christos Exp $ */ /* $KAME: if.c,v 1.18 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -59,18 +59,17 @@ #include rtsold.h -extern int rssock; static int ifsock; -static int get_llflag __P((const char *)); -static void get_rtaddrs __P((int, struct sockaddr *, struct sockaddr **)); +static int get_llflag(const char *); +static void get_rtaddrs(int, struct sockaddr *, struct sockaddr **); int ifinit(void) { ifsock = rssock; - return(0); + return 0; } int @@ -81,17 +80,17 @@ interface_up(char *name) strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); - if (ioctl(ifsock, SIOCGIFFLAGS, (caddr_t)ifr) 0) { + if (ioctl(ifsock, SIOCGIFFLAGS, ifr) 0) { warnmsg(LOG_WARNING, __func__, ioctl(SIOCGIFFLAGS): %s, strerror(errno)); - return(-1); + return -1; } if (!(ifr.ifr_flags IFF_UP)) { ifr.ifr_flags |= IFF_UP; - if (ioctl(ifsock, SIOCSIFFLAGS, (caddr_t)ifr) 0) + if (ioctl(ifsock, SIOCSIFFLAGS, ifr) 0) warnmsg(LOG_ERR, __func__, ioctl(SIOCSIFFLAGS): %s, strerror(errno)); - return(-1); + return -1; } warnmsg(LOG_DEBUG, __func__, checking if %s is ready..., name); @@ -105,7 +104,7 @@ interface_up(char *name) if (!(llflag IN6_IFF_NOTREADY)) { warnmsg(LOG_DEBUG, __func__, %s is ready, name); - return(0); + return 0; } else { if (llflag IN6_IFF_TENTATIVE) { warnmsg(LOG_DEBUG, __func__, %s is tentative, @@ -132,7 +131,7 @@ interface_status(struct ifinfo *ifinfo) if (ioctl(ifsock, SIOCGIFFLAGS, ifr)
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: wiz Date: Sun May 26 17:25:53 UTC 2013 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Reword to work around phrasing that caused lots of discussions. From Robert Elz. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.32 src/usr.sbin/rtsold/rtsold.8:1.33 --- src/usr.sbin/rtsold/rtsold.8:1.32 Fri May 24 16:38:46 2013 +++ src/usr.sbin/rtsold/rtsold.8 Sun May 26 17:25:53 2013 @@ -1,4 +1,4 @@ -.\ $NetBSD: rtsold.8,v 1.32 2013/05/24 16:38:46 wiz Exp $ +.\ $NetBSD: rtsold.8,v 1.33 2013/05/26 17:25:53 wiz Exp $ .\ $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\ .\ Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -102,8 +102,9 @@ option is specified and the daemon cannot get the interface status. This feature does not conform to the IPv6 neighbor discovery specification, but is provided for mobile stations. -The default interval for router advertisements, which is in the order of 10 -minutes, is slightly long for mobile stations. +The default interval for router advertisements, +which is approximately 10 minutes, +is slightly long for mobile stations. This feature is provided for such stations so that they can find new routers as soon as possible when they attach to another link.
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: wiz Date: Fri May 24 13:45:46 UTC 2013 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Update description for -a: -a autoprobes multiple ifs, and does not exit with error. Diff originally from Mark Johnston (markj@freebsd), via jmc@openbsd. Bump date. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.30 src/usr.sbin/rtsold/rtsold.8:1.31 --- src/usr.sbin/rtsold/rtsold.8:1.30 Mon Jan 11 14:30:02 2010 +++ src/usr.sbin/rtsold/rtsold.8 Fri May 24 13:45:46 2013 @@ -1,4 +1,4 @@ -.\ $NetBSD: rtsold.8,v 1.30 2010/01/11 14:30:02 wiz Exp $ +.\ $NetBSD: rtsold.8,v 1.31 2013/05/24 13:45:46 wiz Exp $ .\ $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\ .\ Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -28,7 +28,7 @@ .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\ SUCH DAMAGE. .\ -.Dd January 11, 2010 +.Dd May 24, 2013 .Dt RTSOLD 8 .Os .\ @@ -142,14 +142,10 @@ Advertisement packet has arrived on each .Ar interface , then exit. .It Fl a -Autoprobe outgoing interface. +Autoprobe outgoing interfaces. .Nm -will try to find a non-loopback, non-point-to-point, IPv6-capable interface. -If -.Nm -finds multiple interfaces, -.Nm -will exit with an error. +will try to find a non-loopback, non-point-to-point, IPv6-capable interfaces, +and send router solicitation messages on all of them. .It Fl D Enable more debugging (than that offered by the .Fl d
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: wiz Date: Fri May 24 16:38:46 UTC 2013 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Correct a phrase. From jmc@openbsd. Already fixed once by mbalmer and unfixed by me. Oops. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.31 src/usr.sbin/rtsold/rtsold.8:1.32 --- src/usr.sbin/rtsold/rtsold.8:1.31 Fri May 24 13:45:46 2013 +++ src/usr.sbin/rtsold/rtsold.8 Fri May 24 16:38:46 2013 @@ -1,4 +1,4 @@ -.\ $NetBSD: rtsold.8,v 1.31 2013/05/24 13:45:46 wiz Exp $ +.\ $NetBSD: rtsold.8,v 1.32 2013/05/24 16:38:46 wiz Exp $ .\ $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\ .\ Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -102,7 +102,7 @@ option is specified and the daemon cannot get the interface status. This feature does not conform to the IPv6 neighbor discovery specification, but is provided for mobile stations. -The default interval for router advertisements, which is on the order of 10 +The default interval for router advertisements, which is in the order of 10 minutes, is slightly long for mobile stations. This feature is provided for such stations so that they can find new routers as soon as possible
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: mbalmer Date: Mon Jan 11 09:21:39 UTC 2010 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: some wording fixes To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.27 src/usr.sbin/rtsold/rtsold.8:1.28 --- src/usr.sbin/rtsold/rtsold.8:1.27 Fri Oct 13 21:07:34 2006 +++ src/usr.sbin/rtsold/rtsold.8 Mon Jan 11 09:21:39 2010 @@ -1,4 +1,4 @@ -.\ $NetBSD: rtsold.8,v 1.27 2006/10/13 21:07:34 wiz Exp $ +.\ $NetBSD: rtsold.8,v 1.28 2010/01/11 09:21:39 mbalmer Exp $ .\ $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\ .\ Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -28,7 +28,7 @@ .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\ SUCH DAMAGE. .\ -.Dd October 8, 2006 +.Dd January 11, 2010 .Dt RTSOLD 8 .Os .\ @@ -81,7 +81,7 @@ after one of the following events: .Bl -bullet .It -Just after invocation of +Just after invocation of the .Nm daemon. .It @@ -102,7 +102,7 @@ daemon cannot get the interface status. This feature does not conform to the IPv6 neighbor discovery specification, but is provided for mobile stations. -The default interval for router advertisements, which is on the order of 10 +The default interval for router advertisements, which is in the order of 10 minutes, is slightly long for mobile stations. This feature is provided for such stations so that they can find new routers as soon as possible @@ -149,7 +149,7 @@ .Nm finds multiple interfaces, .Nm -will exit with error. +will exit with an error. .It Fl D Enable more debugging (than that offered by the .Fl d @@ -173,6 +173,7 @@ Moreover, if the option is specified, .Nm periodically sends Router Solicitation on an interface that does not support +the .Dv SIOCGIFMEDIA ioctl. .El @@ -198,7 +199,7 @@ .Nm command is based on the .Nm rtsol -command, which first appeared in WIDE/KAME IPv6 protocol stack kit. +command, which first appeared in the WIDE/KAME IPv6 protocol stack kit. .Nm rtsol is now integrated into .Nm .
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: wiz Date: Mon Jan 11 09:49:19 UTC 2010 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.28 src/usr.sbin/rtsold/rtsold.8:1.29 --- src/usr.sbin/rtsold/rtsold.8:1.28 Mon Jan 11 09:21:39 2010 +++ src/usr.sbin/rtsold/rtsold.8 Mon Jan 11 09:49:19 2010 @@ -1,4 +1,4 @@ -.\ $NetBSD: rtsold.8,v 1.28 2010/01/11 09:21:39 mbalmer Exp $ +.\ $NetBSD: rtsold.8,v 1.29 2010/01/11 09:49:19 wiz Exp $ .\ $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\ .\ Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -210,7 +210,8 @@ However, .Nm assumes such changes will not occur, and always uses the index that -it got at invocation. As a result, +it got at invocation. +As a result, .Nm may not work if you reinsert a network card. In such a case,
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: wiz Date: Mon Jan 11 14:30:02 UTC 2010 Modified Files: src/usr.sbin/rtsold: rtsold.8 Log Message: Anon tells me it should be on the order of, not in the order of. Hi marc! To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/usr.sbin/rtsold/rtsold.8 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/rtsold/rtsold.8 diff -u src/usr.sbin/rtsold/rtsold.8:1.29 src/usr.sbin/rtsold/rtsold.8:1.30 --- src/usr.sbin/rtsold/rtsold.8:1.29 Mon Jan 11 09:49:19 2010 +++ src/usr.sbin/rtsold/rtsold.8 Mon Jan 11 14:30:02 2010 @@ -1,4 +1,4 @@ -.\ $NetBSD: rtsold.8,v 1.29 2010/01/11 09:49:19 wiz Exp $ +.\ $NetBSD: rtsold.8,v 1.30 2010/01/11 14:30:02 wiz Exp $ .\ $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ .\ .\ Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -102,7 +102,7 @@ daemon cannot get the interface status. This feature does not conform to the IPv6 neighbor discovery specification, but is provided for mobile stations. -The default interval for router advertisements, which is in the order of 10 +The default interval for router advertisements, which is on the order of 10 minutes, is slightly long for mobile stations. This feature is provided for such stations so that they can find new routers as soon as possible
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: lukem Date: Sat Apr 11 07:51:59 UTC 2009 Modified Files: src/usr.sbin/rtsold: Makefile dump.c rtsock.c rtsol.c rtsold.c rtsold.h Log Message: fix WARNS=4 issues To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/rtsold/Makefile cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/rtsold/dump.c \ src/usr.sbin/rtsold/rtsold.h cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/rtsold/rtsock.c cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/rtsold/rtsol.c cvs rdiff -u -r1.34 -r1.35 src/usr.sbin/rtsold/rtsold.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/rtsold/Makefile diff -u src/usr.sbin/rtsold/Makefile:1.12 src/usr.sbin/rtsold/Makefile:1.13 --- src/usr.sbin/rtsold/Makefile:1.12 Mon May 28 12:06:40 2007 +++ src/usr.sbin/rtsold/Makefile Sat Apr 11 07:51:59 2009 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.12 2007/05/28 12:06:40 tls Exp $ +# $NetBSD: Makefile,v 1.13 2009/04/11 07:51:59 lukem Exp $ USE_FORT?= yes # network client (local server) +WARNS?= 4 PROG= rtsold SRCS= rtsold.c rtsol.c if.c probe.c dump.c rtsock.c Index: src/usr.sbin/rtsold/dump.c diff -u src/usr.sbin/rtsold/dump.c:1.8 src/usr.sbin/rtsold/dump.c:1.9 --- src/usr.sbin/rtsold/dump.c:1.8 Sat Jan 3 01:40:31 2004 +++ src/usr.sbin/rtsold/dump.c Sat Apr 11 07:51:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dump.c,v 1.8 2004/01/03 01:40:31 itojun Exp $ */ +/* $NetBSD: dump.c,v 1.9 2009/04/11 07:51:59 lukem Exp $ */ /* $KAME: dump.c,v 1.10 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -51,8 +51,8 @@ extern struct ifinfo *iflist; static void dump_interface_status __P((void)); -static char *sec2str __P((time_t)); -char *ifstatstr[] = {IDLE, DELAY, PROBE, DOWN, TENTATIVE}; +static const char *sec2str __P((time_t)); +const char *ifstatstr[] = {IDLE, DELAY, PROBE, DOWN, TENTATIVE}; static void dump_interface_status(void) @@ -94,7 +94,7 @@ } void -rtsold_dump_file(char *dumpfile) +rtsold_dump_file(const char *dumpfile) { if ((fp = fopen(dumpfile, w)) == NULL) { warnmsg(LOG_WARNING, __func__, open a dump file(%s): %s, @@ -105,7 +105,7 @@ fclose(fp); } -static char * +static const char * sec2str(time_t total) { static char result[256]; Index: src/usr.sbin/rtsold/rtsold.h diff -u src/usr.sbin/rtsold/rtsold.h:1.8 src/usr.sbin/rtsold/rtsold.h:1.9 --- src/usr.sbin/rtsold/rtsold.h:1.8 Fri May 31 10:22:17 2002 +++ src/usr.sbin/rtsold/rtsold.h Sat Apr 11 07:51:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsold.h,v 1.8 2002/05/31 10:22:17 itojun Exp $ */ +/* $NetBSD: rtsold.h,v 1.9 2009/04/11 07:51:59 lukem Exp $ */ /* $KAME: rtsold.h,v 1.14 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -91,7 +91,7 @@ extern void defrouter_probe __P((struct ifinfo *)); /* dump.c */ -extern void rtsold_dump_file __P((char *)); +extern void rtsold_dump_file __P((const char *)); /* rtsock.c */ extern int rtsock_open __P((void)); Index: src/usr.sbin/rtsold/rtsock.c diff -u src/usr.sbin/rtsold/rtsock.c:1.5 src/usr.sbin/rtsold/rtsock.c:1.6 --- src/usr.sbin/rtsold/rtsock.c:1.5 Sat Jan 3 01:40:32 2004 +++ src/usr.sbin/rtsold/rtsock.c Sat Apr 11 07:51:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsock.c,v 1.5 2004/01/03 01:40:32 itojun Exp $ */ +/* $NetBSD: rtsock.c,v 1.6 2009/04/11 07:51:59 lukem Exp $ */ /* $KAME: rtsock.c,v 1.4 2001/09/19 06:59:41 sakane Exp $ */ /* @@ -104,7 +104,7 @@ lim = msg + n; for (next = msg; next lim; next += len) { rtm = (struct rt_msghdr *)next; - if (lim - next lenlim) + if (lim - next (intptr_t)lenlim) break; len = rtm-rtm_msglen; if (len lenlim) Index: src/usr.sbin/rtsold/rtsol.c diff -u src/usr.sbin/rtsold/rtsol.c:1.14 src/usr.sbin/rtsold/rtsol.c:1.15 --- src/usr.sbin/rtsold/rtsol.c:1.14 Thu Sep 6 09:26:21 2007 +++ src/usr.sbin/rtsold/rtsol.c Sat Apr 11 07:51:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsol.c,v 1.14 2007/09/06 09:26:21 jnemeth Exp $ */ +/* $NetBSD: rtsol.c,v 1.15 2009/04/11 07:51:59 lukem Exp $ */ /* $KAME: rtsol.c,v 1.15 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -179,7 +179,7 @@ struct in6_pktinfo *pi; struct cmsghdr *cm; int hoplimit = 255; - int i; + ssize_t i; struct sockaddr_in6 dst; dst = sin6_allrouters; @@ -211,7 +211,7 @@ i = sendmsg(rssock, sndmhdr, 0); - if (i 0 || i != ifinfo-rs_datalen) { + if (i 0 || (size_t)i != ifinfo-rs_datalen) { /* * ENETDOWN is not so serious, especially when using several * network cards on a mobile node. We ignore it. @@ -229,7 +229,8 @@ rtsol_input(int s) { char ntopbuf[INET6_ADDRSTRLEN], ifnamebuf[IFNAMSIZ]; - int ifindex = 0, i, *hlimp = NULL; + int ifindex = 0, *hlimp = NULL; + ssize_t i; struct in6_pktinfo *pi = NULL; struct ifinfo *ifi = NULL; struct icmp6_hdr *icp; @@ -267,9 +268,9 @@ return; } - if (i sizeof(struct nd_router_advert)) { + if (i (ssize_t)sizeof(struct nd_router_advert)) { warnmsg(LOG_ERR, __func__, - packet size(%d) is