\hypertarget{ng__eiface_8h_source}{}\doxysection{ng\+\_\+eiface.\+h}
\label{ng__eiface_8h_source}\index{netgraph/ng\_eiface.h@{netgraph/ng\_eiface.h}}
\mbox{\hyperlink{ng__eiface_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00001}00001 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00002}00002 \textcolor{comment}{ * ng\_eiface.h}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00003}00003 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00004}00004 }
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00005}00005 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00006}00006 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/FreeBSD}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00007}00007 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00008}00008 \textcolor{comment}{ * Copyright (c) 1999-\/2001, Vitaly V Belekhov}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00009}00009 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00010}00010 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00011}00011 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00012}00012 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00013}00013 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00014}00014 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00015}00015 \textcolor{comment}{ *    notice unmodified, this list of conditions, and the following}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00016}00016 \textcolor{comment}{ *    disclaimer.}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00017}00017 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00018}00018 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00019}00019 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00020}00020 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00021}00021 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00022}00022 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00023}00023 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00024}00024 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00025}00025 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00026}00026 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00027}00027 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00028}00028 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00029}00029 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00030}00030 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00031}00031 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00032}00032 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00033}00033 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00034}00034 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00035}00035 }
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00036}00036 \textcolor{preprocessor}{\#ifndef \_NETGRAPH\_NG\_EIFACE\_H\_}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00037}00037 \textcolor{preprocessor}{\#define \_NETGRAPH\_NG\_EIFACE\_H\_}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00038}00038 }
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00039}00039 \textcolor{comment}{/* Node type name and magic cookie */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00040}\mbox{\hyperlink{ng__eiface_8h_a667c4a24ee8ba24832c47d7e23963e0a}{00040}} \textcolor{preprocessor}{\#define NG\_EIFACE\_NODE\_TYPE             "{}eiface"{}}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00041}\mbox{\hyperlink{ng__eiface_8h_a3abd29232a520f74fd8cf5a52f062e2f}{00041}} \textcolor{preprocessor}{\#define NGM\_EIFACE\_COOKIE               948105892}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00042}00042 }
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00043}00043 \textcolor{comment}{/* Interface base name */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00044}\mbox{\hyperlink{ng__eiface_8h_ac044a402463685a14ac211097daf12c1}{00044}} \textcolor{preprocessor}{\#define NG\_EIFACE\_EIFACE\_NAME           "{}ngeth"{}}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00045}00045 }
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00046}00046 \textcolor{comment}{/* My hook names */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00047}\mbox{\hyperlink{ng__eiface_8h_a5d8171c6b3187ea79614f41cf7071488}{00047}} \textcolor{preprocessor}{\#define NG\_EIFACE\_HOOK\_ETHER            "{}ether"{}}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00048}00048 }
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00049}00049 \textcolor{comment}{/* MTU bounds */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00050}\mbox{\hyperlink{ng__eiface_8h_a45d39aade0adcea67705a5aaf75d6054}{00050}} \textcolor{preprocessor}{\#define NG\_EIFACE\_MTU\_MIN               72}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00051}\mbox{\hyperlink{ng__eiface_8h_a0adb27e9722cba1272e96613a3050c69}{00051}} \textcolor{preprocessor}{\#define NG\_EIFACE\_MTU\_MAX               ETHER\_MAX\_LEN\_JUMBO}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00052}\mbox{\hyperlink{ng__eiface_8h_a8dda705dda2499226a31e05b2cf47904}{00052}} \textcolor{preprocessor}{\#define NG\_EIFACE\_MTU\_DEFAULT           1500}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00053}00053 }
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00054}00054 \textcolor{comment}{/* Netgraph commands */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00055}00055 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00056}\mbox{\hyperlink{ng__eiface_8h_a1f9aebf1de3ebbf4283a4dcf73308562a077820451937c54c9962e729adb4ae6b}{00056}}         \mbox{\hyperlink{ng__eiface_8h_a1f9aebf1de3ebbf4283a4dcf73308562a077820451937c54c9962e729adb4ae6b}{NGM\_EIFACE\_GET\_IFNAME}} = 1, \textcolor{comment}{/* get the interface name */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00057}\mbox{\hyperlink{ng__eiface_8h_a1f9aebf1de3ebbf4283a4dcf73308562a47f7a21618227d90f1a967f6199b4471}{00057}}         \mbox{\hyperlink{ng__eiface_8h_a1f9aebf1de3ebbf4283a4dcf73308562a47f7a21618227d90f1a967f6199b4471}{NGM\_EIFACE\_GET\_IFADDRS}},           \textcolor{comment}{/* returns list of addresses */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00058}\mbox{\hyperlink{ng__eiface_8h_a1f9aebf1de3ebbf4283a4dcf73308562a7647df6ea3d0ba373bc2e60bf4746498}{00058}}         \mbox{\hyperlink{ng__eiface_8h_a1f9aebf1de3ebbf4283a4dcf73308562a7647df6ea3d0ba373bc2e60bf4746498}{NGM\_EIFACE\_SET}},                   \textcolor{comment}{/* set ethernet address */}}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00059}00059 \};}
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00060}00060 }
\DoxyCodeLine{\Hypertarget{ng__eiface_8h_source_l00061}00061 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_NETGRAPH\_NG\_EIFACE\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
