uipc_domain.c (247667) | uipc_domain.c (275329) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)uipc_domain.c 8.2 (Berkeley) 10/18/93 30 */ 31 32#include <sys/cdefs.h> | 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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)uipc_domain.c 8.2 (Berkeley) 10/18/93 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/kern/uipc_domain.c 247667 2013-03-02 21:11:30Z pjd $"); | 33__FBSDID("$FreeBSD: head/sys/kern/uipc_domain.c 275329 2014-11-30 13:24:21Z glebius $"); |
34 35#include <sys/param.h> 36#include <sys/socket.h> 37#include <sys/protosw.h> 38#include <sys/domain.h> 39#include <sys/eventhandler.h> 40#include <sys/mbuf.h> 41#include <sys/kernel.h> --- 105 unchanged lines hidden (view full) --- 147 DEFAULT(pu->pru_rcvd, pru_rcvd_notsupp); 148 DEFAULT(pu->pru_rcvoob, pru_rcvoob_notsupp); 149 DEFAULT(pu->pru_sense, pru_sense_null); 150 DEFAULT(pu->pru_shutdown, pru_shutdown_notsupp); 151 DEFAULT(pu->pru_sockaddr, pru_sockaddr_notsupp); 152 DEFAULT(pu->pru_sosend, sosend_generic); 153 DEFAULT(pu->pru_soreceive, soreceive_generic); 154 DEFAULT(pu->pru_sopoll, sopoll_generic); | 34 35#include <sys/param.h> 36#include <sys/socket.h> 37#include <sys/protosw.h> 38#include <sys/domain.h> 39#include <sys/eventhandler.h> 40#include <sys/mbuf.h> 41#include <sys/kernel.h> --- 105 unchanged lines hidden (view full) --- 147 DEFAULT(pu->pru_rcvd, pru_rcvd_notsupp); 148 DEFAULT(pu->pru_rcvoob, pru_rcvoob_notsupp); 149 DEFAULT(pu->pru_sense, pru_sense_null); 150 DEFAULT(pu->pru_shutdown, pru_shutdown_notsupp); 151 DEFAULT(pu->pru_sockaddr, pru_sockaddr_notsupp); 152 DEFAULT(pu->pru_sosend, sosend_generic); 153 DEFAULT(pu->pru_soreceive, soreceive_generic); 154 DEFAULT(pu->pru_sopoll, sopoll_generic); |
155 DEFAULT(pu->pru_ready, pru_ready_notsupp); |
|
155#undef DEFAULT 156 if (pr->pr_init) 157 (*pr->pr_init)(); 158} 159 160/* 161 * Add a new protocol domain to the list of supported domains 162 * Note: you cant unload it again because a socket may be using it. --- 361 unchanged lines hidden --- | 156#undef DEFAULT 157 if (pr->pr_init) 158 (*pr->pr_init)(); 159} 160 161/* 162 * Add a new protocol domain to the list of supported domains 163 * Note: you cant unload it again because a socket may be using it. --- 361 unchanged lines hidden --- |