[42] | 1 | ' qos.ab
|
---|
| 2 | #ifndef _INC_QOS_AB
|
---|
| 3 | #define _INC_QOS_AB
|
---|
| 4 |
|
---|
| 5 | ' Definitions for valued-based Service Type for each direction of data flow.
|
---|
| 6 |
|
---|
| 7 | TypeDef SERVICETYPE = DWord
|
---|
| 8 |
|
---|
| 9 | Const SERVICETYPE_NOTRAFFIC = &h00000000
|
---|
| 10 | Const SERVICETYPE_BESTEFFORT = &h00000001
|
---|
| 11 | Const SERVICETYPE_CONTROLLEDLOAD = &h00000002
|
---|
| 12 | Const SERVICETYPE_GUARANTEED = &h00000003
|
---|
| 13 | Const SERVICETYPE_NETWORK_UNAVAILABLE = &h00000004
|
---|
| 14 | Const SERVICETYPE_GENERAL_INFORMATION = &h00000005
|
---|
| 15 | Const SERVICETYPE_NOCHANGE = &h00000006
|
---|
| 16 | Const SERVICETYPE_NONCONFORMING = &h00000009
|
---|
| 17 | Const SERVICETYPE_NETWORK_CONTROL = &h0000000A
|
---|
| 18 | Const SERVICETYPE_QUALITATIVE = &h0000000D
|
---|
| 19 | ' The usage of these is currently not supported.
|
---|
| 20 | Const SERVICE_BESTEFFORT = &h80010000
|
---|
| 21 | Const SERVICE_CONTROLLEDLOAD = &h80020000
|
---|
| 22 | Const SERVICE_GUARANTEED = &h80040000
|
---|
| 23 | Const SERVICE_QUALITATIVE = &h80200000
|
---|
| 24 |
|
---|
| 25 | ' Flags to control the usage of RSVP on this flow.
|
---|
| 26 | Const SERVICE_NO_TRAFFIC_CONTROL = &h81000000
|
---|
| 27 |
|
---|
| 28 | Const SERVICE_NO_QOS_SIGNALING = &h40000000
|
---|
| 29 |
|
---|
| 30 | ' Flow Specifications for each direction of data flow.
|
---|
| 31 | Type FLOWSPEC
|
---|
| 32 | TokenRate As DWord
|
---|
| 33 | TokenBucketSize As DWord
|
---|
| 34 | PeakBandwidth As DWord
|
---|
| 35 | Latency As DWord
|
---|
| 36 | DelayVariation As DWord
|
---|
| 37 | ServiceType As SERVICETYPE
|
---|
| 38 | MaxSduSize As DWord
|
---|
| 39 | MinimumPolicedSize As DWord
|
---|
| 40 | End Type
|
---|
| 41 | TypeDef PFLOWSPEC = *FLOWSPEC
|
---|
| 42 | TypeDef LPFLOWSPEC = *FLOWSPEC
|
---|
| 43 |
|
---|
| 44 | Const QOS_NOT_SPECIFIED = &hFFFFFFFF
|
---|
| 45 |
|
---|
| 46 | Const POSITIVE_INFINITY_RAT = &hFFFFFFFE
|
---|
| 47 |
|
---|
| 48 | Type QOS_OBJECT_HDR
|
---|
| 49 | bjectType As DWord
|
---|
| 50 | bjectLength As DWord
|
---|
| 51 | End Type
|
---|
| 52 | TypeDef LPQOS_OBJECT_HDR = *QOS_OBJECT_HDR
|
---|
| 53 |
|
---|
| 54 | Const QOS_GENERAL_ID_BASE = 2000
|
---|
| 55 |
|
---|
| 56 | Const QOS_OBJECT_END_OF_LIST = (&h00000001 + QOS_GENERAL_ID_BASE)
|
---|
| 57 | Const QOS_OBJECT_SD_MODE = (&h00000002 + QOS_GENERAL_ID_BASE)
|
---|
| 58 | Const QOS_OBJECT_SHAPING_RATE = (&h00000003 + QOS_GENERAL_ID_BASE)
|
---|
| 59 | Const QOS_OBJECT_DESTADDR = (&h00000004 + QOS_GENERAL_ID_BASE)
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | Type QOS_SD_MODE
|
---|
| 63 | ObjectHdr As QOS_OBJECT_HDR
|
---|
| 64 | ShapeDiscardMode As DWord
|
---|
| 65 | End Type
|
---|
| 66 | TypeDef LPQOS_SD_MODE = QOS_SD_MODE
|
---|
| 67 |
|
---|
| 68 | Const TC_NONCONF_BORROW = 0
|
---|
| 69 | Const TC_NONCONF_SHAPE = 1
|
---|
| 70 | Const TC_NONCONF_DISCARD = 2
|
---|
| 71 | Const TC_NONCONF_BORROW_PLUS = 3 ' Not supported currently
|
---|
| 72 |
|
---|
| 73 | Type QOS_SHAPING_RATE
|
---|
| 74 | ObjectHdr As QOS_OBJECT_HDR
|
---|
| 75 | ShapingRate As DWord
|
---|
| 76 | End Type
|
---|
| 77 | TypeDef LPQOS_SHAPING_RATE = *QOS_SHAPING_RATE
|
---|
| 78 |
|
---|
| 79 | #endif '_INC_QOS_AB
|
---|