pcap-thread_8h.tex 7.44 KB
\hypertarget{pcap-thread_8h}{}\section{/home/junicode/\+Documents/\+L\+O53\+\_\+\+Project/\+L\+O53\+\_\+\+A\+P\+\_\+\+Development/pcap-\/thread.h File Reference}
\label{pcap-thread_8h}\index{/home/junicode/\+Documents/\+L\+O53\+\_\+\+Project/\+L\+O53\+\_\+\+A\+P\+\_\+\+Development/pcap-\/thread.\+h@{/home/junicode/\+Documents/\+L\+O53\+\_\+\+Project/\+L\+O53\+\_\+\+A\+P\+\_\+\+Development/pcap-\/thread.\+h}}


This header file belongs to the \hyperlink{pcap-thread_8c}{pcap-\/thread.\+c} file.  


{\ttfamily \#include $<$sys/types.\+h$>$}\\*
{\ttfamily \#include $<$pcap.\+h$>$}\\*
{\ttfamily \#include $<$semaphore.\+h$>$}\\*
{\ttfamily \#include $<$signal.\+h$>$}\\*
{\ttfamily \#include $<$sys/socket.\+h$>$}\\*
{\ttfamily \#include $<$sys/ioctl.\+h$>$}\\*
{\ttfamily \#include $<$net/if.\+h$>$}\\*
{\ttfamily \#include $<$unistd.\+h$>$}\\*
{\ttfamily \#include \char`\"{}rssi\+\_\+list.\+h\char`\"{}}\\*
Include dependency graph for pcap-\/thread.h\+:
% FIG 0
This graph shows which files directly or indirectly include this file\+:
% FIG 1
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{pcap-thread_8h_afd932992b0afe0ee3014a55ceace90c7}{M\+A\+X\+\_\+\+L\+O\+G\+\_\+\+F\+I\+L\+E\+\_\+\+S\+I\+Z\+E}~12
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void $\ast$ \hyperlink{pcap-thread_8h_aa6cca3d417df0d64edcfbfaa2f445aab}{pcap\+\_\+function} (void $\ast$arg)
\begin{DoxyCompactList}\small\item\em execute the pcap\+\_\+function thread \end{DoxyCompactList}\item 
void $\ast$ \hyperlink{pcap-thread_8h_a80533e12c13720352712455e86eac14d}{tcpdump\+\_\+function} (void $\ast$data)
\begin{DoxyCompactList}\small\item\em execute the tcpdump\+\_\+function thread \end{DoxyCompactList}\item 
void $\ast$ \hyperlink{pcap-thread_8h_aa7fbc627d49703073084fc66e79ef7c0}{Clear\+Outdated\+Values} (void $\ast$data)
\begin{DoxyCompactList}\small\item\em execute the Clear\+Outdated\+Values thread \end{DoxyCompactList}\item 
void \hyperlink{pcap-thread_8h_af7e8fb860db3c87ed3bec362216a5c7c}{get\+\_\+ap\+\_\+mac} (u\+\_\+char $\ast$$\ast$mac, char $\ast$interface)
\begin{DoxyCompactList}\small\item\em gets the waypoint wifi mac address \end{DoxyCompactList}\item 
int \hyperlink{pcap-thread_8h_a70cd3fb82216b3537d8691fcbd6dee10}{samples\+\_\+log\+\_\+size} ()
\begin{DoxyCompactList}\small\item\em get the size of the samples log file \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hyperlink{struct_element}{Element} $\ast$ \hyperlink{pcap-thread_8h_ae9a40f931aeffc206a0d29a3f8be1141}{tracked\+\_\+devices}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This header file belongs to the \hyperlink{pcap-thread_8c}{pcap-\/thread.\+c} file. 

\begin{DoxyAuthor}{Author}
Zeufack Arnel -\/ Member of an L\+O53 group-\/project (Other Members\+: T\+O\+N\+Y D\+U\+O\+N\+G -\/ Y\+V\+O\+N M\+B\+O\+U\+G\+U\+E\+M -\/ J\+O\+E\+L W\+A\+B\+O) 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
15 Juin 2016
\end{DoxyDate}
It describes the prototypes of the functions used in \hyperlink{pcap-thread_8c}{pcap-\/thread.\+c} 

\subsection{Macro Definition Documentation}
\hypertarget{pcap-thread_8h_afd932992b0afe0ee3014a55ceace90c7}{}\index{pcap-\/thread.\+h@{pcap-\/thread.\+h}!M\+A\+X\+\_\+\+L\+O\+G\+\_\+\+F\+I\+L\+E\+\_\+\+S\+I\+Z\+E@{M\+A\+X\+\_\+\+L\+O\+G\+\_\+\+F\+I\+L\+E\+\_\+\+S\+I\+Z\+E}}
\index{M\+A\+X\+\_\+\+L\+O\+G\+\_\+\+F\+I\+L\+E\+\_\+\+S\+I\+Z\+E@{M\+A\+X\+\_\+\+L\+O\+G\+\_\+\+F\+I\+L\+E\+\_\+\+S\+I\+Z\+E}!pcap-\/thread.\+h@{pcap-\/thread.\+h}}
\subsubsection[{M\+A\+X\+\_\+\+L\+O\+G\+\_\+\+F\+I\+L\+E\+\_\+\+S\+I\+Z\+E}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\+A\+X\+\_\+\+L\+O\+G\+\_\+\+F\+I\+L\+E\+\_\+\+S\+I\+Z\+E~12}\label{pcap-thread_8h_afd932992b0afe0ee3014a55ceace90c7}


\subsection{Function Documentation}
\hypertarget{pcap-thread_8h_aa7fbc627d49703073084fc66e79ef7c0}{}\index{pcap-\/thread.\+h@{pcap-\/thread.\+h}!Clear\+Outdated\+Values@{Clear\+Outdated\+Values}}
\index{Clear\+Outdated\+Values@{Clear\+Outdated\+Values}!pcap-\/thread.\+h@{pcap-\/thread.\+h}}
\subsubsection[{Clear\+Outdated\+Values}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ Clear\+Outdated\+Values (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{pcap-thread_8h_aa7fbc627d49703073084fc66e79ef7c0}


execute the Clear\+Outdated\+Values thread 


\begin{DoxyParams}{Parameters}
{\em data} & it is N\+U\+L\+L in reallity \\
\hline
\end{DoxyParams}
\hypertarget{pcap-thread_8h_af7e8fb860db3c87ed3bec362216a5c7c}{}\index{pcap-\/thread.\+h@{pcap-\/thread.\+h}!get\+\_\+ap\+\_\+mac@{get\+\_\+ap\+\_\+mac}}
\index{get\+\_\+ap\+\_\+mac@{get\+\_\+ap\+\_\+mac}!pcap-\/thread.\+h@{pcap-\/thread.\+h}}
\subsubsection[{get\+\_\+ap\+\_\+mac}]{\setlength{\rightskip}{0pt plus 5cm}void get\+\_\+ap\+\_\+mac (
\begin{DoxyParamCaption}
\item[{u\+\_\+char $\ast$$\ast$}]{mac, }
\item[{char $\ast$}]{interface}
\end{DoxyParamCaption}
)}\label{pcap-thread_8h_af7e8fb860db3c87ed3bec362216a5c7c}


gets the waypoint wifi mac address 


\begin{DoxyParams}{Parameters}
{\em mac} & a string which will contain the founded mac address \\
\hline
{\em interface} & the interface of the wifi \\
\hline
\end{DoxyParams}
\hypertarget{pcap-thread_8h_aa6cca3d417df0d64edcfbfaa2f445aab}{}\index{pcap-\/thread.\+h@{pcap-\/thread.\+h}!pcap\+\_\+function@{pcap\+\_\+function}}
\index{pcap\+\_\+function@{pcap\+\_\+function}!pcap-\/thread.\+h@{pcap-\/thread.\+h}}
\subsubsection[{pcap\+\_\+function}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ pcap\+\_\+function (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{arg}
\end{DoxyParamCaption}
)}\label{pcap-thread_8h_aa6cca3d417df0d64edcfbfaa2f445aab}


execute the pcap\+\_\+function thread 


\begin{DoxyParams}{Parameters}
{\em arg} & it is the interface of the waypoint used to sniff the traffic \\
\hline
\end{DoxyParams}
\hypertarget{pcap-thread_8h_a70cd3fb82216b3537d8691fcbd6dee10}{}\index{pcap-\/thread.\+h@{pcap-\/thread.\+h}!samples\+\_\+log\+\_\+size@{samples\+\_\+log\+\_\+size}}
\index{samples\+\_\+log\+\_\+size@{samples\+\_\+log\+\_\+size}!pcap-\/thread.\+h@{pcap-\/thread.\+h}}
\subsubsection[{samples\+\_\+log\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}int samples\+\_\+log\+\_\+size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{pcap-thread_8h_a70cd3fb82216b3537d8691fcbd6dee10}


get the size of the samples log file 

\begin{DoxyReturn}{Returns}
it returns the file size in Kb 
\end{DoxyReturn}
\hypertarget{pcap-thread_8h_a80533e12c13720352712455e86eac14d}{}\index{pcap-\/thread.\+h@{pcap-\/thread.\+h}!tcpdump\+\_\+function@{tcpdump\+\_\+function}}
\index{tcpdump\+\_\+function@{tcpdump\+\_\+function}!pcap-\/thread.\+h@{pcap-\/thread.\+h}}
\subsubsection[{tcpdump\+\_\+function}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ tcpdump\+\_\+function (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{pcap-thread_8h_a80533e12c13720352712455e86eac14d}


execute the tcpdump\+\_\+function thread 


\begin{DoxyParams}{Parameters}
{\em arg} & it is the interface of the waypoint used in the program \\
\hline
\end{DoxyParams}


\subsection{Variable Documentation}
\hypertarget{pcap-thread_8h_ae9a40f931aeffc206a0d29a3f8be1141}{}\index{pcap-\/thread.\+h@{pcap-\/thread.\+h}!tracked\+\_\+devices@{tracked\+\_\+devices}}
\index{tracked\+\_\+devices@{tracked\+\_\+devices}!pcap-\/thread.\+h@{pcap-\/thread.\+h}}
\subsubsection[{tracked\+\_\+devices}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Element}$\ast$ tracked\+\_\+devices}\label{pcap-thread_8h_ae9a40f931aeffc206a0d29a3f8be1141}