pcap-thread.h
641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _PCAP_THREAD_
#define _PCAP_THREAD_
#include <sys/types.h>
#include "rssi_list.h"
#include <semaphore.h>
#include <signal.h>
#include<pcap.h>
#define PCAP_ERROR_BUFFER_SIZE 256
volatile sig_atomic_t got_sigint;
Element * rssi_list;
sem_t synchro;
struct ieee80211_header
{
u_short frame_control;
u_short frame_duration;
u_char recipient[6];
u_char source_addr[6];
u_char address3[6];
u_short sequence_control;
u_char address4[6];
};
struct ieee80211_radiotap_header
{
u_char it_version;
u_char it_pad;
u_char it_len[2];
u_char it_present[4];
};
void *pcap_function(void *arg);
#endif /* _PCAP_THREAD_ */