|
|
1.1 ! root 1: /* x25.h - X.25 abstractions */ ! 2: ! 3: /* ! 4: * $Header: /f/osi/h/RCS/x25.h,v 7.1 89/12/07 01:08:00 mrose Exp $ ! 5: * ! 6: * Contributed by John Pavel, Department of Trade and Industry/National ! 7: * Physical Laboratory in the UK ! 8: * ! 9: * ! 10: * $Log: x25.h,v $ ! 11: * Revision 7.1 89/12/07 01:08:00 mrose ! 12: * queued writes ! 13: * ! 14: * Revision 7.0 89/11/23 21:56:10 mrose ! 15: * Release 6.0 ! 16: * ! 17: */ ! 18: ! 19: /* ! 20: * NOTICE ! 21: * ! 22: * Acquisition, use, and distribution of this module and related ! 23: * materials are subject to the restrictions of a license agreement. ! 24: * Consult the Preface in the User's Manual for the full terms of ! 25: * this agreement. ! 26: * ! 27: */ ! 28: ! 29: ! 30: #ifndef _X25_ ! 31: #define _X25_ ! 32: ! 33: /* ! 34: * ! 35: * #defines for generic addressing & TSEL encoded addresses. ! 36: * ! 37: */ ! 38: ! 39: #ifdef SUN_X25 ! 40: #include <sys/ioctl.h> ! 41: #include <sys/param.h> ! 42: #include <sys/mbuf.h> ! 43: #include <sundev/syncstat.h> ! 44: #include <netx25/x25_pk.h> ! 45: #include <netx25/x25_ctl.h> ! 46: #include <netx25/x25_ioctl.h> ! 47: #endif ! 48: ! 49: #ifndef _INTERNET_ ! 50: #include <sys/socket.h> ! 51: #endif ! 52: ! 53: #include <sys/protosw.h> ! 54: #include <sys/domain.h> ! 55: #include <sys/socketvar.h> ! 56: #include <sys/errno.h> ! 57: #include <net/if.h> ! 58: ! 59: #ifdef CAMTEC ! 60: #include <cci.h> ! 61: typedef struct ccontrolp CONN_DB; ! 62: #undef NTPUV ! 63: #define NTPUV 2 /* CAMTEC allows only 2 iov's per read/write */ ! 64: #endif ! 65: ! 66: #ifdef CAMTEC_CCL ! 67: #include <sys/ioctl.h> ! 68: #include <sys/param.h> ! 69: #include <sys/types.h> ! 70: #include <sys/uio.h> ! 71: #include <netccl/ccl.h> ! 72: ! 73: typedef struct ccliovec CONN_DB; ! 74: #endif ! 75: ! 76: ! 77: #ifdef UBC_X25 ! 78: #include <netccitt/x25_sockaddr.h> ! 79: ! 80: #define X25_PACKETSIZE 128 ! 81: ! 82: typedef struct x25_sockaddr CONN_DB; ! 83: #endif ! 84: ! 85: /* */ ! 86: ! 87: #ifdef SUN_X25 ! 88: #define close_x25_socket close ! 89: #define select_x25_socket selsocket ! 90: #define read_x25_socket read ! 91: #define write_x25_socket write ! 92: #endif ! 93: ! 94: #if defined(UBC_X25) || defined(CAMTEC_CCL) ! 95: #define close_x25_socket close ! 96: #define select_x25_socket selsocket ! 97: #define RECV_DIAG 0 ! 98: #define DIAG_TYPE 1 ! 99: #define WAIT_CONFIRMATION 2 ! 100: #endif ! 101: ! 102: int start_x25_client (); ! 103: int start_x25_server (); ! 104: int join_x25_client (); ! 105: int join_x25_server (); ! 106: int read_x25_socket (); ! 107: int write_x25_socket (); ! 108: int close_x25_socket (); ! 109: int select_x25_socket (); ! 110: ! 111: struct NSAPaddr *if2gen(); ! 112: CONN_DB *gen2if(); ! 113: ! 114: ! 115: #define ADDR_LOCAL 0 ! 116: #define ADDR_REMOTE 1 ! 117: #define ADDR_LISTEN 2 ! 118: #define SEPARATOR ':' ! 119: ! 120: ! 121: #define MAXNSDU 2048 /* must be equal to largest TP0 TPDU */ ! 122: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.