spx_reass.c (122875) | spx_reass.c (126425) |
---|---|
1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)spx_usrreq.h 35 */ 36 37#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)spx_usrreq.h 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/netipx/spx_usrreq.c 122875 2003-11-18 00:39:07Z rwatson $"); | 38__FBSDID("$FreeBSD: head/sys/netipx/spx_usrreq.c 126425 2004-03-01 03:14:23Z rwatson $"); |
39 40#include <sys/param.h> 41#include <sys/lock.h> 42#include <sys/malloc.h> 43#include <sys/mbuf.h> 44#include <sys/mutex.h> 45#include <sys/proc.h> 46#include <sys/protosw.h> --- 1250 unchanged lines hidden (view full) --- 1297 struct sockaddr_ipx *sipx, ssipx; 1298 1299 ipxp = sotoipxpcb(so); 1300 sipx = &ssipx; 1301 bzero(sipx, sizeof *sipx); 1302 sipx->sipx_len = sizeof *sipx; 1303 sipx->sipx_family = AF_IPX; 1304 sipx->sipx_addr = ipxp->ipxp_faddr; | 39 40#include <sys/param.h> 41#include <sys/lock.h> 42#include <sys/malloc.h> 43#include <sys/mbuf.h> 44#include <sys/mutex.h> 45#include <sys/proc.h> 46#include <sys/protosw.h> --- 1250 unchanged lines hidden (view full) --- 1297 struct sockaddr_ipx *sipx, ssipx; 1298 1299 ipxp = sotoipxpcb(so); 1300 sipx = &ssipx; 1301 bzero(sipx, sizeof *sipx); 1302 sipx->sipx_len = sizeof *sipx; 1303 sipx->sipx_family = AF_IPX; 1304 sipx->sipx_addr = ipxp->ipxp_faddr; |
1305 *nam = dup_sockaddr((struct sockaddr *)sipx, 0); | 1305 *nam = sodupsockaddr((struct sockaddr *)sipx, M_NOWAIT); |
1306 return (0); 1307} 1308 1309static int 1310spx_attach(so, proto, td) 1311 struct socket *so; 1312 int proto; 1313 struct thread *td; --- 593 unchanged lines hidden --- | 1306 return (0); 1307} 1308 1309static int 1310spx_attach(so, proto, td) 1311 struct socket *so; 1312 int proto; 1313 struct thread *td; --- 593 unchanged lines hidden --- |