diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2019-10-15 15:40:03 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2019-10-15 15:40:03 +0000 |
commit | 237c1f932b196d5460b300c2de2f88b284f6db10 (patch) | |
tree | 610571d98c7d1677f6d4a580b8ce7408432f9633 /sys | |
parent | 6f2721b9071bc6c461b7b158aba44b6dd60b079f (diff) | |
download | src-237c1f932b196d5460b300c2de2f88b284f6db10.tar.gz src-237c1f932b196d5460b300c2de2f88b284f6db10.zip |
Remove pfctlinput2(). It came from KAME and had never ever been in use.
Notes
Notes:
svn path=/head/; revision=353566
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_domain.c | 23 | ||||
-rw-r--r-- | sys/sys/protosw.h | 1 |
2 files changed, 0 insertions, 24 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 0196f184cd07..26412972f6d5 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -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) { diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h index 096b507776e1..35b2aaf6ffb6 100644 --- a/sys/sys/protosw.h +++ b/sys/sys/protosw.h @@ -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); |