Module Name: src Committed By: roy Date: Fri Mar 17 16:13:44 UTC 2017
Modified Files: src/sbin/route: route.c Log Message: Report the PID for the process changing the address. To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 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.154 src/sbin/route/route.c:1.155 --- src/sbin/route/route.c:1.154 Mon Apr 4 07:37:07 2016 +++ src/sbin/route/route.c Fri Mar 17 16:13:44 2017 @@ -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 @@ __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.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 @@ print_rtmsg(struct rt_msghdr *rtm, int m 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;