NetSim Source Code Help
Loading...
Searching...
No Matches
IEEE802_11_MacFrame.c File Reference
#include "main.h"
#include "IEEE802_11.h"
#include "IEEE802_11_MAC_Frame.h"
#include "IEEE802_11_Phy.h"
#include "NetSim_utility.h"
Include dependency graph for IEEE802_11_MacFrame.c:

Go to the source code of this file.

Functions

static UINT get_fragment_number (NetSim_PACKET *packet)
 
double getAckSize (PIEEE802_11_PHY_VAR phy)
 
double getCTSSize ()
 
double getRTSSize ()
 
double getMacOverhead (PIEEE802_11_PHY_VAR phy, double size)
 
static double get_block_ack_size (NETSIM_ID dev, NETSIM_ID ifid)
 
static void ieee802_11_set_hdr (NETSIM_ID d, NETSIM_ID in, NetSim_PACKET *packet, UINT hdrType, void *hdr)
 
void * ieee802_11_get_hdr (NetSim_PACKET *packet, UINT *type)
 
static void free_mpdu_header (PIEEE802_11_MAC_HEADER macHdr)
 
static void free_ack_header (PIEEE802_11_ACK ack)
 
static void free_blockack_header (PIEEE802_11_BLOCKACK back)
 
static void free_rts_header (PIEEE802_11_RTS rts)
 
static void free_cts_header (PIEEE802_11_CTS cts)
 
void ieee802_11_free_hdr (NetSim_PACKET *packet)
 
static PIEEE802_11_RTS copy_rts_header (PIEEE802_11_RTS rts)
 
static PIEEE802_11_CTS copy_cts_header (PIEEE802_11_CTS cts)
 
static PIEEE802_11_ACK copy_ack_header (PIEEE802_11_ACK ack)
 
static PIEEE802_11_BLOCKACK copy_blockack_header (PIEEE802_11_BLOCKACK back)
 
static PIEEE802_11_MAC_HEADER copy_mac_header (PIEEE802_11_MAC_HEADER hdr)
 
void ieee802_11_hdr_copy (NetSim_PACKET *dest, NetSim_PACKET *src)
 
void fn_NetSim_IEEE802_11_Add_MAC_Header (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *pstruPacket, unsigned int seqNo)
 
NetSim_PACKETfn_NetSim_IEEE802_11_CreateAckPacket (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *data, double time)
 
NetSim_PACKETfn_NetSim_IEEE802_11_CreateBlockAckPacket (NETSIM_ID nDeviceId, NETSIM_ID nInterfaceId, NetSim_PACKET *data, double time)
 
bool isIEEE802_11_CtrlPacket (NetSim_PACKET *packet)
 
void fn_NetSim_Process_CtrlPacket ()
 
NetSim_PACKETfn_NetSim_IEEE802_11_CreateRTSPacket (NetSim_PACKET *data, double duration)
 
NetSim_PACKETfn_NetSim_IEEE802_11_CreateCTSPacket (NetSim_PACKET *data)
 
void set_blockack_bitmap (NetSim_PACKET *ackPacket, NetSim_PACKET *packet)
 
bool is_more_fragment_coming (NetSim_PACKET *packet)
 
bool is_first_packet (NetSim_PACKET *packet)
 
NETSIM_ID get_send_interface_id (NetSim_PACKET *packet)
 
NETSIM_ID get_recv_interface_id (NetSim_PACKET *packet)
 

Function Documentation

◆ copy_ack_header()

static PIEEE802_11_ACK copy_ack_header ( PIEEE802_11_ACK  ack)
static

Definition at line 178 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ copy_blockack_header()

static PIEEE802_11_BLOCKACK copy_blockack_header ( PIEEE802_11_BLOCKACK  back)
static

Definition at line 185 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ copy_cts_header()

static PIEEE802_11_CTS copy_cts_header ( PIEEE802_11_CTS  cts)
static

Definition at line 171 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ copy_mac_header()

static PIEEE802_11_MAC_HEADER copy_mac_header ( PIEEE802_11_MAC_HEADER  hdr)
static

Definition at line 192 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ copy_rts_header()

static PIEEE802_11_RTS copy_rts_header ( PIEEE802_11_RTS  rts)
static

Definition at line 164 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_Add_MAC_Header()

