raw_cb.h (9759) | raw_cb.h (12881) |
---|---|
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.h 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.h 8.1 (Berkeley) 6/10/93 |
34 * $Id: raw_cb.h,v 1.3 1994/08/21 05:11:46 paul Exp $ | 34 * $Id: raw_cb.h,v 1.4 1995/07/29 11:41:00 bde Exp $ |
35 */ 36 37#ifndef _NET_RAW_CB_H_ 38#define _NET_RAW_CB_H_ 39 40/* 41 * Raw protocol interface control block. Used 42 * to tie a socket to the generic raw interface. --- 14 unchanged lines hidden (view full) --- 57 */ 58#define RAWSNDQ 8192 59#define RAWRCVQ 8192 60 61#ifdef KERNEL 62extern struct rawcb rawcb; /* head of list */ 63 64int raw_attach __P((struct socket *, int)); | 35 */ 36 37#ifndef _NET_RAW_CB_H_ 38#define _NET_RAW_CB_H_ 39 40/* 41 * Raw protocol interface control block. Used 42 * to tie a socket to the generic raw interface. --- 14 unchanged lines hidden (view full) --- 57 */ 58#define RAWSNDQ 8192 59#define RAWRCVQ 8192 60 61#ifdef KERNEL 62extern struct rawcb rawcb; /* head of list */ 63 64int raw_attach __P((struct socket *, int)); |
65void raw_ctlinput __P((int, struct sockaddr *)); | 65void raw_ctlinput __P((int, struct sockaddr *, void *)); |
66void raw_detach __P((struct rawcb *)); 67void raw_disconnect __P((struct rawcb *)); 68void raw_init __P((void)); 69void raw_input __P((struct mbuf *, 70 struct sockproto *, struct sockaddr *, struct sockaddr *)); 71int raw_usrreq __P((struct socket *, 72 int, struct mbuf *, struct mbuf *, struct mbuf *)); 73#endif 74 75#endif | 66void raw_detach __P((struct rawcb *)); 67void raw_disconnect __P((struct rawcb *)); 68void raw_init __P((void)); 69void raw_input __P((struct mbuf *, 70 struct sockproto *, struct sockaddr *, struct sockaddr *)); 71int raw_usrreq __P((struct socket *, 72 int, struct mbuf *, struct mbuf *, struct mbuf *)); 73#endif 74 75#endif |