NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
DSx.h
1/************************************************************************************
2 * Copyright (C) 2023 *
3 * TETCOS, Bangalore. India *
4 * *
5 * Tetcos owns the intellectual property rights in the Product and its content. *
6 * The copying, redistribution, reselling or publication of any or all of the *
7 * Product or its content without express prior written consent of Tetcos is *
8 * prohibited. Ownership and / or any other right relating to the software and all *
9 * intellectual property rights therein shall remain at all times with Tetcos. *
10 * *
11 * Author: Shashi Kant Suman *
12 * *
13 * ---------------------------------------------------------------------------------*/
14#ifndef _NETSIM_CR_DSX_H_
15#define _NETSIM_CR_DSX_H_
16#define DOWNSTREAM 0x00
17#define UPSTREAM 0x01
18#define DSX_IE_FIXED_SIZE 117
19unsigned int g_nTransactionId;
20
21typedef enum service_state SERVICE_STATE;
22enum service_state
23{
24 ServiceState_Null=0,
25 ServiceState_Adding_remote,
26 serviceState_Add_Failed,
27 ServiceState_Adding_Local,
28 ServiceState_Nominal,
29 ServiceState_Changing_Local,
30 ServiceState_Changing_Remote,
31 ServiceState_Deleting,
32 ServiceState_Deleted,
33};
35{
36 unsigned int SFID[8];
37 SERVICE_STATE Status[8];
38 NetSim_PACKET* pTemp[8];
39};
40/** Table 72 IEEE 802.22-2011 Page 70
41 Service flow encodings information elements
42*/
44{
45 unsigned int nSFDirection:8;
46 unsigned int nSFID;
47 char className[10];
48 unsigned int QOSParameterSetType:8;
49 unsigned int maxSustainedTrafficrate:24;
50 unsigned int maxTrafficBurst:24;
51 unsigned int minReservedTrafficRate:24;
52 unsigned int minTolerableTrafficRate:24;
53 unsigned int SFSchedulingType:8;
54 unsigned int Req_TrxPolicy:8;
55 unsigned int toleratedJitter:24;
56 unsigned int maxLatency:24;
57 unsigned int sduIndicator:8;
58 unsigned int sduSize:1;
59 unsigned int targetSAID:16;
60 unsigned int maxTolerablePacketLossRate:8;
61 void* arqIE;
62 unsigned int csSpec:8;
63 unsigned int DSCAction:8;
64 void* packetClassficationRule;
65 void* reserved;
66};
67/** Table 64 IEEE 802.22-2011 Page 67
68 DSA-REQ message format
69*/
71{
72 MANAGEMENT_MESSAGE type;
73 unsigned int nTransactionId:16;
74 DSX_IE pstruIE;
75};
76/** Table 65 IEEE 802.22-2011 page 67
77 DSA-REP message format
78*/
80{
81 MANAGEMENT_MESSAGE type;
82 unsigned int nTransactionID:16;
83 unsigned int nConfirmationCode:8;
84 DSX_IE pstruIE;
85};
86/** Table 70 IEEE 802.22-2011 page 69
87 DSD-REQ message format
88*/
90{
91 MANAGEMENT_MESSAGE type;
92 unsigned int nTransactionID:16;
93 unsigned int nSFID:32;
94 DSX_IE pstruIE;
95};
96/** Table 71 IEEE 802.22-2011 page 69
97 DSD-RSP message format
98*/
100{
101 MANAGEMENT_MESSAGE type;
102 unsigned int nTransactionID:16;
103 unsigned int nSFID:32;
104 DSX_IE pstruIE;
105 unsigned int nConfirmationCode:8;
106};
107#endif