ipx_pcb.h (12057) | ipx_pcb.h (12470) |
---|---|
1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ipx_pcb.h 35 * | 1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ipx_pcb.h 35 * |
36 * $Id: ipx_pcb.h,v 1.3 1995/10/31 23:36:35 julian Exp $ | 36 * $Id: ipx_pcb.h,v 1.4 1995/11/04 09:03:16 julian Exp $ |
37 */ 38 39#ifndef _NETIPX_IPX_PCB_H_ | 37 */ 38 39#ifndef _NETIPX_IPX_PCB_H_ |
40#define _NETIPX_IPX_PCB_H_ | 40#define _NETIPX_IPX_PCB_H_ |
41 42/* 43 * IPX protocol interface control block. 44 */ 45struct ipxpcb { 46 struct ipxpcb *ipxp_next; /* doubly linked list */ 47 struct ipxpcb *ipxp_prev; 48 struct ipxpcb *ipxp_head; --- 24 unchanged lines hidden (view full) --- 73#define sotoipxpcb(so) ((struct ipxpcb *)((so)->so_pcb)) 74 75/* 76 * Nominal space allocated to a IPX socket. 77 */ 78#define IPXSNDQ 2048 79#define IPXRCVQ 2048 80 | 41 42/* 43 * IPX protocol interface control block. 44 */ 45struct ipxpcb { 46 struct ipxpcb *ipxp_next; /* doubly linked list */ 47 struct ipxpcb *ipxp_prev; 48 struct ipxpcb *ipxp_head; --- 24 unchanged lines hidden (view full) --- 73#define sotoipxpcb(so) ((struct ipxpcb *)((so)->so_pcb)) 74 75/* 76 * Nominal space allocated to a IPX socket. 77 */ 78#define IPXSNDQ 2048 79#define IPXRCVQ 2048 80 |
81 | |
82#ifdef KERNEL | 81#ifdef KERNEL |
83 | |
84extern struct ipxpcb ipxpcb; /* head of list */ 85 | 82extern struct ipxpcb ipxpcb; /* head of list */ 83 |
86#include <sys/cdefs.h> 87 88__BEGIN_DECLS 89int ipx_pcballoc __P((struct socket *so, struct ipxpcb *head)); 90int ipx_pcbbind __P((struct ipxpcb *ipxp, struct mbuf *nam)); 91int ipx_pcbconnect __P((struct ipxpcb *ipxp, struct mbuf *nam)); 92void ipx_pcbdisconnect __P((struct ipxpcb *ipxp)); 93void ipx_pcbdetach __P((struct ipxpcb *ipxp)); 94void ipx_setsockaddr __P((struct ipxpcb *ipxp, struct mbuf *nam)); 95void ipx_setpeeraddr __P((struct ipxpcb *ipxp, struct mbuf *nam)); 96void ipx_pcbnotify __P((struct ipx_addr *dst, int errno, void (*notify)(struct ipxpcb *), long param)); 97struct ipxpcb *ipx_pcblookup __P((struct ipx_addr *faddr, int lport, int wildp)); 98__END_DECLS 99 | 84int ipx_pcballoc __P((struct socket *so, struct ipxpcb *head)); 85int ipx_pcbbind __P((struct ipxpcb *ipxp, struct mbuf *nam)); 86int ipx_pcbconnect __P((struct ipxpcb *ipxp, struct mbuf *nam)); 87void ipx_pcbdetach __P((struct ipxpcb *ipxp)); 88void ipx_pcbdisconnect __P((struct ipxpcb *ipxp)); 89struct ipxpcb * 90 ipx_pcblookup __P((struct ipx_addr *faddr, int lport, int wildp)); 91void ipx_pcbnotify __P((struct ipx_addr *dst, int errno, 92 void (*notify)(struct ipxpcb *), long param)); 93void ipx_setpeeraddr __P((struct ipxpcb *ipxp, struct mbuf *nam)); 94void ipx_setsockaddr __P((struct ipxpcb *ipxp, struct mbuf *nam)); |
100#endif 101 | 95#endif 96 |
102#endif | 97#endif /* !_NETIPX_IPX_PCB_H_ */ |