Date: Tue, 15 Oct 2019 15:40:03 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r353566 - in head/sys: kern sys Message-ID: <201910151540.x9FFe3FZ049055@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Tue Oct 15 15:40:03 2019 New Revision: 353566 URL: https://svnweb.freebsd.org/changeset/base/353566 Log: Remove pfctlinput2(). It came from KAME and had never ever been in use. Modified: head/sys/kern/uipc_domain.c head/sys/sys/protosw.h Modified: head/sys/kern/uipc_domain.c ============================================================================== --- head/sys/kern/uipc_domain.c Tue Oct 15 15:09:36 2019 (r353565) +++ head/sys/kern/uipc_domain.c Tue Oct 15 15:40:03 2019 (r353566) @@ -475,29 +475,6 @@ pfctlinput(int cmd, struct sockaddr *sa) (*pr->pr_ctlinput)(cmd, sa, (void *)0); } -void -pfctlinput2(int cmd, struct sockaddr *sa, void *ctlparam) -{ - struct domain *dp; - struct protosw *pr; - - if (!sa) - return; - for (dp = domains; dp; dp = dp->dom_next) { - /* - * the check must be made by xx_ctlinput() anyways, to - * make sure we use data item pointed to by ctlparam in - * correct way. the following check is made just for safety. - */ - if (dp->dom_family != sa->sa_family) - continue; - - for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++) - if (pr->pr_ctlinput) - (*pr->pr_ctlinput)(cmd, sa, ctlparam); - } -} - static void pfslowtimo(void *arg) { Modified: head/sys/sys/protosw.h ============================================================================== --- head/sys/sys/protosw.h Tue Oct 15 15:09:36 2019 (r353565) +++ head/sys/sys/protosw.h Tue Oct 15 15:40:03 2019 (r353566) @@ -342,7 +342,6 @@ char *prcorequests[] = { #ifdef _KERNEL void pfctlinput(int, struct sockaddr *); -void pfctlinput2(int, struct sockaddr *, void *); struct domain *pffinddomain(int family); struct protosw *pffindproto(int family, int protocol, int type); struct protosw *pffindtype(int family, int type);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910151540.x9FFe3FZ049055>