void fn_NetSim_IEEE802_11_Add_MAC_Header ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
NetSim_PACKET pstruPacket,
unsigned int  seqNo 
)

Definition at line 229 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_CreateAckPacket()

NetSim_PACKET * fn_NetSim_IEEE802_11_CreateAckPacket ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
NetSim_PACKET data,
double  time 
)

Definition at line 306 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_CreateBlockAckPacket()

NetSim_PACKET * fn_NetSim_IEEE802_11_CreateBlockAckPacket ( NETSIM_ID  nDeviceId,
NETSIM_ID  nInterfaceId,
NetSim_PACKET data,
double  time 
)

Definition at line 371 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_CreateCTSPacket()

NetSim_PACKET * fn_NetSim_IEEE802_11_CreateCTSPacket ( NetSim_PACKET data)

Definition at line 540 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_IEEE802_11_CreateRTSPacket()

NetSim_PACKET * fn_NetSim_IEEE802_11_CreateRTSPacket ( NetSim_PACKET data,
double  duration 
)

Definition at line 471 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Process_CtrlPacket()

void fn_NetSim_Process_CtrlPacket ( )

Definition at line 448 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ free_ack_header()

static void free_ack_header ( PIEEE802_11_ACK  ack)
static

Definition at line 114 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ free_blockack_header()

static void free_blockack_header ( PIEEE802_11_BLOCKACK  back)
static

Definition at line 119 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ free_cts_header()

static void free_cts_header ( PIEEE802_11_CTS  cts)
static

Definition at line 129 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ free_mpdu_header()

static void free_mpdu_header ( PIEEE802_11_MAC_HEADER  macHdr)
static

Definition at line 109 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ free_rts_header()

static void free_rts_header ( PIEEE802_11_RTS  rts)
static

Definition at line 124 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ get_block_ack_size()

static double get_block_ack_size ( NETSIM_ID  dev,
NETSIM_ID  ifid 
)
static

Definition at line 65 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_fragment_number()

static UINT get_fragment_number ( NetSim_PACKET packet)
static

Definition at line 633 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ get_recv_interface_id()

NETSIM_ID get_recv_interface_id ( NetSim_PACKET packet)

Definition at line 649 of file IEEE802_11_MacFrame.c.

◆ get_send_interface_id()

NETSIM_ID get_send_interface_id ( NetSim_PACKET packet)

Definition at line 640 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ getAckSize()

double getAckSize ( PIEEE802_11_PHY_VAR  phy)

Definition at line 22 of file IEEE802_11_MacFrame.c.

◆ getCTSSize()

double getCTSSize ( )

Definition at line 41 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ getMacOverhead()

double getMacOverhead ( PIEEE802_11_PHY_VAR  phy,
double  size 
)

Definition at line 51 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ getRTSSize()

double getRTSSize ( )

Definition at line 46 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ ieee802_11_free_hdr()

void ieee802_11_free_hdr ( NetSim_PACKET packet)

Definition at line 134 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ieee802_11_get_hdr()

void * ieee802_11_get_hdr ( NetSim_PACKET packet,
UINT type 
)

Definition at line 101 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ ieee802_11_hdr_copy()

void ieee802_11_hdr_copy ( NetSim_PACKET dest,
NetSim_PACKET src 
)

Definition at line 199 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ieee802_11_set_hdr()

static void ieee802_11_set_hdr ( NETSIM_ID  d,
NETSIM_ID  in,
NetSim_PACKET packet,
UINT  hdrType,
void *  hdr 
)
static

Definition at line 76 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_first_packet()

bool is_first_packet ( NetSim_PACKET packet)

Definition at line 626 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ is_more_fragment_coming()

bool is_more_fragment_coming ( NetSim_PACKET packet)

Definition at line 619 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ isIEEE802_11_CtrlPacket()

bool isIEEE802_11_CtrlPacket ( NetSim_PACKET packet)

Definition at line 440 of file IEEE802_11_MacFrame.c.

Here is the caller graph for this function:

◆ set_blockack_bitmap()

void set_blockack_bitmap ( NetSim_PACKET ackPacket,
NetSim_PACKET packet 
)

Definition at line 611 of file IEEE802_11_MacFrame.c.

Here is the call graph for this function:
Here is the caller graph for this function: