summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2010-10-18 04:31:01 +0000
committerguenther <guenther@openbsd.org>2010-10-18 04:31:01 +0000
commitb2d97f1aeb13543ce9c4fb02feb9a80c709d9423 (patch)
treebe63eef3c0bb05600389e3963b2ea534d565e518
parentthe misc set went away (diff)
downloadwireguard-openbsd-b2d97f1aeb13543ce9c4fb02feb9a80c709d9423.tar.xz
wireguard-openbsd-b2d97f1aeb13543ce9c4fb02feb9a80c709d9423.zip
PRU_PEEREID is only used by code under COMPAT_O47, so put it there too
so that we remember to remove it all at the same time in two years. ok deraadt@
-rw-r--r--sys/kern/uipc_usrreq.c4
-rw-r--r--sys/sys/protosw.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 3bc4e57841f..328d799acd2 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_usrreq.c,v 1.48 2010/07/02 00:11:39 deraadt Exp $ */
+/* $OpenBSD: uipc_usrreq.c,v 1.49 2010/10/18 04:31:01 guenther Exp $ */
/* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */
/*
@@ -288,6 +288,7 @@ uipc_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
nam->m_len = 0;
break;
+#ifdef COMPAT_O47
case PRU_PEEREID:
if (unp->unp_flags & UNP_FEIDS) {
nam->m_len = sizeof(struct sockpeercred);
@@ -296,6 +297,7 @@ uipc_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
} else
nam->m_len = 0;
break;
+#endif /* COMPAT_O47 */
case PRU_SLOWTIMO:
break;
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index 2209a676e47..40a362e79d9 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: protosw.h,v 1.13 2009/11/13 20:54:05 claudio Exp $ */
+/* $OpenBSD: protosw.h,v 1.14 2010/10/18 04:31:01 guenther Exp $ */
/* $NetBSD: protosw.h,v 1.10 1996/04/09 20:55:32 cgd Exp $ */
/*-
@@ -142,7 +142,9 @@ struct protosw {
#define PRU_SLOWTIMO 19 /* 500ms timeout */
#define PRU_PROTORCV 20 /* receive from below */
#define PRU_PROTOSEND 21 /* send to below */
+#ifdef COMPAT_O47
#define PRU_PEEREID 22 /* get local peer eid */
+#endif /* COMPAT_O47 */
#define PRU_NREQ 22