raw_usrreq.c (83366) | raw_usrreq.c (86487) |
---|---|
1/* 2 * Copyright (c) 1980, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)raw_usrreq.c 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1980, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)raw_usrreq.c 8.1 (Berkeley) 6/10/93 |
34 * $FreeBSD: head/sys/net/raw_usrreq.c 83366 2001-09-12 08:38:13Z julian $ | 34 * $FreeBSD: head/sys/net/raw_usrreq.c 86487 2001-11-17 03:07:11Z dillon $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/mbuf.h> 40#include <sys/protosw.h> 41#include <sys/socket.h> 42#include <sys/socketvar.h> --- 94 unchanged lines hidden (view full) --- 137static int 138raw_uabort(struct socket *so) 139{ 140 struct rawcb *rp = sotorawcb(so); 141 142 if (rp == 0) 143 return EINVAL; 144 raw_disconnect(rp); | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/mbuf.h> 40#include <sys/protosw.h> 41#include <sys/socket.h> 42#include <sys/socketvar.h> --- 94 unchanged lines hidden (view full) --- 137static int 138raw_uabort(struct socket *so) 139{ 140 struct rawcb *rp = sotorawcb(so); 141 142 if (rp == 0) 143 return EINVAL; 144 raw_disconnect(rp); |
145 sofree(so); 146 soisdisconnected(so); | 145 sotryfree(so); 146 soisdisconnected(so); /* XXX huh? called after the sofree()? */ |
147 return 0; 148} 149 150/* pru_accept is EOPNOTSUPP */ 151 152static int 153raw_uattach(struct socket *so, int proto, struct thread *td) 154{ --- 145 unchanged lines hidden --- | 147 return 0; 148} 149 150/* pru_accept is EOPNOTSUPP */ 151 152static int 153raw_uattach(struct socket *so, int proto, struct thread *td) 154{ --- 145 unchanged lines hidden --- |