
\begin{DoxyItemize}
\item infos = Information about the ipaddr plugin is in keys below
\item infos/author = Thomas Waser \href{mailto:thomas.waser@libelektra.org}{\tt thomas.\+waser@libelektra.\+org}
\item infos/licence = B\+SD
\item infos/needs =
\item infos/provides = check
\item infos/recommends =
\item infos/placements = presetstorage
\item infos/status = maintained unittest nodep
\item infos/metadata = check/ipaddr
\item infos/description = Validation for IP addresses
\end{DoxyItemize}\hypertarget{autotoc_md287_src_plugins_ipaddr_README_md}{}\section{I\+P Address Validation}\label{autotoc_md287_src_plugins_ipaddr_README_md}
\hypertarget{autotoc_md287_autotoc_md288}{}\subsection{Introduction}\label{autotoc_md287_autotoc_md288}
This plugin validates IP addresses using regular expressions.\hypertarget{autotoc_md287_autotoc_md289}{}\subsection{Usage}\label{autotoc_md287_autotoc_md289}
``{\ttfamily  @section autotoc\+\_\+md290 Mount}ipaddr{\ttfamily plugin to cascading namespace}/tests/ipaddr` kdb mount config.\+dump /tests/ipaddr dump ipaddr\hypertarget{autotoc_md287_autotoc_md291}{}\section{Check the validity of the I\+P stored in `/tests/ipaddr/ipv4`}\label{autotoc_md287_autotoc_md291}
kdb meta-\/set /tests/ipaddr/ipv4 check/ipaddr ipv4\hypertarget{autotoc_md287_autotoc_md292}{}\section{Try to set an incorrect I\+P address}\label{autotoc_md287_autotoc_md292}
kdb set /tests/ipaddr/ipv4 127.\+0.\+0.\+1337 \hypertarget{autotoc_md287_autotoc_md293}{}\section{S\+T\+D\+E\+R\+R\+: .$\ast$\+Validation Semantic.$\ast$}\label{autotoc_md287_autotoc_md293}
\hypertarget{autotoc_md287_autotoc_md294}{}\section{E\+R\+R\+O\+R\+:  C03200}\label{autotoc_md287_autotoc_md294}
\hypertarget{autotoc_md287_autotoc_md295}{}\section{R\+E\+T\+:    5}\label{autotoc_md287_autotoc_md295}
\hypertarget{autotoc_md287_autotoc_md296}{}\section{Set a correct I\+Pv4 address}\label{autotoc_md287_autotoc_md296}
kdb set /tests/ipaddr/ipv4 127.\+0.\+0.\+1 kdb get /tests/ipaddr/ipv4 \#$>$ 127.\+0.\+0.\+1\hypertarget{autotoc_md287_autotoc_md297}{}\section{By default the plugin allows both I\+Pv4 and I\+Pv6 addresses}\label{autotoc_md287_autotoc_md297}
kdb meta-\/set /tests/ipaddr/address check/ipaddr \char`\"{}\char`\"{}\hypertarget{autotoc_md287_autotoc_md298}{}\section{Set correct I\+P addresses}\label{autotoc_md287_autotoc_md298}
kdb set /tests/ipaddr/address 1.\+2.\+3.\+4 kdb set /tests/ipaddr/address \+:\+:1\hypertarget{autotoc_md287_autotoc_md299}{}\section{Try to set incorrect addresses}\label{autotoc_md287_autotoc_md299}
kdb set /tests/ipaddr/address bad\+::ip \hypertarget{autotoc_md287_autotoc_md300}{}\section{R\+E\+T\+: 5}\label{autotoc_md287_autotoc_md300}
kdb set /tests/ipaddr/address 1.\+2.-\/3.\+4 \hypertarget{autotoc_md287_autotoc_md301}{}\section{R\+E\+T\+: 5}\label{autotoc_md287_autotoc_md301}
\hypertarget{autotoc_md287_autotoc_md302}{}\section{Undo modifications to the database}\label{autotoc_md287_autotoc_md302}
kdb rm -\/r /tests/ipaddr kdb umount /tests/ipaddr ```\hypertarget{autotoc_md287_autotoc_md303}{}\subsection{Limitations}\label{autotoc_md287_autotoc_md303}
The plugin only checks IP addresses for validity. It is not able to resolve hostnames. If you are looking for a plugin that supports hostnames, check out the \hyperlink{autotoc_md453_src_plugins_network_README_md}{network plugin}. 