LO53 PROJECT - AP DOCUMENTATION
Project based on Indoor Positionning System
/home/junicode/Documents/LO53_Project/LO53_AP_Development/pcap-thread.h
Go to the documentation of this file.
1 
11 #ifndef _PCAP_THREAD_
12 #define _PCAP_THREAD_
13 
14 #include <sys/types.h>
15 #include <pcap.h>
16 #include <semaphore.h>
17 #include <signal.h>
18 #include <sys/socket.h>
19 #include <sys/ioctl.h>
20 #include <net/if.h>
21 #include <unistd.h>
22 #include "rssi_list.h"
23 
24 #define MAX_LOG_FILE_SIZE 12 //12Kb.. We speify a maximum size for the logfile in order to avoid the saturation of the waypoint hard disk
25 
26 extern Element * tracked_devices; // Here we are creating the main linked list!; its will contain all the captured devices detected nearby. this variable will be shared between all the threads.
27 
32 void *pcap_function(void *arg);
33 
38 void *tcpdump_function(void *data);
39 
44 void *ClearOutdatedValues(void *data);
45 
51 void get_ap_mac(u_char ** mac, char * interface);
52 
57 int samples_log_size();
58 
59 #endif /* _PCAP_THREAD_ */
void * pcap_function(void *arg)
execute the pcap_function thread
Definition: pcap-thread.c:32
Element * tracked_devices
Definition: http_deamon.c:15
contains one element of the Device list The device list shall be sorted by device's MAC ...
void get_ap_mac(u_char **mac, char *interface)
gets the waypoint wifi mac address
Definition: pcap-thread.c:178
void * ClearOutdatedValues(void *data)
execute the ClearOutdatedValues thread
Definition: pcap-thread.c:158
void * tcpdump_function(void *data)
execute the tcpdump_function thread
Definition: pcap-thread.c:16
int samples_log_size()
get the size of the samples log file
Definition: pcap-thread.c:193