diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2022-08-21 22:45:56 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2022-08-21 22:45:56 +0000 |
commit | f2f1a1357702fdad4d23bb795036421495e31e7b (patch) | |
tree | d94ad501cb672ab363fe81f73e87c620808f7de8 /sys/kern | |
parent | 910af8d7d1b297879157181092707924c3ffd342 (diff) |
Move PRU_CONNECT request to (*pru_connect)() handler.
ok bluhm@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 4e19579e513..5669d522772 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_usrreq.c,v 1.170 2022/08/21 17:30:21 mvs Exp $ */ +/* $OpenBSD: uipc_usrreq.c,v 1.171 2022/08/21 22:45:55 mvs Exp $ */ /* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */ /* @@ -132,6 +132,7 @@ const struct pr_usrreqs uipc_usrreqs = { .pru_detach = uipc_detach, .pru_bind = uipc_bind, .pru_listen = uipc_listen, + .pru_connect = uipc_connect, }; void @@ -224,10 +225,6 @@ uipc_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, switch (req) { - case PRU_CONNECT: - error = unp_connect(so, nam, p); - break; - case PRU_CONNECT2: error = unp_connect2(so, (struct socket *)nam); if (!error) { @@ -549,6 +546,12 @@ uipc_listen(struct socket *so) } int +uipc_connect(struct socket *so, struct mbuf *nam) +{ + return unp_connect(so, nam, curproc); +} + +int uipc_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen) { |