\doxysection{rtrlib/lib/ip.h File Reference}
\hypertarget{ip_8h}{}\label{ip_8h}\index{rtrlib/lib/ip.h@{rtrlib/lib/ip.h}}
{\ttfamily \#include "{}rtrlib/lib/ipv4.\+h"{}}\newline
{\ttfamily \#include "{}rtrlib/lib/ipv6.\+h"{}}\newline
{\ttfamily \#include $<$stdbool.\+h$>$}\newline
\doxysubsubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr}}
\begin{DoxyCompactList}\small\item\em The \doxylink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr} struct stores a IPv4 or IPv6 address in host byte order. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{group__util__h_gab1e0d2320694c34806cabed231e00f4d}{lrtr\+\_\+ip\+\_\+version}} \{ \mbox{\hyperlink{group__util__h_ggab1e0d2320694c34806cabed231e00f4dad94652cc34a88a9ef29ca697e3a17952}{LRTR\+\_\+\+IPV4}}
, \mbox{\hyperlink{group__util__h_ggab1e0d2320694c34806cabed231e00f4da0bab871ffd3fb06fad7acdaecea1c42c}{LRTR\+\_\+\+IPV6}}
 \}
\begin{DoxyCompactList}\small\item\em Version of the IP protocol. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{group__util__h_ga01be4a9d17952175d50b298aad7b9479}{lrtr\+\_\+ip\+\_\+addr\+\_\+to\+\_\+str}} (const struct \mbox{\hyperlink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr}} \texorpdfstring{$\ast$}{*}ip, char \texorpdfstring{$\ast$}{*}str, const unsigned int \mbox{\hyperlink{rtr__pdus_8h_a96bbf959016e4411c9e6b9812a8be60a}{len}})
\begin{DoxyCompactList}\small\item\em Converts the passed \doxylink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr} struct to string representation. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__util__h_gac667b04e3b155ebc6bebb983e99decb6}{lrtr\+\_\+ip\+\_\+str\+\_\+to\+\_\+addr}} (const char \texorpdfstring{$\ast$}{*}str, struct \mbox{\hyperlink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr}} \texorpdfstring{$\ast$}{*}ip)
\begin{DoxyCompactList}\small\item\em Converts the passed IP address in string representation to an \doxylink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr}. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{group__util__h_ga6b25b2ae306cf374df18044190b04793}{lrtr\+\_\+ip\+\_\+addr\+\_\+equal}} (const struct \mbox{\hyperlink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr}} a, const struct \mbox{\hyperlink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr}} b)
\begin{DoxyCompactList}\small\item\em Checks if two \doxylink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr} structs are equal. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{group__util__h_ga9a31d2cd8a621a77681fb4aa86d2c2b5}{lrtr\+\_\+ip\+\_\+str\+\_\+cmp}} (const struct \mbox{\hyperlink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr}} \texorpdfstring{$\ast$}{*}addr1, const char \texorpdfstring{$\ast$}{*}addr2)
\begin{DoxyCompactList}\small\item\em Compares addr1 in the \doxylink{structlrtr__ip__addr}{lrtr\+\_\+ip\+\_\+addr} struct with addr2 in string representation. \end{DoxyCompactList}\end{DoxyCompactItemize}
