From owner-freebsd-bugs@FreeBSD.ORG Sun Oct 27 12:50:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.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 ESMTP id 3D96D75F for ; Sun, 27 Oct 2013 12:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 04BF82690 for ; Sun, 27 Oct 2013 12:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9RCo0xW079937 for ; Sun, 27 Oct 2013 12:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9RCo0F2079936; Sun, 27 Oct 2013 12:50:00 GMT (envelope-from gnats) Resent-Date: Sun, 27 Oct 2013 12:50:00 GMT Resent-Message-Id: <201310271250.r9RCo0F2079936@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gleb Smirnoff 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 ESMTP id DCDBD6DD for ; Sun, 27 Oct 2013 12:41:45 +0000 (UTC) (envelope-from glebius@cell.glebius.int.ru) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (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 6A2A2266F for ; Sun, 27 Oct 2013 12:41:44 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id r9RCfg4C046514 for ; Sun, 27 Oct 2013 16:41:42 +0400 (MSK) (envelope-from glebius@cell.glebius.int.ru) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id r9RCfgNq046513; Sun, 27 Oct 2013 16:41:42 +0400 (MSK) (envelope-from glebius) Message-Id: <201310271241.r9RCfgNq046513@cell.glebius.int.ru> Date: Sun, 27 Oct 2013 16:41:42 +0400 (MSK) From: Gleb Smirnoff To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: kern/183357: [exp-run] NET_RT_IFLIST X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2013 12:50:01 -0000 >Number: 183357 >Category: kern >Synopsis: [exp-run] NET_RT_IFLIST >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 27 12:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Gleb Smirnoff >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD >Description: I'd like to estimate number of ports that use our NET_RT sysctls. Can you please patch /usr/include/sys/socket.h with attached patch and run exp-run? >How-To-Repeat: Index: socket.h =================================================================== --- socket.h (revision 257208) +++ socket.h (working copy) @@ -370,21 +370,6 @@ */ #define NET_MAXID AF_MAX -/* - * PF_ROUTE - Routing table - * - * Three additional levels are defined: - * Fourth: address family, 0 is wildcard - * Fifth: type of info, defined below - * Sixth: flag(s) to mask with for NET_RT_FLAGS - */ -#define NET_RT_DUMP 1 /* dump; may limit to a.f. */ -#define NET_RT_FLAGS 2 /* by flags, e.g. RESOLVING */ -#define NET_RT_IFLIST 3 /* survey interface list */ -#define NET_RT_IFMALIST 4 /* return multicast address list */ -#define NET_RT_IFLISTL 5 /* Survey interface list, using 'l'en - * versions of msghdr structs. */ -#define NET_RT_MAXID 6 #endif /* __BSD_VISIBLE */ >Fix: >Release-Note: >Audit-Trail: >Unformatted: