summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2004-11-25 21:40:46 +0000
committermarkus <markus@openbsd.org>2004-11-25 21:40:46 +0000
commit92db3c835481bcfab1bd1fd8637ab3c3e6b7c13b (patch)
tree08b039b3311d7e290a24909d7384b3bbcaff5e69
parentoff by one in err() (diff)
downloadwireguard-openbsd-92db3c835481bcfab1bd1fd8637ab3c3e6b7c13b.tar.xz
wireguard-openbsd-92db3c835481bcfab1bd1fd8637ab3c3e6b7c13b.zip
remove special handling of PF_KEY in net_sysctl; ok deraadt
-rw-r--r--sys/kern/uipc_domain.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
index 794b6319c3a..8ff9852bed4 100644
--- a/sys/kern/uipc_domain.c
+++ b/sys/kern/uipc_domain.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_domain.c,v 1.18 2004/09/15 17:46:44 grange Exp $ */
+/* $OpenBSD: uipc_domain.c,v 1.19 2004/11/25 21:40:46 markus Exp $ */
/* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */
/*
@@ -192,9 +192,7 @@ net_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
/*
* All sysctl names at this level are nonterminal.
- * PF_KEY: next component is protocol family, and then at least one
- * additional component.
- * usually: next two components are protocol family and protocol
+ * Usually: next two components are protocol family and protocol
* number, then at least one addition component.
*/
if (namelen < 2)
@@ -213,20 +211,6 @@ net_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
#endif
return (ENOPROTOOPT);
found:
- switch (family) {
-#ifdef IPSEC
-#ifdef __KAME__
- case PF_KEY:
- pr = dp->dom_protosw;
- if (pr->pr_sysctl)
- return ((*pr->pr_sysctl)(name + 1, namelen - 1,
- oldp, oldlenp, newp, newlen));
- return (ENOPROTOOPT);
-#endif
-#endif
- default:
- break;
- }
if (namelen < 3)
return (EISDIR); /* overloaded */
protocol = name[1];