X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=hdw-sniff.h;h=fbea5d522e69ded280be7889eaac8eb43a7ba596;hb=f3c2f4ca0b3e1477ee21ccd6b023a82512386702;hp=40a8c178f10d9e85a2873c83247c3f2fe553f408;hpb=65006c10b34ca9dee50c9cfb0acba1229e1f2296;p=my-code%2Fhdw-sniff.git diff --git a/hdw-sniff.h b/hdw-sniff.h index 40a8c17..fbea5d5 100644 --- a/hdw-sniff.h +++ b/hdw-sniff.h @@ -1 +1,17 @@ -/* empty */ +#include + +/* the pcap_process callback function */ +void pcap_process(u_char *count,const struct pcap_pkthdr *pcap_header, + const u_char *package); + +/* 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); +