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