/********************************************************************************************************************************/ /* Created: 18-NOV-1997 11:24:36 by OpenVMS SDL EV1-50 */ /* Source: 22-OCT-1996 00:33:26 DISK$UCX_BUILD2:[UCX.X42.BL21.SRC.NET]INET_USER */ /********************************************************************************************************************************/ /*** MODULE $$BEGIN ***/ #pragma __member_alignment __save #pragma __nomember_alignment #ifndef UCX$INETDEF_LOADED # define UCX$INETDEF_LOADED 1 #pragma __member_alignment __restore /*** MODULE $ARPREQDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define ARP$M_IN_USE 0x1 #define ARP$M_COM 0x2 #define ARP$M_PERM 0x4 #define ARP$M_PUBL 0x8 #define ARP$M_USETRAILERS 0x10 #define ARP$C_LENGTH 34 #define ARP$K_LENGTH 34 struct ARPREQDEF { char ARP$T_PA [16]; /* IP address */ /* $SOCKADDRINDEF defines offsets */ char ARP$T_HA [16]; /* Ethernet hardware address */ /* $SOCKADDRDEF defines offsets */ union { /* */ unsigned short int ARP$W_FLAGS; /* flags */ struct { /* */ unsigned ARP$V_IN_USE : 1; /* ARP entry is in use */ unsigned ARP$V_COM : 1; /* ARP entry is complete */ unsigned ARP$V_PERM : 1; /* ARP entry is pemanent */ unsigned ARP$V_PUBL : 1; /* ARP entry is public */ unsigned ARP$V_USETRAILERS : 1; /* hosts uses trailers */ unsigned ARP$V_FILL_0 : 3; } ARP$R_O_FLAGS; } ARP$R_OVLY; } ; #pragma __member_alignment __restore /*** MODULE $IFREQDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define IFR$M_IFF_UP 0x1 #define IFR$M_IFF_BROADCAST 0x2 #define IFR$M_IFF_DEBUG 0x4 #define IFR$M_IFF_LOOPBACK 0x8 #define IFR$M_IFF_POINTOPOINT 0x10 #define IFR$M_IFF_NOTRAILERS 0x20 #define IFR$M_IFF_RUNNING 0x40 #define IFR$M_IFF_NOARP 0x80 #define IFR$M_IFF_PROMISC 0x100 #define IFR$M_IFF_ALLMULTI 0x200 #define IFR$M_IFF_DYNPROTO 0x400 #define IFR$M_IFF_MOP 0x800 #define IFR$M_IFF_NONAME 0x4000 #define IFR$M_IFF_CLUSTER 0x8000 #define IFR$C_LENGTH 32 #define IFR$K_LENGTH 32 struct IFREQDEF { char IFR$T_NAME [16]; /* device name */ union { char IFR$T_ADDR [16]; /* SOCKADDRIN structure */ char IFR$T_DSTADDR [16]; /* SOCKADDRIN structure */ char IFR$T_BROADADDR [16]; /* SOCKADDRIN structure */ union { unsigned short int IFR$W_FLAGS; /* flags */ struct { unsigned IFR$V_IFF_UP : 1; /* Interface is up */ unsigned IFR$V_IFF_BROADCAST : 1; /* Broadcast address valid */ unsigned IFR$V_IFF_DEBUG : 1; /* Turn on tracing */ unsigned IFR$V_IFF_LOOPBACK : 1; /* Interface set to loopback */ unsigned IFR$V_IFF_POINTOPOINT : 1; /* Interface is point-to-point link */ unsigned IFR$V_IFF_NOTRAILERS : 1; /* Avoid use of trailers */ unsigned IFR$V_IFF_RUNNING : 1; /* Resources are allocated */ unsigned IFR$V_IFF_NOARP : 1; /* No address resolution protocol */ unsigned IFR$V_IFF_PROMISC : 1; /* Receive all packets */ unsigned IFR$V_IFF_ALLMULTI : 1; /* Receive all multicasting packets */ unsigned IFR$V_IFF_DYNPROTO : 1; /* Support dynamic proto dispatching */ unsigned IFR$V_IFF_MOP : 1; /* Device in MOP mode; not in use */ unsigned IFR$V_IFF_RESERVE : 2; /* SPARE bits */ unsigned IFR$V_IFF_NONAME : 1; /* Interface cluster name flag */ unsigned IFR$V_IFF_CLUSTER : 1; /* Interface is a cluster IFNET */ } IFR$R_DUMMY_1_BITS; } IFR$R_DUMMY_1_OVRL; int *IFR$L_DATA; /* pointer to data */ } IFR$R_DUMMY; } ; #pragma __member_alignment __restore /*** MODULE $INETERRDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define EPERM 1 /* Not owner */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /* No such process */ #define EINTR 4 /* Interrupted system call */ #define EIO 5 /* I/O error */ #define ENXIO 6 /* No such device or address */ #define E2BIG 7 /* Arg list too long */ #define ENOEXEC 8 /* Exec format error */ #define EBADF 9 /* Bad file number */ #define ECHILD 10 /* No children */ #define EAGAIN 11 /* No more processes */ #define ENOMEM 12 /* Not enough core */ #define EACCES 13 /* Permission denied */ #define EFAULT 14 /* Bad address */ #define ENOTBLK 15 /* Block device required */ #define EBUSY 16 /* Mount device busy */ #define EEXIST 17 /* File exists */ #define EXDEV 18 /* Cross-device link */ #define ENODEV 19 /* No such device */ #define ENOTDIR 20 /* Not a directory */ #define EISDIR 21 /* Is a directory */ #define EINVAL 22 /* Invalid argument */ #define ENFILE 23 /* File table overflow */ #define EMFILE 24 /* Too many open files */ #define ENOTTY 25 /* Not a typewriter */ #define ETXTBSY 26 /* Text file busy */ #define EFBIG 27 /* File too large */ #define ENOSPC 28 /* No space left on device */ #define ESPIPE 29 /* Illegal seek */ #define EROFS 30 /* Read-only file system */ #define EMLINK 31 /* Too many links */ #define EPIPE 32 /* Broken pipe */ /* math software */ #define EDOM 33 /* Argument too large */ #define ERANGE 34 /* Result too large */ /* non-blocking and interrupt i/o */ #define EWOULDBLOCK 35 /* Operation would block */ #define EINPROGRESS 36 /* Operation now in progress */ #define EALREADY 37 /* Operation already in progress */ /* ipc/network software */ /* argument errors */ #define ENOTSOCK 38 /* Socket operation on non-socket */ #define EDESTADDRREQ 39 /* Destination address required */ #define EMSGSIZE 40 /* Message too long */ #define EPROTOTYPE 41 /* Protocol wrong type for socket */ #define ENOPROTOOPT 42 /* Protocol not available */ #define EPROTONOSUPPORT 43 /* Protocol not supported */ #define ESOCKTNOSUPPORT 44 /* Socket type not supported */ #define EOPNOTSUPP 45 /* Operation not supported on socket */ #define EPFNOSUPPORT 46 /* Protocol family not supported */ #define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ #define EADDRINUSE 48 /* Address already in use */ #define EADDRNOTAVAIL 49 /* Can't assign requested address */ /* operational errors */ #define ENETDOWN 50 /* Network is down */ #define ENETUNREACH 51 /* Network is unreachable */ #define ENETRESET 52 /* Network dropped connection on reset */ #define ECONNABORTED 53 /* Software caused connection abort */ #define ECONNRESET 54 /* Connection reset by peer */ #define ENOBUFS 55 /* No buffer space available */ #define EISCONN 56 /* Socket is already connected */ #define ENOTCONN 57 /* Socket is not connected */ #define ESHUTDOWN 58 /* Can't send after socket shutdown */ #define ETOOMANYREFS 59 /* Too many references: can't splice */ #define ETIMEDOUT 60 /* Connection timed out */ #define ECONNREFUSED 61 /* Connection refused */ #define ELOOP 62 /* Too many levels of symbolic links */ #define ENAMETOOLONG 63 /* File name too long */ /* should be rearranged */ #define EHOSTDOWN 64 /* Host is down */ #define EHOSTUNREACH 65 /* No route to host */ /* quotas & mush */ #define EPROCLIM 67 /* Too many processes */ #define EUSERS 68 /* Too many users */ #define EDQUOT 69 /* Disc quota exceeded */ #pragma __member_alignment __restore /*** MODULE $INETSYMDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define DVI$_ACP_TCP 10 #define INET$C_ICMP 1 #define INET$C_IGMP 2 #define INET$C_RAW_IP 255 #define INET$C_TCP 6 #define INET$C_UDP 17 #define INET$C_AUXS 127 #define INET$C_REXEC 128 #define IPPROTO$C_ICMP 1 #define IPPROTO$C_IGMP 2 #define IPPROTO$C_RAW_IP 255 #define IPPROTO$C_TCP 6 #define IPPROTO$C_UDP 17 #define IPPROTO$C_AUXS 127 #define IPPROTO$C_REXEC 128 /* */ #define UCX$C_ICMP 1 #define UCX$C_IGMP 2 #define UCX$C_RAW_IP 255 #define UCX$C_TCP 6 #define UCX$C_UDP 17 #define UCX$C_AUXS 127 #define UCX$C_REXEC 128 /* */ /* Ports < IP_PROTO$C_RESERVED are reserved for */ /* privileged processes (e.g. root). */ /* */ #define IP_PROTO$C_RESERVED 1024 #define INET_PROTYP$C_STREAM 1 /* stream type */ #define INET_PROTYP$C_DGRAM 2 /* datagram type */ #define INET_PROTYP$C_RAW 3 /* raw type */ /* */ #define UCX$C_STREAM 1 #define UCX$C_DGRAM 2 #define UCX$C_RAW 3 #define INET$C_IPOPT 0 /* IP opt type parameter */ #define INET$C_SOCKOPT 1 /* setsockopt type parameter */ #define INET$C_IOCTL 2 /* ioctl type parameter */ #define INET$C_DATA 3 /* data */ #define INET$C_SOCK_NAME 4 /* socket name */ #define INET$C_RESERVE_1 5 #define INET$C_TCPOPT 6 /* TCP option type */ /* */ #define UCX$C_IPOPT 0 #define UCX$C_SOCKOPT 1 #define UCX$C_TCPOPT 6 #define UCX$C_IOCTL 2 #define UCX$C_DATA 3 #define UCX$C_SOCK_NAME 4 #define INET$C_DSC_RCV 0 /* discard received messages */ #define INET$C_DSC_SND 1 /* discard sent messages */ #define INET$C_DSC_ALL 2 /* discard all messages */ #define UCX$C_DSC_RCV 0 #define UCX$C_DSC_SND 1 #define UCX$C_DSC_ALL 2 #define UCX$C_SO_SNDBUF 4097 #define UCX$C_SO_RCVBUF 4098 #define UCX$C_SO_SNDLOWAT 4099 #define UCX$C_SO_RCVLOWAT 4100 #define UCX$C_SO_SNDTIMEO 4101 #define UCX$C_SO_RCVTIMEO 4102 #define UCX$C_SO_ERROR 4103 #define UCX$C_SO_TYPE 4104 #define UCX$C_SO_SHARE 4105 #define UCX$C_SO_CCL 4106 #define UCX$C_SO_NO_RCV_CHKSUM 16384 #define UCX$C_SO_NO_SND_CHKSUM 32768 #define UCX$C_SO_NO_CHKSUM 49152 /*;constant ( */ /*; DEBUGGING */ /*; ,ACCEPTCONN */ /*; ,REUSEADDR */ /*; ,KEEPALIVE */ /*; ,DONTROUTE */ /*; ,BROADCAST */ /*; ,USELOOPBACK */ /*; ,LINGER */ /*; ,OOBINLINE */ /*; ) equals 1 increment 1 prefix UCX$ tag C counter #types; */ #define INET$C_TCPOPT_EOL 0 #define INET$C_TCPOPT_NOP 1 #define INET$C_TCPOPT_MAXSEG 2 #define INET$C_TCP_NODELAY 1 /* don't delay send to coalesce packets */ #define INET$C_TCP_MAXSEG 2 /* set maximum segment size */ #define INET$C_TCP_PROBE_IDLE 128 /* probe idle timer */ #define INET$C_TCP_DROP_IDLE 129 /* drop idle timer */ #define UCX$C_TCPOPT_EOL 0 #define UCX$C_TCPOPT_NOP 1 #define UCX$C_TCPOPT_MAXSEG 2 #define UCX$C_TCP_NODELAY 1 #define UCX$C_TCP_MAXSEG 2 #define UCX$C_TCP_PROBE_IDLE 128 #define UCX$C_TCP_DROP_IDLE 129 #define INET$C_IP_TOS 3 #define INET$C_IP_TTL 4 #define INET$C_IP_MULTICAST_IF 16 /* set/get IP multicast interface */ #define INET$C_IP_MULTICAST_TTL 17 /* set/get IP multicast timetolive */ #define INET$C_IP_MULTICAST_LOOP 18 /* set/get IP multicast loopback */ #define INET$C_IP_ADD_MEMBERSHIP 19 /* add an IP group membership */ #define INET$C_IP_DROP_MEMBERSHIP 20 /* drop an IP group membership */ #define INET$C_IP_MULTICAST_VIF 21 /* set/get IP mcast vir. interface */ #define UCX$C_IP_TOS 3 #define UCX$C_IP_TTL 4 #define UCX$C_IP_MULTICAST_IF 16 /* set/get IP multicast interface */ #define UCX$C_IP_MULTICAST_TTL 17 /* set/get IP multicast timetolive */ #define UCX$C_IP_MULTICAST_LOOP 18 /* set/get IP multicast loopback */ #define UCX$C_IP_ADD_MEMBERSHIP 19 /* add an IP group membership */ #define UCX$C_IP_DROP_MEMBERSHIP 20 /* drop an IP group membership */ #define UCX$C_IP_MULTICAST_VIF 21 /* set/get IP mcast vir. interface */ #define INET$C_AF_UNSPEC 0 /* unspecified */ #define INET$C_AF_UNIX 1 /* local to host (pipes, portals) */ #define INET$C_AF_INET 2 /* internetwork: UDP, TCP, etc. */ #define INET$C_AF_MAX 3 /* maximum value */ #define INET$C_INADDR_ANY 0 #define INET$C_INADDR_BROADCAST -1 /* */ #define UCX$C_AF_UNSPEC 0 #define UCX$C_AF_UNIX 1 #define UCX$C_AF_INET 2 #define UCX$C_AF_MAX 3 #define UCX$C_INADDR_ANY 0 #define UCX$C_INADDR_BROADCAST -1 /* */ #define INET$M_MSG_OOB 0x1 #define INET$M_MSG_PEEK 0x2 #define INET$M_MSG_DONTROUTE 0x4 #define INET$M_DUMMYN_4 0x8 #define INET$M_DUMMYN_5 0x10 #define INET$M_MSG_PURGE 0x20 #define INET$M_MSG_NBIO 0x40 #define INET$M_MSG_BLOCKALL 0x80 struct MSGBITS { struct { /* */ unsigned INET$V_MSG_OOB : 1; /* turn on event logging, not used */ unsigned INET$V_MSG_PEEK : 1; /* socket has had LISTEN */ unsigned INET$V_MSG_DONTROUTE : 1; /* use only the interface addr */ /* */ unsigned INET$V_DUMMYN_4 : 1; /* reserve space */ /* */ unsigned INET$V_DUMMYN_5 : 1; /* reserve space */ /* */ unsigned INET$V_MSG_PURGE : 1; /* Purge I/O */ unsigned INET$V_MSG_NBIO : 1; /* NON-block I/O */ unsigned INET$V_MSG_BLOCKALL : 1; /* record TCP I/O */ } INET$R_MSG_BITS; } ; #define INET$C_MSG_OOB 1 /* process out-of-band data */ #define INET$C_MSG_PEEK 2 /* peek at incoming message */ #define INET$C_MSG_DONTROUTE 4 /* send without */ /* using routing tables */ #define INET$C_MSG_PURGE 32 /* block read until fill buffer */ #define INET$C_MSG_NBIO 64 /* block read until fill buffer */ #define INET$C_MSG_BLOCKALL 128 /* block read until fill buffer */ #define INET$C_MSG_MAXIOVLEN 16 /* */ #define UCX$C_MSG_OOB 1 /* process out-of-band data */ #define UCX$C_MSG_PEEK 2 /* peek at incoming message */ #define UCX$C_MSG_DONTROUTE 4 /* send without */ /* using routing tables */ #define UCX$C_MSG_PURGE 32 /* block read until fill buffer */ #define UCX$C_MSG_NBIO 64 /* block read until fill buffer */ #define UCX$C_MSG_BLOCKALL 128 /* block read until fill buffer */ #define UCX$C_MSG_MAXIOVLEN 16 #define UCX$M_MSG_OOB 0x1 #define UCX$M_MSG_PEEK 0x2 #define UCX$M_MSG_DONTROUTE 0x4 #define UCX$M_DUMMYX_4 0x8 #define UCX$M_DUMMYX_5 0x10 #define UCX$M_MSG_PURGE 0x20 #define UCX$M_MSG_NBIO 0x40 #define UCX$M_MSG_BLOCKALL 0x80 struct MSGBITS_1 { struct { /* */ unsigned UCX$V_MSG_OOB : 1; /* turn on event logging, not used */ unsigned UCX$V_MSG_PEEK : 1; /* socket has had LISTEN */ unsigned UCX$V_MSG_DONTROUTE : 1; /* use only the interface addr */ /* */ unsigned UCX$V_DUMMYX_4 : 1; /* reserve space */ /* */ unsigned UCX$V_DUMMYX_5 : 1; /* reserve space */ /* */ unsigned UCX$V_MSG_PURGE : 1; /* Purge I/O */ unsigned UCX$V_MSG_NBIO : 1; /* NON-block I/O */ unsigned UCX$V_MSG_BLOCKALL : 1; /* record TCP I/O */ } UCX$R_MSG_BITS; } ; #define UCX$M_DEBUGGING 0x1 #define UCX$M_ACCEPTCONN 0x2 #define UCX$M_REUSEADDR 0x4 #define UCX$M_KEEPALIVE 0x8 #define UCX$M_DONTROUTE 0x10 #define UCX$M_BROADCAST 0x20 #define UCX$M_USELOOPBACK 0x40 #define UCX$M_LINGER 0x80 #define UCX$M_OOBINLINE 0x100 #define UCX$M_DUMMYM_2 0x200 #define UCX$M_DUMMYM_3 0x400 #define UCX$M_DUMMYM_4 0x800 #define UCX$M_DUMMYM_5 0x1000 #define UCX$M_FULL_DUPLEX_CLOSE 0x2000 #define UCX$M_NO_RCV_CHKSUM 0x4000 #define UCX$M_NO_SND_CHKSUM 0x8000 #define UCX$C_DEBUG 1 /* turn on event logging, not used */ #define UCX$C_ACCEPTCONN 2 /* socket has had LISTEN */ #define UCX$C_REUSEADDR 4 /* allow local address reuse */ #define UCX$C_KEEPALIVE 8 /* keep connection alive */ #define UCX$C_DONTROUTE 16 /* use only the interface addr */ #define UCX$C_BROADCAST 32 /* allow broadcasting */ #define UCX$C_USELOOPBACK 64 /* loopback interface, not used */ #define UCX$C_LINGER 128 /* linger at close */ #define UCX$C_OOBINLINE 256 /* leave received OOB data in line */ #define UCX$C_FULL_DUPLEX_CLOSE 8192 /* full duplex close */ #define UCX$C_NO_RCV_CHKSUM 16384 /* no receive checksum calculation */ #define UCX$C_NO_SND_CHKSUM 32768 /* no send checksum calculation */ #define UCX$M_NO_CHKSUM 49152 /* no checksum calculation */ #define UCX$C_NO_CHKSUM 49152 /* no checksum calculation */ /* */ #define UCX$C_SNDBUF 4097 /* send buffer size */ #define UCX$C_RCVBUF 4098 /* receive buffer size */ #define UCX$C_SNDLOWAT 4099 /* send low-water mark */ #define UCX$C_RCVLOWAT 4100 /* receive low-water mark */ #define UCX$C_SNDTIMEO 4101 /* send timeout */ #define UCX$C_RCVTIMEO 4102 /* receive timeout */ #define UCX$C_ERROR 4103 /* get error status and clear */ #define UCX$C_TYPE 4104 /* get socket type */ #define UCX$C_SHARE 4105 /* shared between processes */ #define UCX$C_CCL 4106 /* carriage control added */ /* */ #define UCX$M_SNDBUF 4097 /* send buffer size */ #define UCX$M_RCVBUF 4098 /* receive buffer size */ #define UCX$M_SNDLOWAT 4099 /* send low-water mark */ #define UCX$M_RCVLOWAT 4100 /* receive low-water mark */ #define UCX$M_SNDTIMEO 4101 /* send timeout */ #define UCX$M_RCVTIMEO 4102 /* receive timeout */ #define UCX$M_ERROR 4103 /* get error status and clear */ #define UCX$M_TYPE 4104 /* get socket type */ #define UCX$M_SHARE 4105 /* shared between processes */ #define UCX$M_CCL 4106 /* carriage control added */ struct SOCKOPTDEF { union { /* */ unsigned short int UCX$W_OPTIONS; /* Socket options, see socket.h */ struct { /* */ /* Socket options bits. */ /* */ unsigned UCX$V_DEBUGGING : 1; /* turn on event logging, not used */ unsigned UCX$V_ACCEPTCONN : 1; /* socket has had LISTEN */ unsigned UCX$V_REUSEADDR : 1; /* allow local address reuse */ unsigned UCX$V_KEEPALIVE : 1; /* keep connection alive */ unsigned UCX$V_DONTROUTE : 1; /* use only the interface addr */ unsigned UCX$V_BROADCAST : 1; /* allow broadcasting */ unsigned UCX$V_USELOOPBACK : 1; /* loopback interface, not used */ unsigned UCX$V_LINGER : 1; /* linger at close */ unsigned UCX$V_OOBINLINE : 1; /* leave received OOB data in line */ /* */ /* */ unsigned UCX$V_DUMMYM_2 : 1; /* reserve space */ unsigned UCX$V_DUMMYM_3 : 1; /* reserve space */ unsigned UCX$V_DUMMYM_4 : 1; /* reserve space */ unsigned UCX$V_DUMMYM_5 : 1; /* reserve space */ /* */ unsigned UCX$V_FULL_DUPLEX_CLOSE : 1; /* full duplex close */ unsigned UCX$V_NO_RCV_CHKSUM : 1; /* no receive checksum calculation */ unsigned UCX$V_NO_SND_CHKSUM : 1; /* no send checksum calculation */ /* */ /* Additional options, not kept in so_options. */ /* */ } UCX$R_OPT_BITS; } UCX$R_OPT_OVRLY; } ; #pragma __member_alignment __restore /*** MODULE $OPTDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define OPT$L_ADDRESS 4 #define OPT$C_SET_LENGTH 8 #define OPT$K_SET_LENGTH 8 #define OPT$C_GET_LENGTH 12 #define OPT$K_GET_LENGTH 12 struct OPTDEF { unsigned short int OPT$W_LENGTH; /* length */ unsigned short int OPT$W_NAME; /* name */ int *OPT$L_ADDR; /* address */ int *OPT$L_RET_LENGTH; /* address */ } ; #pragma __member_alignment __restore /*** MODULE $RTENTRYDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment /* */ /* We distinguish between routes to hosts and routes to networks, */ /* preferring the former if available. For each route we infer */ /* the interface to use from the gateway address supplied when */ /* the route was entered. Routes that forward packets through */ /* gateways are marked so that the output routines know to address the */ /* gateway rather than the ultimate destination. */ /* */ #define RT$M_RTF_UP 0x1 #define RT$M_RTF_GATEWAY 0x2 #define RT$M_RTF_HOST 0x4 #define RT$M_RTF_DYNAMIC 0x8 #define RT$M_RTF_MODIFIED 0x10 #define RT$C_LENGTH 52 #define RT$K_LENGTH 52 struct RTENTRYDEF { unsigned int RT$L_HASH; /* Hash link */ union { struct { unsigned short int RT$W_DST_SIN_FAMILY; /* Address type */ unsigned short int RT$W_DST_SIN_PORT; /* Port number */ unsigned int RT$L_DST_SIN_ADDR; /* Internet address */ char RT$T_DST_SIN_ZERO [8]; /* Unused space */ } RT$R_DST_FIELDS; char RT$T_DST [16]; /* Destination SOCKADDR structure */ } RT$R_DST_OVRLY; union { struct { unsigned short int RT$W_GATEWAY_SIN_FAMILY; /* Address type */ unsigned short int RT$W_GATEWAY_SIN_PORT; /* Port number */ unsigned int RT$L_GATEWAY_SIN_ADDR; /* Internet address */ char RT$T_GATEWAY_SIN_ZERO [8]; /* Unused space */ } RT$R_GATEWAY_FIELDS; char RT$T_GATEWAY [16]; /* Gateway SOCKADDR structure */ } RT$R_GATEWAY_OVRLY; union { unsigned short int RT$W_FLAGS; /* up/down?, host/net */ struct { unsigned RT$V_RTF_UP : 1; /* route useable */ unsigned RT$V_RTF_GATEWAY : 1; /* destination is a gateway */ unsigned RT$V_RTF_HOST : 1; /* host entry (net otherwise) */ unsigned RT$V_RTF_DYNAMIC : 1; /* created dynamically (by redirect) */ unsigned RT$V_RTF_MODIFIED : 1; /* changed by redirect */ unsigned RT$V_FILL_1 : 3; } RT$R_FLAGS_BITS; } RT$R_FLAGS_OVRLY; unsigned short int RT$W_REFCNT; /* # held references */ unsigned int RT$L_USE; /* raw # packets forwarded */ unsigned int RT$L_IFP; /* pointer to the IFNET interface to use */ unsigned int RT$L_NEXT; /* pointer to the next RTENTRY */ } ; #pragma __member_alignment __restore /*** MODULE $SIOCDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define FIONREAD -2147195265 /* Get # bytes to read */ #define FIONBIO -2147195266 /* non block I/O */ #define FIOASYNC -2147195267 /* asynch I/O */ #define SIOCSHIWAT -2147192064 /* high water mark */ #define SIOCGHIWAT 1074033409 /* high water mark */ #define SIOCSLOWAT -2147192062 /* low water mark */ #define SIOCGLOWAT 1074033411 /* low water mark */ #define SIOCATMARK 1074033415 /* at OOB mark */ #define SIOCSPGRP -2147192056 /* Process group */ #define SIOCGPGRP 1074033417 /* Process group */ #define SIOCADDRT -2144046582 /* add RT */ #define SIOCDELRT -2144046581 /* delete RT */ #define SIOCGETRT -1070304725 /* get RT */ #define SIOCSIFADDR -2145359604 /* set IF address */ #define SIOCGIFADDR -1071617779 /* Get IF address */ #define SIOCSIFDSTADDR -2145359602 /* Destination addr */ #define SIOCGIFDSTADDR -1071617777 /* BDestination addr */ #define SIOCSIFFLAGS -2145359600 /* IF flags */ #define SIOCGIFFLAGS -1071617775 /* IF flags */ #define SIOCGIFBRDADDR -1071617774 /* Broadcast addr */ #define SIOCSIFBRDADDR -2145359597 /* Broadcats addr */ #define SIOCGIFCONF -1073190636 /* IF configuration */ #define SIOCGIFNETMASK -1071617771 /* Network mask */ #define SIOCSIFNETMASK -2145359594 /* Network mask */ #define SIOCSARP -2145097442 /* set ARP */ #define SIOCGARP -1071355617 /* get ARP */ #define SIOCDARP -2145097440 /* delete ARP */ #define SIOCARPREQ -1071355608 /* ARP request */ #define SIOCENABLBACK -2145359583 /* enable loopback */ #define SIOCDISABLBACK -2145359582 /* disable loopback */ #define SIOCSTATE -1072273117 /* state */ #pragma __member_alignment __restore /*** MODULE $SOCKETOPTDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment /* */ /* Socket options data structure. */ /* */ #define SOCKOPT$M_DEBUG 0x1 #define SOCKOPT$M_ACCEPTCONN 0x2 #define SOCKOPT$M_REUSEADDR 0x4 #define SOCKOPT$M_KEEPALIVE 0x8 #define SOCKOPT$M_DONTROUTE 0x10 #define SOCKOPT$M_BROADCAST 0x20 #define SOCKOPT$M_USELOOPBACK 0x40 #define SOCKOPT$M_LINGER 0x80 #define SOCKOPT$M_OOBINLINE 0x100 #define SOCKOPT$M_DUMMYB_2 0x200 #define SOCKOPT$M_DUMMYB_3 0x400 #define SOCKOPT$M_DUMMYB_4 0x800 #define SOCKOPT$M_DUMMYB_5 0x1000 #define SOCKOPT$M_FULL_DUPLEX_CLOSE 0x2000 #define SOCKOPT$M_NO_RCV_CHKSUM 0x4000 #define SOCKOPT$M_NO_SND_CHKSUM 0x8000 #define SOCKOPT$M_NO_CHKSUM 49152 /* no checksum calculation */ #define SOCKOPT$C_NO_CHKSUM 49152 /* no checksum calculation */ /* */ #define SOCKOPT$C_SNDBUF 4097 /* send buffer size */ #define SOCKOPT$C_RCVBUF 4098 /* receive buffer size */ #define SOCKOPT$C_SNDLOWAT 4099 /* send low-water mark */ #define SOCKOPT$C_RCVLOWAT 4100 /* receive low-water mark */ #define SOCKOPT$C_SNDTIMEO 4101 /* send timeout */ #define SOCKOPT$C_RCVTIMEO 4102 /* receive timeout */ #define SOCKOPT$C_ERROR 4103 /* get error status and clear */ #define SOCKOPT$C_TYPE 4104 /* get socket type */ #define SOCKOPT$C_SHARE 4105 /* shared between processes */ #define SOCKOPT$C_CCL 4106 /* carriage control added */ #define SOCKOPT$M_SNDBUF 4097 /* send buffer size */ #define SOCKOPT$M_RCVBUF 4098 /* receive buffer size */ #define SOCKOPT$M_SNDLOWAT 4099 /* send low-water mark */ #define SOCKOPT$M_RCVLOWAT 4100 /* receive low-water mark */ #define SOCKOPT$M_SNDTIMEO 4101 /* send timeout */ #define SOCKOPT$M_RCVTIMEO 4102 /* receive timeout */ #define SOCKOPT$M_ERROR 4103 /* get error status and clear */ #define SOCKOPT$M_TYPE 4104 /* get socket type */ #define SOCKOPT$M_SHARE 4105 /* shared between processes */ #define SOCKOPT$M_CCL 4106 /* carriage control added */ #define SOCKOPT$C_DEBUG 1 /* turn on event logging, not used */ #define SOCKOPT$C_ACCEPTCONN 2 /* socket has had LISTEN */ #define SOCKOPT$C_REUSEADDR 4 /* allow local address reuse */ #define SOCKOPT$C_KEEPALIVE 8 /* keep connection alive */ #define SOCKOPT$C_DONTROUTE 16 /* use only the interface addr */ #define SOCKOPT$C_BROADCAST 32 /* allow broadcasting */ #define SOCKOPT$C_USELOOPBACK 64 /* loopback interface, not used */ #define SOCKOPT$C_LINGER 128 /* linger at close */ #define SOCKOPT$C_OOBINLINE 256 /* leave received OOB data in line */ #define SOCKOPT$C_FULL_DUPLEX_CLOSE 8192 /* full duplex close */ #define SOCKOPT$C_NO_RCV_CHKSUM 16384 /* no receive checksum calculation */ #define SOCKOPT$C_NO_SND_CHKSUM 32768 /* no send checksum calculation */ #define SOCKOPT$C_LENGTH 2 #define SOCKOPT$K_LENGTH 2 struct SOCKETOPTDEF { union { /* */ unsigned short int SOCKOPT$W_OPTIONS; /* Socket options, see socket.h */ struct { /* */ /* Socket options bits. */ /* */ unsigned SOCKOPT$V_DEBUG : 1; /* turn on event logging, not used */ unsigned SOCKOPT$V_ACCEPTCONN : 1; /* socket has had LISTEN */ unsigned SOCKOPT$V_REUSEADDR : 1; /* allow local address reuse */ unsigned SOCKOPT$V_KEEPALIVE : 1; /* keep connection alive */ unsigned SOCKOPT$V_DONTROUTE : 1; /* use only the interface addr */ unsigned SOCKOPT$V_BROADCAST : 1; /* allow broadcasting */ unsigned SOCKOPT$V_USELOOPBACK : 1; /* loopback interface, not used */ unsigned SOCKOPT$V_LINGER : 1; /* linger at close */ unsigned SOCKOPT$V_OOBINLINE : 1; /* leave received OOB data in line */ /* */ /* */ unsigned SOCKOPT$V_DUMMYB_2 : 1; /* reserve space */ unsigned SOCKOPT$V_DUMMYB_3 : 1; /* reserve space */ unsigned SOCKOPT$V_DUMMYB_4 : 1; /* reserve space */ unsigned SOCKOPT$V_DUMMYB_5 : 1; /* reserve space */ /* */ unsigned SOCKOPT$V_FULL_DUPLEX_CLOSE : 1; /* full duplex close */ unsigned SOCKOPT$V_NO_RCV_CHKSUM : 1; /* no receive checksum calculation */ unsigned SOCKOPT$V_NO_SND_CHKSUM : 1; /* no send checksum calculation */ /* Additional options, not kept in so_options. */ /* */ } SOCKOPT$R_OPT_BITS; } SOCKOPT$R_OPT_OVRLY; } ; #pragma __member_alignment __restore /*** MODULE $INETSOCKOPTDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment /* */ /* Socket options data structure. */ /* */ #define INET$M_DEBUG 0x1 #define INET$M_ACCEPTCONN 0x2 #define INET$M_REUSEADDR 0x4 #define INET$M_KEEPALIVE 0x8 #define INET$M_DONTROUTE 0x10 #define INET$M_BROADCAST 0x20 #define INET$M_USELOOPBACK 0x40 #define INET$M_LINGER 0x80 #define INET$M_OOBINLINE 0x100 #define INET$M_DUMMYB_2 0x200 #define INET$M_DUMMYB_3 0x400 #define INET$M_DUMMYB_4 0x800 #define INET$M_DUMMYB_5 0x1000 #define INET$M_FULL_DUPLEX_CLOSE 0x2000 #define INET$M_NO_RCV_CHKSUM 0x4000 #define INET$M_NO_SND_CHKSUM 0x8000 #define INET$M_NO_CHKSUM 49152 /* no checksum calculation */ #define INET$C_NO_CHKSUM 49152 /* no checksum calculation */ /* */ #define INET$C_SNDBUF 4097 /* send buffer size */ #define INET$C_RCVBUF 4098 /* receive buffer size */ #define INET$C_SNDLOWAT 4099 /* send low-water mark */ #define INET$C_RCVLOWAT 4100 /* receive low-water mark */ #define INET$C_SNDTIMEO 4101 /* send timeout */ #define INET$C_RCVTIMEO 4102 /* receive timeout */ #define INET$C_ERROR 4103 /* get error status and clear */ #define INET$C_TYPE 4104 /* get socket type */ #define INET$C_SHARE 4105 /* Share */ #define INET$C_CCL 4106 /* carriage control added */ /* */ #define INET$M_SNDBUF 4097 /* send buffer size */ #define INET$M_RCVBUF 4098 /* receive buffer size */ #define INET$M_SNDLOWAT 4099 /* send low-water mark */ #define INET$M_RCVLOWAT 4100 /* receive low-water mark */ #define INET$M_SNDTIMEO 4101 /* send timeout */ #define INET$M_RCVTIMEO 4102 /* receive timeout */ #define INET$M_ERROR 4103 /* get error status and clear */ #define INET$M_TYPE 4104 /* get socket type */ #define INET$M_SHARE 4105 /* Share */ #define INET$M_CCL 4106 /* carriage control added */ #define INET$C_DEBUG 1 /* turn on event logging, not used */ #define INET$C_ACCEPTCONN 2 /* socket has had LISTEN */ #define INET$C_REUSEADDR 4 /* allow local address reuse */ #define INET$C_KEEPALIVE 8 /* keep connection alive */ #define INET$C_DONTROUTE 16 /* use only the interface addr */ #define INET$C_BROADCAST 32 /* allow broadcasting */ #define INET$C_USELOOPBACK 64 /* loopback interface, not used */ #define INET$C_LINGER 128 /* linger at close */ #define INET$C_OOBINLINE 256 /* leave received OOB data in line */ #define INET$C_FULL_DUPLEX_CLOSE 8192 /* full duplex close */ #define INET$C_NO_RCV_CHKSUM 16384 /* no receive checksum calculation */ #define INET$C_NO_SND_CHKSUM 32768 /* no send checksum calculation */ #define INET$C_LENGTH 2 #define INET$K_LENGTH 2 struct INETSOCKOPTDEF { union { /* */ unsigned short int INET$W_OPTIONS; /* Socket options, see socket.h */ struct { /* */ /* Socket options bits. */ /* */ unsigned INET$V_DEBUG : 1; /* turn on event logging, not used */ unsigned INET$V_ACCEPTCONN : 1; /* socket has had LISTEN */ unsigned INET$V_REUSEADDR : 1; /* allow local address reuse */ unsigned INET$V_KEEPALIVE : 1; /* keep connection alive */ unsigned INET$V_DONTROUTE : 1; /* use only the interface addr */ unsigned INET$V_BROADCAST : 1; /* allow broadcasting */ unsigned INET$V_USELOOPBACK : 1; /* loopback interface, not used */ unsigned INET$V_LINGER : 1; /* linger at close */ unsigned INET$V_OOBINLINE : 1; /* leave received OOB data in line */ /* */ /* */ unsigned INET$V_DUMMYB_2 : 1; /* reserve space */ unsigned INET$V_DUMMYB_3 : 1; /* reserve space */ unsigned INET$V_DUMMYB_4 : 1; /* reserve space */ unsigned INET$V_DUMMYB_5 : 1; /* reserve space */ /* */ unsigned INET$V_FULL_DUPLEX_CLOSE : 1; /* full duplex close */ unsigned INET$V_NO_RCV_CHKSUM : 1; /* no receive checksum calculation */ unsigned INET$V_NO_SND_CHKSUM : 1; /* no send checksum calculation */ /* Additional options, not kept in so_options. */ /* */ } INET$R_OPT_BITS; } INET$R_OPT_OVRLY; } ; #pragma __member_alignment __restore /*** MODULE $SOCKADDRDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define AF_UNSPEC 0 /* unspecified socket family */ #define AF_INET 2 /* INET socket family */ #define SA$C_LENGTH 16 #define SA$K_LENGTH 16 struct SOCKADDR { unsigned short int SA$W_FAMILY; /* address family */ char SA$T_DATA [14]; /* up to 14 bytes of address */ } ; #pragma __member_alignment __restore /*** MODULE $SOCKADDRINDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define SIN$C_LENGTH 16 #define SIN$K_LENGTH 16 struct SOCKADDRIN { unsigned short int SIN$W_FAMILY; /* address family */ unsigned short int SIN$W_PORT; /* 2 bytes specifying a port */ unsigned int SIN$L_ADDR; /* 4 bytes specifying an IP address */ char SIN$T_ZERO [8]; /* 8 bytes */ } ; #pragma __member_alignment __restore /*** MODULE $INETACPSYMDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment /*+ */ /* Define ACP HOST/NET data base subroutine calls subfunction codes */ /* */ /*- */ #define INETACP$C_ALIASES 1 /* aliases */ #define INETACP$C_TRANS 2 /* translate ASCII string in binary */ #define INETACP$C_HOSTENT 3 /* get back a HOSTENT */ #define INETACP$C_NETENT 4 /* get back a NETENT */ #define INETACP$C_HOSTENT_OFFSET 5 /* get back a HOSTENT */ #define INETACP$C_NETENT_OFFSET 6 /* get back a NETENT */ #define INETACPC$C_ALIASES 1 /* aliases */ #define INETACPC$C_TRANS 2 /* translate ASCII string in binary */ #define INETACPC$C_HOSTENT 3 /* get back a HOSTENT */ #define INETACPC$C_NETENT 4 /* get back a NETENT */ #define INETACPC$C_HOSTENT_OFFSET 5 /* get back a HOSTENT */ #define INETACPC$C_NETENT_OFFSET 6 /* get back a NETENT */ #pragma __member_alignment __restore /*** MODULE $INETACPFSYMDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment /*+ */ /* Define ACP control subfunction codes */ /* */ /*- */ #define INETACP_FUNC$C_GETHOSTBYNAME 1 /* Subroutine call of GET_HOST_BY_NAME */ #define INETACP_FUNC$C_GETHOSTBYADDR 2 /* Subroutine call of GET_HOST_BY_ADDR */ #define INETACP_FUNC$C_GETNETBYNAME 3 /* Subroutine call of GET_NET_BY_NAME */ #define INETACP_FUNC$C_GETNETBYADDR 4 /* Subroutine call of GET_NET_BY_ADDR */ /* */ #pragma __member_alignment __restore /*** MODULE $NETENTDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define NET$C_LENGTH 16 /* */ #define NET$K_LENGTH 16 /* */ struct NETENTDEF { int *NET$L_N_NAME; /* pointer to the network name */ int *NET$L_N_ALIASES; /* pointer to array of pointers to aliases */ unsigned int NET$L_N_ADDRTYPE; /* Network address type */ unsigned int NET$L_N_NET; /* Network address */ } ; /* */ /* Structures returned by network */ /* data base library. All addresses */ /* are supplied in host order, and */ /* returned in network order (suitable */ /* for use in system calls). */ /* */ #pragma __member_alignment __restore /*** MODULE $HOSTENTDEF ***/ #pragma __member_alignment __save #pragma __nomember_alignment #define HOST$L_H_ADDR 16 /* */ #define HOST$C_LENGTH 20 /* */ #define HOST$K_LENGTH 20 /* */ struct HOSTENTDEF { int *HOST$L_H_NAME; /* pointer to the host name */ int *HOST$L_H_ALIASES; /* pointer to array of pointers to aliases */ unsigned int HOST$L_H_ADDRTYPE; /* Host address type */ unsigned int HOST$L_H_LENGTH; /* Length of address */ int *HOST$L_H_ADDR_LIST; /* Pointer to array of pointers to addresses */ } ; #pragma __member_alignment __restore /*** MODULE $$END ***/ #pragma __member_alignment __save #pragma __nomember_alignment #endif /* UCX$INETDEF_LOADED */ #pragma __member_alignment __restore