NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
stru_802_22_General_MAC_Header Struct Reference

#include <802_22.h>

Data Fields

unsigned int n_Length:11
 
unsigned int n_UCS:1
 
unsigned int n_QPA:1
 
unsigned int n_EC:1
 
unsigned int n_EKS:2
 
char sz_Type [6]
 
unsigned int n_FID:3
 3 bits Flow ID
 
unsigned int n_HCS:8
 
void * subheader [5]
 Subheader.
 

Detailed Description

Generic MAC header structure. Ref: IEEE802.22-2011 Table 3, page 36

Definition at line 540 of file 802_22.h.

Field Documentation

◆ n_EC

unsigned int stru_802_22_General_MAC_Header::n_EC
1 bit Encryption control:
0: payload is not encrypted
1: payload is encrypted

Definition at line 571 of file 802_22.h.

◆ n_EKS

unsigned int stru_802_22_General_MAC_Header::n_EKS

2 bits Encryption key sequence The index of the traffic encryption key (TEK) and initialization vector used to encrypt the payload. This field is only meaningful if the EC field is set to 1. When transitioning to newer TEK/GTEK (see 246H8.3.1.4 and 247H8.3.1.5), EKS is incremented +1 (modulo 4).

Definition at line 579 of file 802_22.h.

◆ n_FID

unsigned int stru_802_22_General_MAC_Header::n_FID

3 bits Flow ID

Definition at line 590 of file 802_22.h.

◆ n_HCS

unsigned int stru_802_22_General_MAC_Header::n_HCS
8 bits Header check sequence
The transmitter shall calculate the HCS value for the content
of the header excluding the HCS field, and insert the result
into the HCS field which is the last byte of the header). It
shall be the remainder of the division (Modulo 2) by the
generator polynomial g(D = D8 + D2 + D + 1) of the
polynomial D8 multiplied by the content of the header
excluding the HCS field. (Example: [Length=0x447, UCS=0,QPA=0, EC=1, EKS=01, Type=11001, FID=010;
the resulting GMH=0x88E5CB and the HCS calculated over it = 0x27]).

Definition at line 592 of file 802_22.h.

◆ n_Length

unsigned int stru_802_22_General_MAC_Header::n_Length

11 bits The length in bytes of the MAC PDU including the MAC header and the CRC. Any length smaller than 4 bytes shall be reserved for future use and the data shall be discarded by receivers only able to comply with this standard release.

Definition at line 543 of file 802_22.h.

◆ n_QPA

unsigned int stru_802_22_General_MAC_Header::n_QPA
1 bit Quiet Period Adjustment sent by the CPE when it is missing
QP opportunities to complete its in-band sensing within the
required in-band detection time (see 245H10.3.3):
0: no adjustment needed (default)
1: increase of the number of quiet periods is needed

Definition at line 561 of file 802_22.h.

◆ n_UCS

unsigned int stru_802_22_General_MAC_Header::n_UCS
1 bit Urgent Coexistence Situation
Used by the CPE to alert the BS about an UCS with
incumbents in the channel currently being used by the BS or
either of its adjacent channels:
0: no incumbent (default)
1: incumbent detected

Definition at line 550 of file 802_22.h.

◆ subheader

void* stru_802_22_General_MAC_Header::subheader[5]

Subheader.

Definition at line 605 of file 802_22.h.

◆ sz_Type

char stru_802_22_General_MAC_Header::sz_Type[6]

5 bits Indicates the subheaders and special payload types present in the message payload.

Definition at line 588 of file 802_22.h.


The documentation for this struct was generated from the following file: