From 57bf258e3dc9e77a996e738e6bf3e894943970e2 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Sat, 16 Aug 1997 19:16:27 +0000 Subject: Fix all areas of the system (or at least all those in LINT) to avoid storing socket addresses in mbufs. (Socket buffers are the one exception.) A number of kernel APIs needed to get fixed in order to make this happen. Also, fix three protocol families which kept PCBs in mbufs to not malloc them instead. Delete some old compatibility cruft while we're at it, and add some new routines in the in_cksum family. --- sys/kern/sys_socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/kern/sys_socket.c') diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index 8e9e90e983b1..e0394b726b22 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)sys_socket.c 8.1 (Berkeley) 6/10/93 - * $Id: sys_socket.c,v 1.13 1997/04/27 20:00:42 wollman Exp $ + * $Id: sys_socket.c,v 1.14 1997/08/02 14:31:36 bde Exp $ */ #include @@ -75,7 +75,8 @@ soo_write(fp, uio, cred) struct ucred *cred; { struct socket *so = (struct socket *)fp->f_data; - return so->so_proto->pr_usrreqs->pru_sosend(so, 0, uio, 0, 0, 0); + return so->so_proto->pr_usrreqs->pru_sosend(so, 0, uio, 0, 0, 0, + uio->uio_procp); } int -- cgit v1.2.3