Deleted Added
full compact
ipx_usrreq.c (157370) ipx_usrreq.c (157672)
1/*-
2 * Copyright (c) 1984, 1985, 1986, 1987, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 1995, Mike Mitchell
5 * Copyright (c) 2004-2006 Robert N. M. Watson
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 23 unchanged lines hidden (view full) ---

32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)ipx_usrreq.c
37 */
38
39#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1984, 1985, 1986, 1987, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 1995, Mike Mitchell
5 * Copyright (c) 2004-2006 Robert N. M. Watson
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 23 unchanged lines hidden (view full) ---

32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)ipx_usrreq.c
37 */
38
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sys/netipx/ipx_usrreq.c 157370 2006-04-01 15:42:02Z rwatson $");
40__FBSDID("$FreeBSD: head/sys/netipx/ipx_usrreq.c 157672 2006-04-11 23:15:47Z cognet $");
41
42#include "opt_ipx.h"
43
44#include <sys/param.h>
45#include <sys/kernel.h>
46#include <sys/lock.h>
47#include <sys/mbuf.h>
48#include <sys/protosw.h>

--- 395 unchanged lines hidden (view full) ---

444}
445
446static int
447ipx_attach(so, proto, td)
448 struct socket *so;
449 int proto;
450 struct thread *td;
451{
41
42#include "opt_ipx.h"
43
44#include <sys/param.h>
45#include <sys/kernel.h>
46#include <sys/lock.h>
47#include <sys/mbuf.h>
48#include <sys/protosw.h>

--- 395 unchanged lines hidden (view full) ---

444}
445
446static int
447ipx_attach(so, proto, td)
448 struct socket *so;
449 int proto;
450 struct thread *td;
451{
452#ifdef INVARIANTS
452 struct ipxpcb *ipxp = sotoipxpcb(so);
453 struct ipxpcb *ipxp = sotoipxpcb(so);
454#endif
453 int error;
454
455 KASSERT(ipxp == NULL, ("ipx_attach: ipxp != NULL"));
456 error = soreserve(so, ipxsendspace, ipxrecvspace);
457 if (error != 0)
458 return (error);
459 IPX_LIST_LOCK();
460 error = ipx_pcballoc(so, &ipxpcb_list, td);

--- 212 unchanged lines hidden ---
455 int error;
456
457 KASSERT(ipxp == NULL, ("ipx_attach: ipxp != NULL"));
458 error = soreserve(so, ipxsendspace, ipxrecvspace);
459 if (error != 0)
460 return (error);
461 IPX_LIST_LOCK();
462 error = ipx_pcballoc(so, &ipxpcb_list, td);

--- 212 unchanged lines hidden ---