5 // Created by Terrin Eager on 1/19/13.
9 #ifndef __TestTB__Frame__
10 #define __TestTB__Frame__
14 #include "bjMACAddr.h"
19 void Set(BJ_UINT8
* data
,BJ_UINT32 len
,BJ_UINT64 t
);
20 BJ_UINT8
* GetEthernetStart();
21 BJ_UINT8
* GetIPStart();
22 BJ_UINT8
* GetUDPStart();
23 BJ_UINT8
* GetBonjourStart();
25 BJIPAddr
* GetSrcIPAddr();
26 BJIPAddr
* GetDestIPAddr();
28 BJMACAddr
* GetSrcMACAddr();
29 BJMACAddr
* GetDestMACAddr();
31 int m_bCurrentFrameIPversion
;
33 BJ_UINT64
GetTime(){ return frameTime
; };
35 enum BJ_DATALINKTYPE
{
40 void SetDatalinkType (BJ_DATALINKTYPE datalinkType
);
43 BJ_UINT32
GetLinklayerHeaderLength();
45 //Get the header length of the current 802.11 frame.
46 BJ_UINT32
Get80211HeaderLength();
51 BJIPAddr sourceIPAddr
;
54 BJMACAddr sourceMACAddr
;
55 BJMACAddr destMACAddr
;
57 BJ_UINT64 frameTime
; // in microseconds
60 BJ_DATALINKTYPE m_datalinkType
= BJ_DLT_EN10MB
;
66 #endif /* defined(__TestTB__Frame__) */