Annotation of ntddk/src/network/tdi/stconst.h, revision 1.1

1.1     ! root        1: /*++
        !             2: 
        !             3: Copyright (c) 1989-1993  Microsoft Corporation
        !             4: 
        !             5: Module Name:
        !             6: 
        !             7:     stconst.h
        !             8: 
        !             9: Abstract:
        !            10: 
        !            11:     This header file defines manifest constants for the NT Sample transport
        !            12:     provider.  It is included by st.h.
        !            13: 
        !            14: Revision History:
        !            15: 
        !            16: --*/
        !            17: 
        !            18: #ifndef _STCONST_
        !            19: #define _STCONST_
        !            20: 
        !            21: 
        !            22: //
        !            23: // some convenient constants used for timing. All values are in clock ticks.
        !            24: //
        !            25: 
        !            26: #define MICROSECONDS 10
        !            27: #define MILLISECONDS 10000              // MICROSECONDS*1000
        !            28: #define SECONDS 10000000                // MILLISECONDS*1000
        !            29: 
        !            30: 
        !            31: //
        !            32: // MAJOR PROTOCOL IDENTIFIERS THAT CHARACTERIZE THIS DRIVER.
        !            33: //
        !            34: 
        !            35: #define ST_DEVICE_NAME         "\\Device\\St" // name of our driver.
        !            36: #define ST_DEVICE_NAME_LENGTH  10
        !            37: #define MAX_SOURCE_ROUTE_LENGTH 32              // max. bytes of SR. info.
        !            38: #define MAX_NETWORK_NAME_LENGTH 128             // # bytes in netname in TP_ADDRESS.
        !            39: #define MAX_USER_PACKET_DATA    1500            // max. user bytes per DFM/DOL.
        !            40: 
        !            41: #define ST_FILE_TYPE_CONTROL   (ULONG)0x4701   // file is type control
        !            42: 
        !            43: 
        !            44: //
        !            45: // MAJOR CONFIGURATION PARAMETERS THAT WILL BE MOVED TO THE INIT-LARGE_INTEGER
        !            46: // CONFIGURATION MANAGER.
        !            47: //
        !            48: 
        !            49: #define MAX_REQUESTS           30
        !            50: #define MAX_UI_FRAMES          25
        !            51: #define MAX_SEND_PACKETS       40
        !            52: #define MAX_RECEIVE_PACKETS    30
        !            53: #define MAX_RECEIVE_BUFFERS    15
        !            54: #define MAX_LINKS              10
        !            55: #define MAX_CONNECTIONS        10
        !            56: #define MAX_ADDRESSFILES       10
        !            57: #define MAX_ADDRESSES          10
        !            58: 
        !            59: #define MIN_UI_FRAMES           5   // + one per address + one per connection
        !            60: #define MIN_SEND_PACKETS       20   // + one per link + one per connection
        !            61: #define MIN_RECEIVE_PACKETS    10   // + one per link + one per address
        !            62: #define MIN_RECEIVE_BUFFERS     5   // + one per address
        !            63: 
        !            64: #define SEND_PACKET_RESERVED_LENGTH (sizeof (SEND_PACKET_TAG))
        !            65: #define RECEIVE_PACKET_RESERVED_LENGTH (sizeof (RECEIVE_PACKET_TAG))
        !            66: 
        !            67: 
        !            68: #define ETHERNET_HEADER_SIZE      14    // BUGBUG: used for current NDIS compliance
        !            69: #define ETHERNET_PACKET_SIZE    1514
        !            70: 
        !            71: 
        !            72: //
        !            73: // NETBIOS PROTOCOL CONSTANTS.
        !            74: //
        !            75: 
        !            76: //
        !            77: // TDI defined timeouts
        !            78: //
        !            79: 
        !            80: #define TDI_TIMEOUT_SEND                 60L        // sends go 120 seconds
        !            81: #define TDI_TIMEOUT_RECEIVE               0L        // receives
        !            82: #define TDI_TIMEOUT_CONNECT              60L
        !            83: #define TDI_TIMEOUT_LISTEN                0L        // listens default to never.
        !            84: #define TDI_TIMEOUT_DISCONNECT           60L        // should be 30
        !            85: #define TDI_TIMEOUT_NAME_REGISTRATION    60L
        !            86: 
        !            87: 
        !            88: 
        !            89: //
        !            90: // GENERAL CAPABILITIES STATEMENTS THAT CANNOT CHANGE.
        !            91: //
        !            92: 
        !            93: #define ST_MAX_TSDU_SIZE 65535     // maximum TSDU size supported by NetBIOS.
        !            94: #define ST_MAX_DATAGRAM_SIZE 512   // maximum Datagram size supported by NetBIOS.
        !            95: #define ST_MAX_CONNECTION_USER_DATA 0  // no user data supported on connect.
        !            96: #define ST_SERVICE_FLAGS  (                            \
        !            97:                 TDI_SERVICE_CONNECTION_MODE |           \
        !            98:                 TDI_SERVICE_CONNECTIONLESS_MODE |       \
        !            99:                 TDI_SERVICE_ERROR_FREE_DELIVERY |       \
        !           100:                 TDI_SERVICE_BROADCAST_SUPPORTED |       \
        !           101:                 TDI_SERVICE_MULTICAST_SUPPORTED |       \
        !           102:                 TDI_SERVICE_DELAYED_ACCEPTANCE  )
        !           103: 
        !           104: #define ST_MIN_LOOKAHEAD_DATA 256      // minimum guaranteed lookahead data.
        !           105: #define ST_MAX_LOOKAHEAD_DATA 256      // maximum guaranteed lookahead data.
        !           106: 
        !           107: #define ST_MAX_LOOPBACK_LOOKAHEAD  192  // how much is copied over for loopback
        !           108: 
        !           109: //
        !           110: // Number of TDI resources that we report.
        !           111: //
        !           112: 
        !           113: #define ST_TDI_RESOURCES      7
        !           114: 
        !           115: 
        !           116: //
        !           117: // More debugging stuff
        !           118: //
        !           119: 
        !           120: #define ST_REQUEST_SIGNATURE        ((CSHORT)0x5501)
        !           121: #define ST_CONNECTION_SIGNATURE     ((CSHORT)0x5502)
        !           122: #define ST_ADDRESSFILE_SIGNATURE    ((CSHORT)0x5503)
        !           123: #define ST_ADDRESS_SIGNATURE        ((CSHORT)0x5504)
        !           124: #define ST_DEVICE_CONTEXT_SIGNATURE ((CSHORT)0x5505)
        !           125: #define ST_PACKET_SIGNATURE         ((CSHORT)0x5506)
        !           126: 
        !           127: #endif // _STCONST_

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.