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

This header file belongs to the pcap-thread.c file. More...

#include <sys/types.h>
#include <pcap.h>
#include <semaphore.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <unistd.h>
#include "rssi_list.h"
Include dependency graph for pcap-thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_LOG_FILE_SIZE   12
 

Functions

void * pcap_function (void *arg)
 execute the pcap_function thread More...
 
void * tcpdump_function (void *data)
 execute the tcpdump_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
 

Detailed Description

This header file belongs to the pcap-thread.c file.

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

It describes the prototypes of the functions used in pcap-thread.c

Macro Definition Documentation

#define MAX_LOG_FILE_SIZE   12

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

Element* tracked_devices