introduced beacon header
[my-code/hdw-sniff.git] / hdw-sniff.h
index 6dc06b9..76eee82 100644 (file)
@@ -1,5 +1,7 @@
 #include <linux/wireless.h>
 
+#define C_MAX 14
+
 /* the pcap_process callback function */
 void pcap_process(u_char *count,const struct pcap_pkthdr *pcap_header,
                        const u_char *package);
@@ -21,3 +23,11 @@ struct info_struct {
 /* hop_chanel function */
 int hop_channel(struct info_struct *info,int foo_fd);
 
+/* beacon header */
+struct beacon_struct {
+               long int timestamp;             /* time stamp */
+               unsigned short interval;        /* beacon interval field */
+               unsigned short capability;      /* capability field */
+               unsigned char ssid;             /* ssid field */
+} __attribute__ ((packed));
+