Skip to content

Instantly share code, notes, and snippets.

@dominicgs
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominicgs/eb43859f4239a8afdc78 to your computer and use it in GitHub Desktop.
Save dominicgs/eb43859f4239a8afdc78 to your computer and use it in GitHub Desktop.
USB packet format for dot11 device
struct dot11_packet {
int32_t tv_sec;
int32_t tv_usec;
int dlt;
/* Channel we captured on, if available in packet headers, or channel we
* will tx on */
int channel;
/* Length of components */
int length;
int length_capheader;
int length_data;
};
Followed by the header data, then the payload (using the lengths given above).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment