-
Notifications
You must be signed in to change notification settings - Fork 17
/
chap_api_olsr.tex
49 lines (35 loc) · 1.73 KB
/
chap_api_olsr.tex
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
\section{Optimized Link State Routing (OLSR) Module}
OLSR is a proactive routing protocol for mobile ad-hoc networks
(MANETs). It is well suited to large and dense mobile
networks, as the optimization achieved using the MPRs works well in
this context. The larger and more dense a network, the more
optimization can be achieved as compared to the classic link state
algorithm. OLSR uses hop-by-hop routing, i.e., each node uses its
local information to route packets.
OLSR is well suited for networks, where the traffic is random and
sporadic between a larger set of nodes rather than being almost
exclusively between a small specific set of nodes. As a proactive
protocol, OLSR is also suitable for scenarios where the communicating
pairs change over time: no additional control traffic is generated in
this situation since routes are maintained for all known destinations
at all times. -- cfr. RFC3626
\subsection{pico\_olsr\_add}
\subsubsection*{Description}
This function will add the target device to the OLSR mechanism on the machine,
meaning that it will be possible to advertise and collect routing information
using Optimized Link State Routing protocol, as described in RFC3626, through the
target device.
In order to use multiple devices in the OLSR system, this function needs to be called
multiple times, once per device.
\subsubsection*{Function prototype}
\texttt{pico\_olsr\_add(struct pico\_device *dev);}
\subsubsection*{Parameters}
\begin{itemize}[noitemsep]
\item \texttt{dev} - a pointer to a struct \texttt{pico\_device} specifying the target interface.
\end{itemize}
\subsubsection*{Return value}
0 returned if the device is successfully added.
\subsubsection*{Example}
\begin{verbatim}
ret = pico_olsr_add(dev);
\end{verbatim}