Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/route Report the PID for the process changing the address.



details:   https://anonhg.NetBSD.org/src/rev/041e09da864d
branches:  trunk
changeset: 352125:041e09da864d
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Mar 17 16:13:44 2017 +0000

description:
Report the PID for the process changing the address.

diffstat:

 sbin/route/route.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0810ede493c2 -r 041e09da864d sbin/route/route.c
--- a/sbin/route/route.c        Fri Mar 17 11:21:45 2017 +0000
+++ b/sbin/route/route.c        Fri Mar 17 16:13:44 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.154 2016/04/04 07:37:07 ozaki-r Exp $      */
+/*     $NetBSD: route.c,v 1.155 2017/03/17 16:13:44 roy Exp $  */
 
 /*
  * Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)route.c    8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: route.c,v 1.154 2016/04/04 07:37:07 ozaki-r Exp $");
+__RCSID("$NetBSD: route.c,v 1.155 2017/03/17 16:13:44 roy Exp $");
 #endif
 #endif /* not lint */
 
@@ -1348,7 +1348,8 @@
        case RTM_DELADDR:
        case RTM_CHGADDR:
                ifam = (struct ifa_msghdr *)rtm;
-               (void)printf("metric %d, flags: ", ifam->ifam_metric);
+               (void)printf("pid %d, metric %d, flags: ",
+                   ifam->ifam_pid, ifam->ifam_metric);
                bprintf(stdout, ifam->ifam_flags, routeflags);
                pmsg_addrs((char *)(ifam + 1), ifam->ifam_addrs);
                break;



Home | Main Index | Thread Index | Old Index