X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=hdw-sniff.h;h=6dc06b99a3c104182ffb87c1445e46bc0840566a;hb=a5fd7ba7bab79996ed50a5c1d939272436446876;hp=e7a69951679f8a5cabcc35268f598a378ed65a2d;hpb=d161945cf9722f66bd5690f58fc0a95fc348e532;p=my-code%2Fhdw-sniff.git diff --git a/hdw-sniff.h b/hdw-sniff.h index e7a6995..6dc06b9 100644 --- a/hdw-sniff.h +++ b/hdw-sniff.h @@ -1,10 +1,23 @@ +#include + /* 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 */ - }; + int channel; /* current freq channel */ +}; + +/* hop_chanel function */ +int hop_channel(struct info_struct *info,int foo_fd); +