Deleted Added
full compact
uipc_domain.c (17047) uipc_domain.c (17096)
1/*
2 * Copyright (c) 1982, 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 * @(#)uipc_domain.c 8.2 (Berkeley) 10/18/93
1/*
2 * Copyright (c) 1982, 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 * @(#)uipc_domain.c 8.2 (Berkeley) 10/18/93
34 * $Id: uipc_domain.c,v 1.12 1995/12/16 02:13:50 bde Exp $
34 * $Id: uipc_domain.c,v 1.13 1996/07/09 19:12:51 wollman Exp $
35 */
36
37#include <sys/param.h>
38#include <sys/socket.h>
39#include <sys/protosw.h>
40#include <sys/domain.h>
41#include <sys/mbuf.h>
42#include <sys/kernel.h>

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

101*/
102
103 for (dp = domains; dp; dp = dp->dom_next) {
104 if (dp->dom_init)
105 (*dp->dom_init)();
106 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++){
107#ifdef PRU_OLDSTYLE
108 /* See comments in uipc_socket2.c. */
35 */
36
37#include <sys/param.h>
38#include <sys/socket.h>
39#include <sys/protosw.h>
40#include <sys/domain.h>
41#include <sys/mbuf.h>
42#include <sys/kernel.h>

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

101*/
102
103 for (dp = domains; dp; dp = dp->dom_next) {
104 if (dp->dom_init)
105 (*dp->dom_init)();
106 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++){
107#ifdef PRU_OLDSTYLE
108 /* See comments in uipc_socket2.c. */
109 if (pr->pr_usrreqs == 0)
109 if (pr->pr_usrreqs == 0 && pr->pr_ousrreq)
110 pr->pr_usrreqs = &pru_oldstyle;
110 pr->pr_usrreqs = &pru_oldstyle;
111 else if(pr->pr_usrreq == 0)
112 pr->pr_usrreq = pr_newstyle_usrreq;
113#endif
114 if (pr->pr_init)
115 (*pr->pr_init)();
116 }
117 }
118
119 if (max_linkhdr < 16) /* XXX */
120 max_linkhdr = 16;

--- 118 unchanged lines hidden ---
111#endif
112 if (pr->pr_init)
113 (*pr->pr_init)();
114 }
115 }
116
117 if (max_linkhdr < 16) /* XXX */
118 max_linkhdr = 16;

--- 118 unchanged lines hidden ---