Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/common Added missing ifi_link_state ...



details:   https://anonhg.NetBSD.org/src/rev/9c74fe7f404c
branches:  trunk
changeset: 318956:9c74fe7f404c
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Thu May 10 09:33:46 2018 +0000
description:
Added missing ifi_link_state at compat_50_rt_oifmsg() and compat_50_iflist().

diffstat:

 sys/compat/common/rtsock_50.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r a1e0d41fb875 -r 9c74fe7f404c sys/compat/common/rtsock_50.c
--- a/sys/compat/common/rtsock_50.c     Thu May 10 05:15:14 2018 +0000
+++ b/sys/compat/common/rtsock_50.c     Thu May 10 09:33:46 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsock_50.c,v 1.6 2017/12/16 09:10:30 maxv Exp $       */
+/*     $NetBSD: rtsock_50.c,v 1.7 2018/05/10 09:33:46 nonaka Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock_50.c,v 1.6 2017/12/16 09:10:30 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock_50.c,v 1.7 2018/05/10 09:33:46 nonaka Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -95,6 +95,7 @@
        oifm.ifm_data.ifi_type = ifp->if_data.ifi_type;
        oifm.ifm_data.ifi_addrlen = ifp->if_data.ifi_addrlen;
        oifm.ifm_data.ifi_hdrlen = ifp->if_data.ifi_hdrlen;
+       oifm.ifm_data.ifi_link_state = ifp->if_data.ifi_link_state;
        oifm.ifm_data.ifi_mtu = ifp->if_data.ifi_mtu;
        oifm.ifm_data.ifi_metric = ifp->if_data.ifi_metric;
        oifm.ifm_data.ifi_baudrate = ifp->if_data.ifi_baudrate;
@@ -131,6 +132,7 @@
        ifm->ifm_data.ifi_type = ifp->if_data.ifi_type;
        ifm->ifm_data.ifi_addrlen = ifp->if_data.ifi_addrlen;
        ifm->ifm_data.ifi_hdrlen = ifp->if_data.ifi_hdrlen;
+       ifm->ifm_data.ifi_link_state = ifp->if_data.ifi_link_state;
        ifm->ifm_data.ifi_mtu = ifp->if_data.ifi_mtu;
        ifm->ifm_data.ifi_metric = ifp->if_data.ifi_metric;
        ifm->ifm_data.ifi_baudrate = ifp->if_data.ifi_baudrate;



Home | Main Index | Thread Index | Old Index