pcap-thread_8h.tex
7.44 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
\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}