Source-Changes-HG archive

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

[src/trunk]: src/sys/net It is necessary to set wall time instead of monotoni...



details:   https://anonhg.NetBSD.org/src/rev/6551aba06fee
branches:  trunk
changeset: 833008:6551aba06fee
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Tue Jun 05 01:25:59 2018 +0000

description:
It is necessary to set wall time instead of monotonic time to rmx_expire.

diffstat:

 sys/net/if_llatbl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r c202bb8fb679 -r 6551aba06fee sys/net/if_llatbl.c
--- a/sys/net/if_llatbl.c       Tue Jun 05 00:58:42 2018 +0000
+++ b/sys/net/if_llatbl.c       Tue Jun 05 01:25:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_llatbl.c,v 1.26 2018/03/06 07:27:55 ozaki-r Exp $   */
+/*     $NetBSD: if_llatbl.c,v 1.27 2018/06/05 01:25:59 nonaka Exp $    */
 /*
  * Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
  * Copyright (c) 2004-2008 Qing Li. All rights reserved.
@@ -112,8 +112,8 @@
                /* Need to copy by myself */
                rtm->rtm_index = ifp->if_index;
                rtm->rtm_rmx.rmx_mtu = 0;
-               rtm->rtm_rmx.rmx_expire =
-                   (lle->la_flags & LLE_STATIC) ? 0 : lle->la_expire;
+               rtm->rtm_rmx.rmx_expire = (lle->la_flags & LLE_STATIC) ? 0 :
+                   time_mono_to_wall(lle->la_expire);
                rtm->rtm_flags = RTF_UP;
                rtm->rtm_flags |= RTF_HOST; /* For ndp */
                /* For backward compatibility */



Home | Main Index | Thread Index | Old Index