📄 wlan_mac_tmac_nav_rpm_31jan06_ver2.state variables
字号:
/* Intrpt type is stored in this variable */
int \intrpt_type;
/* Enumerated intrpt code for interrupts */
WlanT_Mac_Intrpt_Code \intrpt_code;
/* Station's own address */
int \my_address;
/* The object ID of the surrounding module. */
Objid \my_objid;
/* The object ID of the surrounding node. */
Objid \my_node_objid;
/* The object ID of the subnet in which the */
/* surrounding node model resides. */
Objid \my_subnet_objid;
/* Object ID of the radio transmitter that */
/* we are connected to. */
Objid \tx_objid;
/* Object ID of the channel of our transmitter. */
Objid \txch_objid;
/* Object ID of the radio receiver that we */
/* are connected to. */
Objid \rx_objid;
/* Object ID of the channel of our receiver. */
Objid \rxch_objid;
/* Handle to the own process record in the network wide process */
/* registery. */
OmsT_Pr_Handle \own_process_record_handle;
/* Higher layer data arrival queue or list */
List* \hld_list_ptr;
/* Used in storing data rate attribute. This is the rate at which */
/* data frame is transmitted. */
double \data_tx_rate;
double \battery_capacity;
/* Data rate used for the transmission of control frames. The rate */
/* is the lowest one of the mandatory data rates set of the */
/* configured physical layer technology. */
double \control_data_rate;
/* Data rate of the last successfully received frame, which is used */
/* in determining the transmission rate of the control response */
/* messages (CTS and ACK). */
double \rcvd_frame_drate;
/* Used in storing fragmentation threshold attribute */
int \frag_threshold;
/* Counter to determine packet sequence number for each transmitted packet */
int \packet_seq_number;
/* Counter to determine fragment number for each packet fragment */
int \packet_frag_number;
/* Used in storing destination address */
int \destination_addr;
/* Fragmentation buffer used to store transmit packet fragments. */
Sbhandle \fragmentation_buffer_ptr;
/* Common reassembly buffer used for segments containing the entire */
/* original packet. */
Sbhandle \common_rsmbuf_ptr;
/* Reassembly buffer for higher layer packets segmented in */
/* multiprotocol switches. */
Sbhandle \mac_client_reassembly_buffer;
/* After receiving a frame station will determine that what response */
/* need to be sent. */
WlanT_Mac_Frame_Type \fresp_to_send;
/* Network allocation vector duration this an absolute time from the */
/* beginning of the simulation. It will be considered as zero if it is */
/* set to the current time. */
double \nav_duration;
/* Handle for the procedure interrupt that is scheduled to reset the */
/* NAV that is updated based on a received RTS, if no activity is */
/* detected on the medium for a certain time as specified in section */
/* 9.2.5.4 of the IEEE 802.11-1999 standard. */
Evhandle \nav_reset_evh;
/* Used in storing Rts threshold attribute */
int \rts_threshold;
/* Flag for duplicate entry Keeps track that whether the receive frame was a duplicate frame or not. */
/* This information is transmitted in ACK frame. */
int \duplicate_entry;
/* Set the expected frame type needed in response */
/* to the transmitted frame */
WlanT_Mac_Frame_Type \expected_frame_type;
/* Extracting remote station's address from */
/* the received packet */
int \remote_sta_addr;
/* Random number of backoff slots determined by */
/* a uniform distribution */
double \backoff_slots;
/* Recording number of packets received from the */
/* higher layer */
Stathandle \packet_load_handle;
/* Storing total backoff time when backoff duration is set */
double \intrpt_time;
/* Make copy of the transmit frame before transmission */
Packet * \wlan_transmit_frame_copy_ptr;
/* Number of backoff slots before transmission. */
Stathandle \backoff_slots_handle;
/* Stream index coming from the higher layer MAC interface. */
int \instrm_from_mac_if;
/* Stream index connected to the higher layer MAC interface. */
int \outstrm_to_mac_if;
/* Number of data fragments that need to be transmitted */
/* for each data frame received from higher layer */
int \num_fragments;
/* Size of the last data fragment */
OpT_Packet_Size \remainder_size;
/* This buffer contains the fragments received from */
/* remote station and maintains following information */
/* for each fragment: */
/* 1. remote station address */
/* 2. time the last fragment was received */
/* 3. reassembly buffer */
List* \defragmentation_list_ptr;
/* This structure contains all the flags which the process */
/* model used to convey information from one state to another */
/* for details check the header block where the structure is */
/* defined. */
WlanT_Mac_Flags* \wlan_flags;
/* used to obtain address handle to resolve wlan MAC address */
OmsT_Aa_Address_Handle \oms_aa_handle;
/* Keeps track of the current simulation time at each interrupt */
double \current_time;
/* Last simulation time when the receiver became idle again. */
double \rcv_idle_time;
/* This list stores the information of the received packet. */
/* The information includes source station address, packet */
/* sequence id, and packet fragment number. This */
/* is used to keep track that whether the received packet is */
/* a duplicate of the previously received frame. If that's */
/* the case then packet is simply discarded. */
/* */
/* Pool memory handle used to allocate memory for the data */
/* received from the higher layer and inserted in the queue */
Pmohandle \hld_pmh;
/* Maximum backoff value for picking random backoff interval */
int \max_backoff;
/* Keeping track of the current state of the station. */
char \current_state_name [32];
/* Monitor queue size as the packets arrive from higher layer. */
Stathandle \hl_packets_rcvd;
/* Keep tracks of the delay from the time the packet is received */
/* from the higher layer to the time it is transmitted by the station. */
Stathandle \media_access_delay;
/* Handle for the end to end delay statistic that is recorded for */
/* the packets that are accepted and forwarded to the higher layer. */
Stathandle \ete_delay_handle;
/* Handle for global end-to-end delay statistic. */
Stathandle \global_ete_delay_handle;
/* Handle for global WLAN throughput statistic. */
Stathandle \global_throughput_handle;
/* Handle for global WLAN load statistic. */
Stathandle \global_load_handle;
/* Handle for global dropped higher layer data statistic. */
Stathandle \global_dropped_data_handle;
/* Handle for global media access delay statistic. */
Stathandle \global_mac_delay_handle;
/* Control Traffic (Rts,Cts or Ack) received by the station in bits */
Stathandle \ctrl_traffic_rcvd_handle_inbits;
/* Control Traffic (Rts,Cts or Ack) sent by the station in bits */
Stathandle \ctrl_traffic_sent_handle_inbits;
/* Control Traffic (Rts,Cts or Ack) received by the station in packets */
Stathandle \ctrl_traffic_rcvd_handle;
/* Control Traffic (Rts,Cts or Ack) sent by the station */
Stathandle \ctrl_traffic_sent_handle;
/* Data Traffic received by the station in bits */
Stathandle \data_traffic_rcvd_handle_inbits;
/* Data Traffic sent by the station in bits */
Stathandle \data_traffic_sent_handle_inbits;
/* Data Traffic received by the station */
Stathandle \data_traffic_rcvd_handle;
/* Data Traffic sent by the station */
Stathandle \data_traffic_sent_handle;
/* Read the SIFS time from the model attributes */
double \sifs_time;
/* Read the Slot time from the model attributes */
double \slot_time;
/* Read the minimum contention window size from the model attribute. */
int \cw_min;
/* Read the maximum contention window size from the model attribute. */
int \cw_max;
/* DIFS interval is used by the stations to transmit data frames. */
double \difs_time;
/* Delay in seconds to transmit PLCP Preamble and PLCP Header at lowest */
/* mandatory data rate of the physical layer for WLAN control frames. */
double \plcp_overhead_control;
/* Delay in seconds to transmit PLCP Preamble and PLCP Header for WLAN */
/* data frames. */
double \plcp_overhead_data;
/* Statistic for network allocation vector */
Stathandle \channel_reserv_handle;
/* Keep track of the number of retransmissions before the packet was */
/* successfully transmitted. */
Stathandle \retrans_handle;
/* Keep track of the number of data bits sent to the higher layer. */
Stathandle \throughput_handle;
/* Statistic handle for recording AP connectivity of the MAC. */
Stathandle \ap_conn_handle;
/* This is the retry limit for the frames which are greater than or equal to */
/* Rts threshold. */
int \long_retry_limit;
/* This is the retry limit for the frames which are less than or equal to */
/* Rts threshold. */
int \short_retry_limit;
/* Incremented when an ACK is not received for a data frame in spite of a */
/* successful RTS/CTS frame exchange. */
int \long_retry_count;
/* Incremented when a CTS is not received for a transmitted RTS, or when an */
/* ACK is not received for a data frame that is transmitted without any */
/* RTS/CTS frame exchange. */
int \short_retry_count;
/* This frame keeps track of the last transmitted frame that needs */
/* a frame response (like Cts or Ack). This is actually used when */
/* there is a need for retransmission. */
WlanT_Mac_Frame_Type \last_frametx_type;
/* Event handle that keeps track of the self interrupt due to Deference. */
Evhandle \deference_evh;
/* Event handle that keeps track of the self interrupt due to backoff. */
Evhandle \backoff_elapsed_evh;
/* Event handle that keeps track of the self interrupt due to frame timeout */
/* when the station is waiting for a response. */
Evhandle \frame_timeout_evh;
/* EIFS duration which is used when the station receives an erroneous frame */
/* */
double \eifs_time;
/* Keeping track of incoming packet stream from the lower layer. */
int \i_strm;
/* Debugging/trace flag for all activities in this MAC. */
Boolean \wlan_trace_active;
/* Store packet id of the data packet in service. */
OpT_Packet_Id \pkt_in_service;
/* Reporting the packet size arrived from higher layer. */
Stathandle \bits_load_handle;
/* Flag to read the attribute which indicates whether */
/* the station has Access point functional or not. */
int \ap_flag;
/* Flag to check whether the network is configured for BSS or IBSS. */
Boolean \bss_flag;
/* The MAC address of the access point. */
int \ap_mac_address;
/* This variable maintains the maximum size of the higher layer */
/* data buffer as specified by the user. */
int \hld_max_size;
/* Maximum time after the initial reception of the fragmented MSDU */
/* after which further attempts to reassemble the MSDU will be terminated. */
double \max_receive_lifetime;
/* Flag to accept packets larger than MAXMSDU size. */
int \accept_large_packets;
/* This variable stores the physical layer characteristic type information. */
WlanT_Phy_Char_Code \phy_char_flag;
/* The physical layer technology of the access point of our BSS. It */
/* can be different then our since STAs operating with DSSS and ERP */
/* can coexist in the same BSS. */
WlanT_Phy_Char_Code \ap_phy_char_flag;
/* Type of the 802.11 standard that specifies the physical layer */
/* technology used by this MAC. Frequency hopping and infra-red */
/* technologies are referred as 802.11b technologies. */
WlanT_Phy_Type \phy_type;
/* Maintaining total size of the packets in higher layer queue. */
OpT_Packet_Size \total_hlpk_size;
/* Keep track of the dropped packet by the higher layer queue due */
/* to the overflow of the buffer. */
Stathandle \drop_packet_handle;
/* Keep track of the dropped packet by the higher layer queue due */
/* to the overflow of the buffer. */
Stathandle \drop_packet_handle_inbits;
/* Logging information if the packet is dropped due to higher layer */
/* queue overflow. */
Log_Handle \drop_pkt_log_handle;
/* Simulation log handle for configuration related messages. */
Log_Handle \config_log_handle;
/* This is to make sure that the entry is written only once. */
int \drop_pkt_entry_log_flag;
/* The full size of the packet that is currently handled. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -