X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=hdw-sniff.h;h=7e34dfcee41012589aecbbf279f488fd06a2e2bf;hp=e7a69951679f8a5cabcc35268f598a378ed65a2d;hb=8eca22db0981a42d3a9513b397d012a4c450789a;hpb=95e482eef2af91c6bb150d4e92cb73503d6b8fb9 diff --git a/hdw-sniff.h b/hdw-sniff.h index e7a6995..7e34dfc 100644 --- a/hdw-sniff.h +++ b/hdw-sniff.h @@ -1,3 +1,5 @@ +#include + /* the pcap_process callback function */ void pcap_process(u_char *count,const struct pcap_pkthdr *pcap_header, const u_char *package); @@ -7,4 +9,9 @@ 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 pcap_fd); +