\doxysection{src/core/macaddr.c File Reference}
\label{macaddr_8c}\index{src/core/macaddr.c@{src/core/macaddr.c}}


MAC address utility routines.  


{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\newline
{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$unistd.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$sys/ioctl.\+h$>$}\newline
{\ttfamily \#include $<$net/if.\+h$>$}\newline
{\ttfamily \#include $<$netinet/in.\+h$>$}\newline
{\ttfamily \#include $<$netinet/ip.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ osmo\+\_\+macaddr\+\_\+parse} (uint8\+\_\+t $\ast$out, const char $\ast$in)
\begin{DoxyCompactList}\small\item\em Parse a MAC address from human-\/readable notation This function parses an ethernet MAC address in the commonly-\/used hex/colon notation (00\+:00\+:00\+:00\+:00\+:00) and generates the binary representation from it. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+get\+\_\+macaddr} (uint8\+\_\+t $\ast$mac\+\_\+out, const char $\ast$dev\+\_\+name)
\begin{DoxyCompactList}\small\item\em Obtain the MAC address of a given network device. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
MAC address utility routines. 

