Developers

How can I get RATE of each 802.11 packet in plug-in module?

A place for developers to exchange information about extending OmniPeek, and ask technical questions about plugins on MyPeek, scripting, and programming.
frog
Posts: 2
Joined: Wed Feb 18, 2009 9:55 pm

How can I get RATE of each 802.11 packet in plug-in module?

Postby frog » Thu Feb 19, 2009 1:43 am

I want to write a plug-in module to mointor rate changing of traffic from a specific DUT. How can I get the rate field of each packet?

I found a related "DataRate" data structure in "Wireless80211PrivateHeader" which is defined in "MediaSpecificHeaderAll". I can't find any related reference about this media specific header. Does the pointer of "fMediaSpecInfoBlock" in PluginPacket point to this "MediaSpecificHeaderAll"?

For example:
in funcion OnProcessPacket()

"
const PluginPacket* inPacket;


inPacket = ioParams->fPacket;

if (inPacket->fMediaSpecInfoBlock) {
const MediaSpecificHeaderAll* prMediaSpecificHeader;

prMediaSpecificHeader = (const MediaSpecificHeaderAll*)inPacket->fMediaSpecInfoBlock;
...
}

....
"

Is there any related plug-in module that I can reference?

Thanks~

frog
Posts: 2
Joined: Wed Feb 18, 2009 9:55 pm

RE: How can I get RATE of each 802.11 packet in plug-in modu

Postby frog » Tue Feb 24, 2009 5:51 am

In short, how can I reference the DataRate field of each 802.11 packet in plug-in module? Is there anyone who can tell me?...please...

Spacepacket
Posts: 78
Joined: Thu May 22, 2008 9:36 am

RE: RE: How can I get RATE of each 802.11 packet in plug-in

Postby Spacepacket » Tue May 18, 2010 8:38 am

Hi frog,

You are right on with your example. Taking it from there, just use prMediaSpecificHeader to access the datarate field like this:

UInt8 nDataRate = prMediaSpecificHeader->wireless.DataRate;

-Spacepacket


Return to “Developers”

Who is online

Users browsing this forum: No registered users and 2 guests