Source-Changes-HG archive

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

[src/trunk]: src/sys/net Fill rmx_locks too



details:   https://anonhg.NetBSD.org/src/rev/7cb5a751947b
branches:  trunk
changeset: 351522:7cb5a751947b
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Feb 17 02:56:53 2017 +0000

description:
Fill rmx_locks too

Otherwise userland sees garbage in it.

This should fix t_mtudisc6 failing on babylon5.

diffstat:

 sys/net/rtsock.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 485f6777af26 -r 7cb5a751947b sys/net/rtsock.c
--- a/sys/net/rtsock.c  Fri Feb 17 01:49:24 2017 +0000
+++ b/sys/net/rtsock.c  Fri Feb 17 02:56:53 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsock.c,v 1.200 2017/01/19 06:58:55 ozaki-r Exp $     */
+/*     $NetBSD: rtsock.c,v 1.201 2017/02/17 02:56:53 ozaki-r Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.200 2017/01/19 06:58:55 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.201 2017/02/17 02:56:53 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1001,6 +1001,7 @@
        metric(rmx_rttvar);
        metric(rmx_hopcount);
        metric(rmx_mtu);
+       metric(rmx_locks);
 #undef metric
        out->rtm_rmx.rmx_expire = in->rt_rmx.rmx_expire ?
            time_mono_to_wall(in->rt_rmx.rmx_expire) : 0;



Home | Main Index | Thread Index | Old Index