date and time created 88/12/14 15:29:47 by sklower
[unix-history] / usr / src / sys / netiso / iso_pcb.h
/***********************************************************
Copyright IBM Corporation 1987
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of IBM not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/* $Header: iso_pcb.h,v 4.3 88/06/29 15:00:01 hagens Exp $ */
/* $Source: /usr/argo/sys/netiso/RCS/iso_pcb.h,v $ */
#define MAXX25CRUDLEN 16 /* 16 bytes of call request user data */
/*
* Common structure pcb for argo protocol implementation.
*/
struct isopcb {
struct isopcb *isop_next,*isop_prev; /* pointers to other pcb's */
struct isopcb *isop_head; /* pointer back to chain of pcbs for
this protocol */
struct socket *isop_socket; /* back pointer to socket */
struct sockaddr_iso isop_laddr;
#define isop_lport isop_laddr.siso_tsuffix
#define isop_lportlen isop_laddr.siso_tsuffixlen
struct sockaddr_iso isop_faddr;
#define isop_fport isop_faddr.siso_tsuffix
#define isop_fportlen isop_faddr.siso_tsuffixlen
struct route isop_route; /* CLNP routing entry */
struct mbuf *isop_options; /* CLNP options */
struct mbuf *isop_optindex; /* CLNP options index */
struct mbuf *isop_clnpcache; /* CLNP cached hdr */
u_int isop_chanmask; /* which ones used - max 32 supported */
u_int isop_negchanmask; /* which ones used - max 32 supported */
int isop_x25crud_len; /* x25 call request ud */
char isop_x25crud[MAXX25CRUDLEN];
struct ifnet *isop_ifp; /* ESIS interface assoc w/sock */
};
#define sotoisopcb(so) ((struct isopcb *)(so)->so_npcb)
#ifdef KERNEL
struct isopcb *iso_pcblookup();
#endif