2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
10 struct netopen
/* Format of open request */
12 long no_lskt
; /* Local socket */
13 long no_fskt
; /* Foreign socket */
14 short no_flags
; /* Flag bits */
15 short no_rel
; /* Local socket relative to this file */
16 short no_imp
; /* Imp number */
17 char no_host
; /* Host within Imp */
18 char no_net
; /* Network number (!) */
19 char no_bsize
; /* Byte size */
22 struct netopen
/* Format of open request */
24 long no_lskt
; /* Local socket */
25 long no_fskt
; /* Foreign socket */
26 short no_flags
; /* Flag bits */
27 short no_rel
; /* Local socket relative to this file */
28 short no_imp
; /* Imp number */
29 char no_host
; /* Host within Imp */
30 char no_net
; /* Network number (!) */
31 char no_bsize
; /* Byte size */
35 #define NO_ABS 01 /* Absolute local socket number for a connect */
36 #define NO_REL 02 /* Relative to another file */
38 #define NIMPS 20 /* number of imp devices */
39 #define MAX_IMPS 10 /* number of imp devices, starting from imp1 */
41 #define HOSTTBL "/etc/nethosts"
60 /* ioctl commands for imp device*/
61 #define IMPCONCT (('I'<<8)|NET_CNCT) /* Connect */
62 #define IMPLISTN (('I'<<8)|NET_LSN ) /* Listen */
63 #define IMPSICP (('I'<<8)|NET_SICP) /* Server ICP */
64 #define IMPUICP (('I'<<8)|NET_UICP) /* User ICP */
65 #define IMPRST (('I'<<8)|NET_RST ) /* Reset */
66 #define IMPSTRT (('I'<<8)|NET_STRT) /* Start NCP */
67 #define IMPLOG (('I'<<8)|NET_LOG ) /* Set log flags */
68 #define IMPRSTAT (('I'<<8)|NET_RSTAT) /* Read socket status */
69 #define IMPWSTAT (('I'<<8)|NET_WSTAT) /* Write socket status */
70 #define IMPRDST (('I'<<8)|100 ) /* Get read status */
71 #define IMPWRTST (('I'<<8)|101 ) /* Get write status */
73 /* Structure for IMPSTAT ioctl */