projects
/
my-code
/
hdw-sniff.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iv + snap support added -> logfile
[my-code/hdw-sniff.git]
/
hdw-sniff.h
diff --git
a/hdw-sniff.h
b/hdw-sniff.h
index
e7a6995
..
6dc06b9
100644
(file)
--- a/
hdw-sniff.h
+++ b/
hdw-sniff.h
@@
-1,10
+1,23
@@
+#include <linux/wireless.h>
+
/* the pcap_process callback function */
void pcap_process(u_char *count,const struct pcap_pkthdr *pcap_header,
const u_char *package);
/* the pcap_process callback function */
void pcap_process(u_char *count,const struct pcap_pkthdr *pcap_header,
const u_char *package);
+/* snap header struct */
+struct snaphdr {
+ unsigned char snap[6]; /* the six magic snap chars */
+ unsigned short proto; /* protocol type */
+} __attribute__ ((packed));
+
/* info struct */
struct info_struct {
int count; /* count packages */
char dev[10]; /* device */
char mmode; /* monitor type ... and later more */
/* info struct */
struct info_struct {
int count; /* count packages */
char dev[10]; /* device */
char mmode; /* monitor type ... and later more */
- };
+ int channel; /* current freq channel */
+};
+
+/* hop_chanel function */
+int hop_channel(struct info_struct *info,int foo_fd);
+