/**/ /***************************************************************************/ /** **/ /** © Copyright 2010, Hewlett-Packard Development Company, L.P. **/ /** **/ /** Confidential computer software. Valid license from HP and/or **/ /** its subsidiaries required for possession, use, or copying. **/ /** **/ /** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, **/ /** Computer Software Documentation, and Technical Data for Commercial **/ /** Items are licensed to the U.S. Government under vendor's standard **/ /** commercial license. **/ /** **/ /** Neither HP nor any of its subsidiaries shall be liable for technical **/ /** or editorial errors or omissions contained herein. The information **/ /** in this document is provided "as is" without warranty of any kind and **/ /** is subject to change without notice. The warranties for HP products **/ /** are set forth in the express limited warranty statements accompanying **/ /** such products. Nothing herein should be construed as constituting an **/ /** additional warranty. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:25:53 by OpenVMS SDL EV3-3 */ /* Source: 23-JUL-2003 15:57:49 $1$DGA7274:[LIB_H.SRC]LANUDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $LANUDEF ***/ #ifndef __LANUDEF_LOADED #define __LANUDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /* LANUDEF Version Identification */ #define LAN$C_LANUDEF_VER 34 /* This constant represents the largest data link header for all formats and */ /* for all mediums. Token Ring has the largest header (for the mediums) and */ /* 802E has the largest header (for the formats). This includes any device */ /* specific needs (for example the 3 additional bytes required by most of */ /* the FDDI devices). */ /* */ /* 03 bytes for device specific FDDI stuff */ /* 01 byte for FC */ /* 12 bytes for DA/SA */ /* 08 bytes for DSAP/SSAP/CTL/PID */ /* 32 bytes for Source Routing header */ /* 02 bytes for a length field */ #define LAN$C_MAX_HDR_SIZE 58 /* This constant is used (after swapping the protocol type bytes) to validate */ /* a protocol type. */ #define LAN$C_PTY_MIN 1501 /* Protocol Types */ #define LAN$C_PTY_DUMP_LOAD 352 /* S-DNA Dump/Load (MOP) */ #define LAN$C_PTY_RMTCN 608 /* S-DNA Remote Console (MOP) */ #define LAN$C_PTY_ROUTE 864 /* S-DNA Routing */ #define LAN$C_PTY_LAT 1120 /* S-Local Area Transport (LAT) */ #define LAN$C_PTY_DIAG 1376 /* S-Diagnostics */ #define LAN$C_PTY_CUST 1632 /* S-Customer Use */ #define LAN$C_PTY_SCA 1888 /* S-System Communication Architecture (SCA) */ #define LAN$C_PTY_LOOPB 144 /* S-Loopback Assist protocol type */ #define LAN$C_PTY_IP 8 /* S-IP */ #define LAN$C_PTY_ARP 1544 /* S-ARP */ #define LAN$C_PTY_RARP 13696 /* S-RARP */ #define LAN$C_PTY_BRIDGE 14464 /* S-BRIDGE */ #define LAN$C_PTY_ELN 15232 /* S-VAX ELN */ #define LAN$C_PTY_DNAME 15488 /* S-DNA Name Service */ #define LAN$C_PTY_ENCRY 15744 /* S-Encryption */ #define LAN$C_PTY_DTIME 16000 /* S-DNA Time Service */ #define LAN$C_PTY_LTM 16256 /* S-LTM */ #define LAN$C_PTY_BIOS 16512 /* S-BIOS */ #define LAN$C_PTY_LAST 16768 /* S-Local Area Storage (LAST) */ #define LAN$C_PTY_AMDS 18560 /* S-AMDS (Captain) */ #define LAN$C_PTY_DNV 254 /* S-DECnet Phase V (Link state routing) */ /* PID Values */ #define LAN$C_PID_RMTCN0 8 /* DNA Remote Console (802 MOP) byte <0> */ #define LAN$C_PID_RMTCN1 39856896 /* DNA Remote Console (802 MOP) bytes <4:1> */ #define LAN$C_PID_LOOPB0 8 /* Loopback (802) byte <0> */ #define LAN$C_PID_LOOPB1 9448192 /* Loopback (802) bytes <4:1> */ /* DIGITAL multicast address assignments */ #define LAN$C_MCA_L_MOP 16777387 /* DNA Dump/Load Assistance (MOP) */ #define LAN$C_MCA_W_MOP 0 /* DNA Dump/Load Assistance (MOP) */ #define LAN$C_MCA_L_RMTCN 33554603 /* DNA Remote Console (MOP) */ #define LAN$C_MCA_W_RMTCN 0 /* DNA Remote Console (MOP) */ #define LAN$C_MCA_L_ROUTERS 50331819 /* DNA Routing Routers */ #define LAN$C_MCA_W_ROUTERS 0 /* DNA Routing Routers */ #define LAN$C_MCA_L_ENDNODE 67109035 /* DNA Routing End nodes */ #define LAN$C_MCA_W_ENDNODE 0 /* DNA Routing End nodes */ #define LAN$C_MCA_L_LAT 196779 /* Local Area Transport (LAT) */ #define LAN$C_MCA_W_LAT 0 /* Local Area Transport (LAT) */ #define LAN$C_MCA_L_CUST 262315 /* Customer Use */ /*CONSTANT MCA_W_CUST EQUALS %X0000-%XFFFF TAG C PREFIX LAN$; */ #define LAN$C_MCA_L_SCA 17039531 /* System Communication Architecture (SCA) */ /*CONSTANT MCA_W_SCA EQUALS %X0000-%XFFFF TAG C PREFIX LAN$; */ /* Cross-company address assignments */ #define LAN$C_CCA_L_BROADCAST -1 /* Broadcast */ #define LAN$C_CCA_W_BROADCAST 65535 /* Broadcast */ #define LAN$C_CCA_L_LOOPBACKA 207 /* Loopback Assistance */ #define LAN$C_CCA_W_LOOPBACKA 0 /* Loopback Assistance */ /* DNA SNAP SAP assignments */ #define LAN$C_NULL_SAP 0 /* The NULL SAP */ #define LAN$C_LLC_MGT_FNC_SAP 2 /* LLC SUBLAYER MANAGEMENT FUNCTION SAP */ #define LAN$C_LLC_MGT_SAP 3 /* LLC SUBLAYER MANAGEMENT SAP */ #define LAN$C_SNAP_SAP 170 /* The SNAP SAP */ /* DNA DSAP assignments */ #define LAN$C_GLOBAL_DSAP 255 /* GLOBAL DSAP */ /* DNA GROUP SAP assignments */ #define LAN$C_MAX_NO_GSAP 4 /* Maximum number of group SAPs per user */ /* LAN frame constants */ #define LAN$C_CRC 4 /* Size of Ethernet CRC */ #define LAN$C_ADDR_SIZE 6 /* Maximum size of NI address */ #define LAN$C_LEN_SIZE 2 /* Size of the length field */ /* LAN frame constants (medium independent maximums) */ #define LAN$C_HDRSIZE_ETH 21 /* Maximum of Ethernet Packet without padding */ #define LAN$C_HDRSIZE_PAD 23 /* Maximum of Ethernet Packet with padding */ #define LAN$C_HDRSIZE_CLI 17 /* Maximum of 802 Packet */ #define LAN$C_HDRSIZE_USR 18 /* Maximum of 802 Packet */ #define LAN$C_HDRSIZE_802E 22 /* Maximum of 802E Packet */ /* ATM frame constants */ #define ATM$C_MAX_PKTSIZE 9234 /* Maximum of ATM Packet */ #define ATM$C_MAX_PKTSIZE_ETH 9234 /* Maximum of ATM Packet */ #define ATM$C_MAX_PKTSIZE_PAD 9234 /* Maximum of ATM Packet */ #define ATM$C_MAX_PKTSIZE_CLI 9234 /* Maximum of ATM Packet */ #define ATM$C_MAX_PKTSIZE_USR 9234 /* Maximum of ATM Packet */ #define ATM$C_MAX_PKTSIZE_802E 9234 /* Maximum of ATM Packet */ #define ATM$C_MAX_PKTSIZE_HWA 9264 /* Maximum hardware Packet including header and CRC */ #define ATM$C_MIN_PKTSIZE 0 /* Minimum of ATM Packet */ #define ATM$C_HDRSIZE_ETH 14 /* Maximum of ATM Header */ #define ATM$C_HDRSIZE_PAD 16 /* Maximum of ATM Header */ #define ATM$C_HDRSIZE_CLI 17 /* Maximum of ATM Header */ #define ATM$C_HDRSIZE_USR 18 /* Maximum of ATM Header */ #define ATM$C_HDRSIZE_802E 22 /* Maximum of ATM Header */ #define ATM$C_SPEED 155 /* Nominal default line speed */ /* CSMACD frame constants */ #define CSMACD$C_MAX_PKTSIZE 1500 /* Maximum of Ethernet Packet without padding */ #define CSMACD$C_MAX_PKTSIZE_ETH 1500 /* Maximum of Ethernet Packet without padding */ #define CSMACD$C_MAX_PKTSIZE_PAD 1498 /* Maximum of Ethernet Packet with padding */ #define CSMACD$C_MAX_PKTSIZE_CLI 1497 /* Maximum of 802 Packet */ #define CSMACD$C_MAX_PKTSIZE_USR 1496 /* Maximum of 802 Packet */ #define CSMACD$C_MAX_PKTSIZE_802E 1492 /* Maximum of 802E Packet */ #define CSMACD$C_MAX_PKTSIZE_HWA 1518 /* Maximum hardware Packet including header and CRC */ #define CSMACD$C_MIN_PKTSIZE 46 /* Minimum of Ethernet Packet */ #define CSMACD$C_MAX802_PKTSIZ 1497 /* Maximum of 802 Packet */ #define CSMACD$C_MAX802E_PKTSIZ 1492 /* Maximum of 802E Packet */ #define CSMACD$C_MAXETH_PKTSIZ 1500 /* Maximum of Ethernet Packet without padding */ #define CSMACD$C_MAXETHPAD_PKTSIZ 1498 /* Maximum of Ethernet Packet with padding */ #define CSMACD$C_HDRSIZE_ETH 14 /* Maximum of Ethernet Header without padding */ #define CSMACD$C_HDRSIZE_PAD 16 /* Maximum of Ethernet Header with padding */ #define CSMACD$C_HDRSIZE_CLI 17 /* Maximum of 802 Header */ #define CSMACD$C_HDRSIZE_USR 18 /* Maximum of 802 Header */ #define CSMACD$C_HDRSIZE_802E 22 /* Maximum of 802E Header */ #define CSMACD$C_SPEED 10 /* Nominal default line speed */ /* FDDI frame constants */ #define FDDI$C_MAX_PKTSIZE 4470 /* Maximum of Ethernet Packet without padding */ #define FDDI$C_MAX_PKTSIZE_PAD 4468 /* Maximum of Ethernet Packet with padding */ #define FDDI$C_MAX_PKTSIZE_CLI 4475 /* Maximum of 802 Packet */ #define FDDI$C_MAX_PKTSIZE_USR 4474 /* Maximum of 802 Packet */ #define FDDI$C_MAX_PKTSIZE_802E 4470 /* Maximum of 802E Packet */ #define FDDI$C_MAX_PKTSIZE_ETH 4470 /* Maximum of Mapped Ethernet Packet */ #define FDDI$C_MAX_PKTSIZE_HWA 4495 /* Maximum hardware Packet including header and CRC */ #define FDDI$C_MIN_PKTSIZE 0 /* Minimum of Ethernet Packet */ #define FDDI$C_MAX802_PKTSIZ 4475 /* Maximum of 802 Packet */ #define FDDI$C_MAX802E_PKTSIZ 4470 /* Maximum of 802E Packet */ #define FDDI$C_MAXMPETH_PKTSIZ 4470 /* Maximum of Mapped Ethernet Packet */ #define FDDI$C_MAXMPETHPAD_PKTSIZ 4468 /* Maximum of Mapped Ethernet Packet with pad field */ #define FDDI$C_HDRSIZE_ETH 21 /* Maximum of Ethernet Header without padding */ #define FDDI$C_HDRSIZE_PAD 23 /* Maximum of Ethernet Header with padding */ #define FDDI$C_HDRSIZE_CLI 16 /* Maximum of 802 Header */ #define FDDI$C_HDRSIZE_USR 17 /* Maximum of 802 Header */ #define FDDI$C_HDRSIZE_802E 21 /* Maximum of 802E Header */ #define FDDI$C_SPEED 100 /* Nominal default line speed */ /* TOKEN RING frame constants */ #define TR$C_MAX_PKTSIZE 4436 /* Maximum of TR Packet without padding */ #define TR$C_MAX_PKTSIZE_PAD 4434 /* Maximum of TR Packet with padding */ #define TR$C_MAX_PKTSIZE_CLI 4441 /* Maximum of 802 Packet */ #define TR$C_MAX_PKTSIZE_USR 4440 /* Maximum of 802 Packet */ #define TR$C_MAX_PKTSIZE_802E 4436 /* Maximum of 802E Packet */ #define TR$C_MAX_PKTSIZE_ETH 4436 /* Maximum of Mapped Ethernet Packet */ #define TR$C_MAX_PKTSIZE_HWA 4462 /* Maximum hardware Packet including header and CRC */ #define TR$C_MIN_PKTSIZE 0 /* Minimum of Ethernet Packet */ #define TR$C_MAX802_PKTSIZ 4441 /* Maximum of 802 Packet */ #define TR$C_MAX802E_PKTSIZ 4436 /* Maximum of 802E Packet */ #define TR$C_MAXMPETH_PKTSIZ 4436 /* Maximum of Mapped Ethernet Packet */ #define TR$C_MAXMPETHPAD_PKTSIZ 4434 /* Maximum of Mapped Ethernet Packet with pad field */ #define TR$C_HDRSIZE_ETH 52 /* Maximum of Ethernet Header without padding */ #define TR$C_HDRSIZE_PAD 54 /* Maximum of Ethernet Header with padding */ #define TR$C_HDRSIZE_CLI 47 /* Maximum of 802 Header */ #define TR$C_HDRSIZE_USR 48 /* Maximum of 802 Header */ #define TR$C_HDRSIZE_802E 52 /* Maximum of 802E Header */ #define TR$C_SPEED 16 /* Nominal default line speed */ /* LAN Item List definitions */ #define DLL$K_DL_ENTITY 1 /* Create Input */ #define DLL$K_CLIENT 2 /* Create Input */ #define DLL$K_DL_TEMPLATE 3 /* Create Input */ #define DLL$K_LAN_DEVICE 4 /* Create Input */ #define DLL$K_PORT_ENTITY 5 /* Create Output */ #define DLL$K_MINIMUM_BUFFER_SIZE 6 /* Enable Input */ #define DLL$K_PREFERRED_BUFFER_SIZE 7 /* Enable Input */ #define DLL$K_PROTOCOLID 8 /* Enable Input */ #define DLL$K_DECUSERDATA 9 /* Enable Input */ #define DLL$K_PROFILE 10 /* Enable Output */ #define DLL$K_ACTUAL_BUFFER_SIZE 11 /* Enable Output */ /*++ */ /* This structure represents a LAN module entity. There will be one used to */ /* represent CSMA/CD; even if there are multiple CSMA/CD stations. There will */ /* also be one used to represent FDDI. */ /* */ /* These are the common fields of the LAN module entity. */ /*-- */ #define LAN$K_FIXED_LENGTH 24 /* Length of LAN block */ #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif typedef struct _lanudef { /* This is version 1 of the LAN structure. Use #1 (no symbol) for the */ /* version field. */ #pragma __nomember_alignment unsigned int lan$l_version; /* S-Version of LAN database */ unsigned int lan$l_reserved1; /* Reserved */ void *lan$a_get_device; /* Address of LAN$GET_DEVICE */ unsigned int lan$l_reserved2; /* Reserved */ void *lan$a_create_port; /* Address of LAN$CREATE_PORT */ void *lan$a_delete_port; /* Address of LAN$DELETE_PORT */ } LANUDEF; #ifdef __LANUDEF_LOADED /* True if generated via SDL/VMS_DEV */ #ifndef __LDCDEF_LOADED #include #endif /* #ifndef __LDCDEF_LOADED */ #ifndef __LILDEF_LOADED #include #endif /* #ifndef __LILDEF_LOADED */ #ifndef __VCIBDLLDEF_LOADED #include #endif /* #ifndef __VCIBDLLDEF_LOADED */ #ifndef __VCRPLANDEF_LOADED #include #endif /* #ifndef __VCRPLANDEF_LOADED */ #ifndef __PROTODEF_LOADED #include #endif /* #ifndef __PROTODEF_LOADED */ #endif /* #ifdef __LANUDEF_LOADED */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __LANUDEF_LOADED */