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