1 #include <linux/wireless.h>
3 /* the pcap_process callback function */
4 void pcap_process(u_char *count,const struct pcap_pkthdr *pcap_header,
5 const u_char *package);
7 /* snap header struct */
9 unsigned char snap[6]; /* the six magic snap chars */
10 unsigned short proto; /* protocol type */
11 } __attribute__ ((packed));
15 int count; /* count packages */
16 char dev[10]; /* device */
17 char mmode; /* monitor type ... and later more */
18 int channel; /* current freq channel */
21 /* hop_chanel function */
22 int hop_channel(struct info_struct *info,int foo_fd);