Module Name: src
Committed By: ozaki-r
Date: Fri Feb 17 02:56:53 UTC 2017
Modified Files:
src/sys/net: rtsock.c
Log Message:
Fill rmx_locks too
Otherwise userland sees garbage in it.
This should fix t_mtudisc6 failing on babylon5.
To generate a diff of this commit:
cvs rdiff -u -r1.200 -r1.201 src/sys/net/rtsock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/rtsock.c
diff -u src/sys/net/rtsock.c:1.200 src/sys/net/rtsock.c:1.201
--- src/sys/net/rtsock.c:1.200 Thu Jan 19 06:58:55 2017
+++ src/sys/net/rtsock.c Fri Feb 17 02:56:53 2017
@@ -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 @@ rtm_setmetrics(const struct rtentry *in,
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;