From owner-svn-src-all@FreeBSD.ORG Fri Dec 7 02:29:33 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 117D8D4; Fri, 7 Dec 2012 02:29:33 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id CD61C8FC13; Fri, 7 Dec 2012 02:29:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qB72TWOn086835; Fri, 7 Dec 2012 02:29:32 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qB72TWGm086832; Fri, 7 Dec 2012 02:29:32 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201212070229.qB72TWGm086832@svn.freebsd.org> From: Kevin Lo Date: Fri, 7 Dec 2012 02:29:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r243967 - head/share/man/man9 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 02:29:33 -0000 Author: kevlo Date: Fri Dec 7 02:29:32 2012 New Revision: 243967 URL: http://svnweb.freebsd.org/changeset/base/243967 Log: Document pffinddomain(). Reviewed by: glebius Modified: head/share/man/man9/Makefile head/share/man/man9/domain.9 Modified: head/share/man/man9/Makefile ============================================================================== --- head/share/man/man9/Makefile Fri Dec 7 02:26:08 2012 (r243966) +++ head/share/man/man9/Makefile Fri Dec 7 02:29:32 2012 (r243967) @@ -620,6 +620,7 @@ MLINKS+=domain.9 DOMAIN_SET.9 \ domain.9 domain_add.9 \ domain.9 pfctlinput.9 \ domain.9 pfctlinput2.9 \ + domain.9 pffinddomain.9 \ domain.9 pffindproto.9 \ domain.9 pffindtype.9 MLINKS+=drbr.9 drbr_free.9 \ Modified: head/share/man/man9/domain.9 ============================================================================== --- head/share/man/man9/domain.9 Fri Dec 7 02:26:08 2012 (r243966) +++ head/share/man/man9/domain.9 Fri Dec 7 02:29:32 2012 (r243967) @@ -26,13 +26,14 @@ .\" .\" $FreeBSD$ .\" -.Dd November 5, 2012 +.Dd December 7, 2012 .Dt DOMAIN 9 .Os .Sh NAME .Nm domain_add , .Nm pfctlinput , .Nm pfctlinput2 , +.Nm pffinddomain , .Nm pffindproto , .Nm pffindtype , .Nm DOMAIN_SET @@ -48,6 +49,8 @@ .Fn pfctlinput "int cmd" "struct sockaddr *sa" .Ft void .Fn pfctlinput2 "int cmd" "struct sockaddr *sa" "void *ctlparam" +.Ft struct domain * +.Fn pffinddomain "int family" .Ft struct protosw * .Fn pffindproto "int family" "int protocol" "int type" .Ft struct protosw * @@ -176,6 +179,12 @@ This is because there is no reference counting system in place to determine if there are any active references from sockets within that domain. .Pp +.Fn pffinddomain +finds a domain by family. +If the domain cannot be found, +.Dv NULL +is returned. +.Pp .Fn pffindtype and .Fn pffindproto