beacon work ...
[my-code/hdw-sniff.git] / parse.h
diff --git a/parse.h b/parse.h
index a657833..96eca6d 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -6,6 +6,7 @@
 /* ieee802.11 stuff */
 
 
+typedef unsigned long long int u64;
 typedef unsigned int u32;
 typedef unsigned short int u16;
 typedef unsigned char u8;
@@ -90,6 +91,18 @@ typedef struct s_frame1_hdr {
 #define FCTL_STYPE_CFPOLL 0x6
 #define FCTL_STYPE_CFACKPOLL 0x7
 
+typedef struct s_beacon_fb {
+  u64 timestamp;
+  u16 beacon_int;
+  u16 cap_info;
+  u8 ssid_element_id;
+  u8 ssid_length;
+  u32 ssid;
+  u8 srates_element_id;
+  u8 srates_element_length;
+  u8 rest; /* go on here ... */
+} __attribute__ ((packed)) t_beacon_fb;
+
 
 /* hdw-sniff stuff */