From owner-svn-src-head@FreeBSD.ORG Wed Mar 5 01:47:09 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 86A1D1B6; Wed, 5 Mar 2014 01:47:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 736D5B1C; Wed, 5 Mar 2014 01:47:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s251l9oK028561; Wed, 5 Mar 2014 01:47:09 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s251l9YJ028559; Wed, 5 Mar 2014 01:47:09 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201403050147.s251l9YJ028559@svn.freebsd.org> From: Gleb Smirnoff Date: Wed, 5 Mar 2014 01:47:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262767 - in head: sys/net usr.bin/netstat X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 01:47:09 -0000 Author: glebius Date: Wed Mar 5 01:47:08 2014 New Revision: 262767 URL: http://svnweb.freebsd.org/changeset/base/262767 Log: Hide struct rtentry from userland. Modified: head/sys/net/route.h head/usr.bin/netstat/route.c Modified: head/sys/net/route.h ============================================================================== --- head/sys/net/route.h Wed Mar 5 01:41:10 2014 (r262766) +++ head/sys/net/route.h Wed Mar 5 01:47:08 2014 (r262767) @@ -105,6 +105,8 @@ struct mbuf; #include #endif #endif + +#if defined(_KERNEL) || defined(_WANT_RTENTRY) struct rtentry { struct radix_node rt_nodes[2]; /* tree glue, and other values */ /* @@ -127,6 +129,7 @@ struct rtentry { counter_u64_t rt_pksent; /* packets sent using this route */ struct mtx rt_mtx; /* mutex for routing entry */ }; +#endif /* _KERNEL || _WANT_RTENTRY */ /* * Following structure necessary for 4.3 compatibility; Modified: head/usr.bin/netstat/route.c ============================================================================== --- head/usr.bin/netstat/route.c Wed Mar 5 01:41:10 2014 (r262766) +++ head/usr.bin/netstat/route.c Wed Mar 5 01:47:08 2014 (r262767) @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#define _WANT_RTENTRY #include #include