CVS commit: src/sbin/route

2019-09-01 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Sep  2 00:30:01 UTC 2019

Modified Files:
src/sbin/route: route.c

Log Message:
route(8): Show addres for RTM_LOSING

While here, add /* FALLTHROUGH */.


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sbin/route/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/route

2019-09-01 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Sep  2 00:30:01 UTC 2019

Modified Files:
src/sbin/route: route.c

Log Message:
route(8): Show addres for RTM_LOSING

While here, add /* FALLTHROUGH */.


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sbin/route/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/route/route.c
diff -u src/sbin/route/route.c:1.162 src/sbin/route/route.c:1.163
--- src/sbin/route/route.c:1.162	Sat Aug 31 18:20:08 2019
+++ src/sbin/route/route.c	Mon Sep  2 00:30:01 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: route.c,v 1.162 2019/08/31 18:20:08 roy Exp $	*/
+/*	$NetBSD: route.c,v 1.163 2019/09/02 00:30:01 roy Exp $	*/
 
 /*
  * Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)route.c	8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: route.c,v 1.162 2019/08/31 18:20:08 roy Exp $");
+__RCSID("$NetBSD: route.c,v 1.163 2019/09/02 00:30:01 roy Exp $");
 #endif
 #endif /* not lint */
 
@@ -1459,10 +1459,11 @@ print_rtmsg(struct rt_msghdr *rtm, int m
 		}
 		printf("\n");
 		break;
-	case RTM_ADD:
-	case RTM_CHANGE:
-	case RTM_DELETE:
-	case RTM_GET:
+	case RTM_ADD:		/* FALLTHROUGH */
+	case RTM_CHANGE:	/* FALLTHROUGH */
+	case RTM_DELETE:	/* FALLTHROUGH */
+	case RTM_GET:		/* FALLTHROUGH */
+	case RTM_LOSING:	/* FALLTHROUGH */
 	case RTM_MISS:
 		(void)printf("pid %d, seq %d, errno %d, flags: ",
 			rtm->rtm_pid, rtm->rtm_seq, rtm->rtm_errno);



CVS commit: src/sbin/route

2019-08-31 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Sat Aug 31 18:20:08 UTC 2019

Modified Files:
src/sbin/route: route.c

Log Message:
route(8): show addrs for RTM_MISS


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 src/sbin/route/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/route/route.c
diff -u src/sbin/route/route.c:1.161 src/sbin/route/route.c:1.162
--- src/sbin/route/route.c:1.161	Thu Aug 22 16:10:48 2019
+++ src/sbin/route/route.c	Sat Aug 31 18:20:08 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: route.c,v 1.161 2019/08/22 16:10:48 roy Exp $	*/
+/*	$NetBSD: route.c,v 1.162 2019/08/31 18:20:08 roy Exp $	*/
 
 /*
  * Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)route.c	8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: route.c,v 1.161 2019/08/22 16:10:48 roy Exp $");
+__RCSID("$NetBSD: route.c,v 1.162 2019/08/31 18:20:08 roy Exp $");
 #endif
 #endif /* not lint */
 
@@ -1463,6 +1463,7 @@ print_rtmsg(struct rt_msghdr *rtm, int m
 	case RTM_CHANGE:
 	case RTM_DELETE:
 	case RTM_GET:
+	case RTM_MISS:
 		(void)printf("pid %d, seq %d, errno %d, flags: ",
 			rtm->rtm_pid, rtm->rtm_seq, rtm->rtm_errno);
 		bprintf(stdout, rtm->rtm_flags, routeflags);



CVS commit: src/sbin/route

2019-08-31 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Sat Aug 31 18:20:08 UTC 2019

Modified Files:
src/sbin/route: route.c

Log Message:
route(8): show addrs for RTM_MISS


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 src/sbin/route/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/route

2019-08-22 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Aug 22 16:10:48 UTC 2019

Modified Files:
src/sbin/route: route.c

Log Message:
route(8): print RTM_CHANGE messages

XXX Pullup -9


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sbin/route/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/route

2019-08-22 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Aug 22 16:10:48 UTC 2019

Modified Files:
src/sbin/route: route.c

Log Message:
route(8): print RTM_CHANGE messages

XXX Pullup -9


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sbin/route/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/route/route.c
diff -u src/sbin/route/route.c:1.160 src/sbin/route/route.c:1.161
--- src/sbin/route/route.c:1.160	Tue Aug 14 20:53:07 2018
+++ src/sbin/route/route.c	Thu Aug 22 16:10:48 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: route.c,v 1.160 2018/08/14 20:53:07 roy Exp $	*/
+/*	$NetBSD: route.c,v 1.161 2019/08/22 16:10:48 roy Exp $	*/
 
 /*
  * Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)route.c	8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: route.c,v 1.160 2018/08/14 20:53:07 roy Exp $");
+__RCSID("$NetBSD: route.c,v 1.161 2019/08/22 16:10:48 roy Exp $");
 #endif
 #endif /* not lint */
 
@@ -1460,6 +1460,7 @@ print_rtmsg(struct rt_msghdr *rtm, int m
 		printf("\n");
 		break;
 	case RTM_ADD:
+	case RTM_CHANGE:
 	case RTM_DELETE:
 	case RTM_GET:
 		(void)printf("pid %d, seq %d, errno %d, flags: ",



Re: CVS commit: src/sbin/route

2017-06-16 Thread Ryota Ozaki
On Fri, Jun 16, 2017 at 5:29 PM, Roy Marples  wrote:
> On 16/06/2017 05:40, Ryota Ozaki wrote:
>> Module Name:  src
>> Committed By: ozaki-r
>> Date: Fri Jun 16 04:40:16 UTC 2017
>>
>> Modified Files:
>>   src/sbin/route: route.8 route.c
>>
>> Log Message:
>> Support -c  option for route monitor
>>
>> route command exits if it receives  routing messages where
>>  is a value specified by -c.
>>
>> The option is useful to get only particular message(s) in a test script.
>
> It might be useful to specify a mask to set RO_MSGFILTER as well.
> This could be used to avoid RTM_MISS and other messages not wanted.

Probably. That's a reason that I implemented  as optional and
made a room in required arguments for such filters :)

  ozaki-r


Re: CVS commit: src/sbin/route

2017-06-16 Thread Roy Marples
On 16/06/2017 05:40, Ryota Ozaki wrote:
> Module Name:  src
> Committed By: ozaki-r
> Date: Fri Jun 16 04:40:16 UTC 2017
> 
> Modified Files:
>   src/sbin/route: route.8 route.c
> 
> Log Message:
> Support -c  option for route monitor
> 
> route command exits if it receives  routing messages where
>  is a value specified by -c.
> 
> The option is useful to get only particular message(s) in a test script.

It might be useful to specify a mask to set RO_MSGFILTER as well.
This could be used to avoid RTM_MISS and other messages not wanted.

Roy