\hypertarget{inet__ntoa_8c_source}{}\doxysection{inet\+\_\+ntoa.\+c}
\label{inet__ntoa_8c_source}\index{libkern/inet\_ntoa.c@{libkern/inet\_ntoa.c}}
\mbox{\hyperlink{inet__ntoa_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00002}00002 \textcolor{comment}{ * Copyright 1994, 1995 Massachusetts Institute of Technology}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00004}00004 \textcolor{comment}{ * Permission to use, copy, modify, and distribute this software and}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00005}00005 \textcolor{comment}{ * its documentation for any purpose and without fee is hereby}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00006}00006 \textcolor{comment}{ * granted, provided that both the above copyright notice and this}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00007}00007 \textcolor{comment}{ * permission notice appear in all copies, that both the above}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00008}00008 \textcolor{comment}{ * copyright notice and this permission notice appear in all}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00009}00009 \textcolor{comment}{ * supporting documentation, and that the name of M.I.T. not be used}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00010}00010 \textcolor{comment}{ * in advertising or publicity pertaining to distribution of the}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00011}00011 \textcolor{comment}{ * software without specific, written prior permission.  M.I.T. makes}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00012}00012 \textcolor{comment}{ * no representations about the suitability of this software for any}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00013}00013 \textcolor{comment}{ * purpose.  It is provided "{}as is"{} without express or implied}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00014}00014 \textcolor{comment}{ * warranty.}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00015}00015 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00016}00016 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''.  M.I.T. DISCLAIMS}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00017}00017 \textcolor{comment}{ * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE,}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00018}00018 \textcolor{comment}{ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00019}00019 \textcolor{comment}{ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00020}00020 \textcolor{comment}{ * SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00021}00021 \textcolor{comment}{ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00022}00022 \textcolor{comment}{ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00023}00023 \textcolor{comment}{ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00024}00024 \textcolor{comment}{ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00025}00025 \textcolor{comment}{ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00026}00026 \textcolor{comment}{ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00027}00027 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00028}00028 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00029}00029 }
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00030}00030 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00031}\mbox{\hyperlink{inet__ntoa_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00031}} \mbox{\hyperlink{inet__ntoa_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00033}00033 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00035}00035 }
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00036}00036 \textcolor{preprocessor}{\#include <netinet/in.h>}}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00037}00037 }
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00038}00038 \textcolor{keywordtype}{char} *}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00039}\mbox{\hyperlink{inet__ntoa_8c_a414fb65aab0daa3aa86c9d1f4e6e0985}{00039}} \mbox{\hyperlink{inet__ntoa_8c_a414fb65aab0daa3aa86c9d1f4e6e0985}{inet\_ntoa\_r}}(\textcolor{keyword}{struct} in\_addr ina, \textcolor{keywordtype}{char} *buf)}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00040}00040 \{}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00041}00041         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *ucp = (\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *)\&ina;}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00042}00042 }
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00043}00043         sprintf(buf, \textcolor{stringliteral}{"{}\%d.\%d.\%d.\%d"{}},}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00044}00044                 ucp[0] \& 0xff,}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00045}00045                 ucp[1] \& 0xff,}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00046}00046                 ucp[2] \& 0xff,}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00047}00047                 ucp[3] \& 0xff);}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00048}00048         \textcolor{keywordflow}{return} buf;}
\DoxyCodeLine{\Hypertarget{inet__ntoa_8c_source_l00049}00049 \}}

\end{DoxyCode}
