Source-Changes-HG archive

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

[src/trunk]: src/sys/net report about route tag in sysctl route walker



details:   https://anonhg.NetBSD.org/src/rev/138cc94113bd
branches:  trunk
changeset: 788858:138cc94113bd
user:      kefren <kefren%NetBSD.org@localhost>
date:      Wed Jul 24 15:31:04 2013 +0000

description:
report about route tag in sysctl route walker

diffstat:

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

diffs (26 lines):

diff -r 5ea7918bb291 -r 138cc94113bd sys/net/rtsock.c
--- a/sys/net/rtsock.c  Wed Jul 24 14:03:22 2013 +0000
+++ b/sys/net/rtsock.c  Wed Jul 24 15:31:04 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsock.c,v 1.141 2013/03/01 18:25:57 joerg Exp $       */
+/*     $NetBSD: rtsock.c,v 1.142 2013/07/24 15:31:04 kefren 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.141 2013/03/01 18:25:57 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.142 2013/07/24 15:31:04 kefren Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1029,6 +1029,7 @@
        info.rti_info[RTAX_DST] = rt_getkey(rt);
        info.rti_info[RTAX_GATEWAY] = rt->rt_gateway;
        info.rti_info[RTAX_NETMASK] = rt_mask(rt);
+       info.rti_info[RTAX_TAG] = rt_gettag(rt);
        if (rt->rt_ifp) {
                const struct ifaddr *rtifa;
                info.rti_info[RTAX_IFP] = rt->rt_ifp->if_dl->ifa_addr;



Home | Main Index | Thread Index | Old Index