raw_cb.c (8876) | raw_cb.c (9759) |
---|---|
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_cb.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_cb.c 8.1 (Berkeley) 6/10/93 |
34 * $Id: raw_cb.c,v 1.3 1994/10/08 22:38:24 phk Exp $ | 34 * $Id: raw_cb.c,v 1.4 1995/05/30 08:08:21 rgrimes Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/mbuf.h> 40#include <sys/socket.h> 41#include <sys/socketvar.h> 42#include <sys/domain.h> --- 9 unchanged lines hidden (view full) --- 52 * Routines to manage the raw protocol control blocks. 53 * 54 * TODO: 55 * hash lookups by protocol family/protocol + address family 56 * take care of unique address problems per AF? 57 * redo address binding to allow wildcards 58 */ 59 | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/mbuf.h> 40#include <sys/socket.h> 41#include <sys/socketvar.h> 42#include <sys/domain.h> --- 9 unchanged lines hidden (view full) --- 52 * Routines to manage the raw protocol control blocks. 53 * 54 * TODO: 55 * hash lookups by protocol family/protocol + address family 56 * take care of unique address problems per AF? 57 * redo address binding to allow wildcards 58 */ 59 |
60struct rawcb rawcb; |
|
60u_long raw_sendspace = RAWSNDQ; 61u_long raw_recvspace = RAWRCVQ; 62 63/* 64 * Allocate a control block and a nominal amount 65 * of buffer space for the socket. 66 */ 67int --- 79 unchanged lines hidden --- | 61u_long raw_sendspace = RAWSNDQ; 62u_long raw_recvspace = RAWRCVQ; 63 64/* 65 * Allocate a control block and a nominal amount 66 * of buffer space for the socket. 67 */ 68int --- 79 unchanged lines hidden --- |