LO53 PROJECT - AP DOCUMENTATION
Project based on Indoor Positionning System
Functions | Variables
/home/junicode/Documents/LO53_Project/LO53_AP_Development/pcap-thread.c File Reference

This file contains the body of the threads functions which were executed in the main file. More...

#include "pcap-thread.h"
Include dependency graph for pcap-thread.c:

Functions

void * tcpdump_function (void *data)
 execute the tcpdump_function thread More...
 
void * pcap_function (void *arg)
 execute the pcap_function thread More...
 
void * ClearOutdatedValues (void *data)
 execute the ClearOutdatedValues thread More...
 
void get_ap_mac (u_char **mac, char *interface)
 gets the waypoint wifi mac address More...
 
int samples_log_size ()
 get the size of the samples log file More...
 

Variables

Elementtracked_devices
 
int SLEEP_VALUE = 1
 

Detailed Description

This file contains the body of the threads functions which were executed in the main file.

Author
Zeufack Arnel - Member of an LO53 group-project (Other Members: TONY DUONG - YVON MBOUGUEM - JOEL WABO)
Date
15 Juin 2016

This file contains the body of the threads functions which were executed in the main file. It is one of the most important file of the program

Function Documentation

void* ClearOutdatedValues ( void *  data)

execute the ClearOutdatedValues thread

Parameters
datait is NULL in reallity
void get_ap_mac ( u_char **  mac,
char *  interface 
)

gets the waypoint wifi mac address

Parameters
maca string which will contain the founded mac address
interfacethe interface of the wifi
void* pcap_function ( void *  arg)

execute the pcap_function thread

Parameters
argit is the interface of the waypoint used to sniff the traffic
int samples_log_size ( )

get the size of the samples log file

Returns
it returns the file size in Kb
void* tcpdump_function ( void *  data)

execute the tcpdump_function thread

Parameters
argit is the interface of the waypoint used in the program

Variable Documentation

int SLEEP_VALUE = 1
Element* tracked_devices