From owner-freebsd-doc@FreeBSD.ORG Wed Apr 29 20:00:12 2009 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 102681065670 for ; Wed, 29 Apr 2009 20:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C25288FC1C for ; Wed, 29 Apr 2009 20:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3TK0BWm075296 for ; Wed, 29 Apr 2009 20:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3TK0BZl075295; Wed, 29 Apr 2009 20:00:11 GMT (envelope-from gnats) Resent-Date: Wed, 29 Apr 2009 20:00:11 GMT Resent-Message-Id: <200904292000.n3TK0BZl075295@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eugene Mychlo Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4074310656AA for ; Wed, 29 Apr 2009 19:50:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2F01D8FC17 for ; Wed, 29 Apr 2009 19:50:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3TJoDsD044321 for ; Wed, 29 Apr 2009 19:50:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3TJoDF5044319; Wed, 29 Apr 2009 19:50:13 GMT (envelope-from nobody) Message-Id: <200904291950.n3TJoDF5044319@www.freebsd.org> Date: Wed, 29 Apr 2009 19:50:13 GMT From: Eugene Mychlo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/134100: Incorrect control messages in ng_hole(4) manpage X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 20:00:12 -0000 >Number: 134100 >Category: docs >Synopsis: Incorrect control messages in ng_hole(4) manpage >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 29 20:00:11 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Eugene Mychlo >Release: FreeBSD 7.1-RELEASE-p4 >Organization: Rekomendata, JSC >Environment: FreeBSD mycws.local 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 12:35:36 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: The ng_hole(4) manpage states that hole node type supports NGM_BPF_* control messages, but isn't correct. >How-To-Repeat: >Fix: Patch attached with submission follows: --- share/man/man4/ng_hole.4~ 2009-04-29 23:41:51.000000000 +0400 +++ share/man/man4/ng_hole.4 2009-04-29 23:42:50.000000000 +0400 @@ -58,20 +58,20 @@ This node type supports the generic control messages, plus the following: .Bl -tag -width indent -.It Dv NGM_BPF_GET_STATS +.It Dv NGM_HOLE_GET_STATS This command takes an .Tn ASCII string argument, the hook name, and returns the statistics associated with the hook as a .Vt "struct ng_hole_hookstat" . -.It Dv NGM_BPF_CLR_STATS +.It Dv NGM_HOLE_CLR_STATS This command takes an .Tn ASCII string argument, the hook name, and clears the statistics associated with the hook. -.It Dv NGM_BPF_GETCLR_STATS +.It Dv NGM_HOLE_GETCLR_STATS This command is identical to -.Dv NGM_BPF_GET_STATS , +.Dv NGM_HOLE_GET_STATS , except that the statistics are also atomically cleared. .El .Sh SHUTDOWN >Release-Note: >Audit-Trail: >Unformatted: