\hypertarget{ng__cisco_8h_source}{}\doxysection{ng\+\_\+cisco.\+h}
\label{ng__cisco_8h_source}\index{netgraph/ng\_cisco.h@{netgraph/ng\_cisco.h}}
\mbox{\hyperlink{ng__cisco_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00001}00001 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00002}00002 \textcolor{comment}{ * ng\_cisco.h}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00003}00003 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00004}00004 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00005}00005 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00006}00006 \textcolor{comment}{ * Copyright (c) 1996-\/1999 Whistle Communications, Inc.}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00007}00007 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00008}00008 \textcolor{comment}{ * }}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00009}00009 \textcolor{comment}{ * Subject to the following obligations and disclaimer of warranty, use and}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00010}00010 \textcolor{comment}{ * redistribution of this software, in source or object code forms, with or}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00011}00011 \textcolor{comment}{ * without modifications are expressly permitted by Whistle Communications;}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00012}00012 \textcolor{comment}{ * provided, however, that:}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00013}00013 \textcolor{comment}{ * 1. Any and all reproductions of the source or object code must include the}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00014}00014 \textcolor{comment}{ *    copyright notice above and the following disclaimer of warranties; and}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00015}00015 \textcolor{comment}{ * 2. No rights are granted, in any manner or form, to use Whistle}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00016}00016 \textcolor{comment}{ *    Communications, Inc. trademarks, including the mark "{}WHISTLE}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00017}00017 \textcolor{comment}{ *    COMMUNICATIONS"{} on advertising, endorsements, or otherwise except as}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00018}00018 \textcolor{comment}{ *    such appears in the above copyright notice or in the software.}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00019}00019 \textcolor{comment}{ * }}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00020}00020 \textcolor{comment}{ * THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "{}AS IS"{}, AND}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00021}00021 \textcolor{comment}{ * TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00022}00022 \textcolor{comment}{ * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00023}00023 \textcolor{comment}{ * INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00024}00024 \textcolor{comment}{ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-\/INFRINGEMENT.}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00025}00025 \textcolor{comment}{ * WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00026}00026 \textcolor{comment}{ * REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00027}00027 \textcolor{comment}{ * SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00028}00028 \textcolor{comment}{ * IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00029}00029 \textcolor{comment}{ * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00030}00030 \textcolor{comment}{ * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00031}00031 \textcolor{comment}{ * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00032}00032 \textcolor{comment}{ * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00033}00033 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00034}00034 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00035}00035 \textcolor{comment}{ * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00036}00036 \textcolor{comment}{ * OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00037}00037 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00038}00038 \textcolor{comment}{ * Author: Archie Cobbs <archie@freebsd.org>}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00039}00039 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00040}00040 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00041}00041 \textcolor{comment}{ * \$Whistle: ng\_cisco.h,v 1.6 1999/01/25 01:21:48 archie Exp \$}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00042}00042 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00044}00044 \textcolor{preprocessor}{\#ifndef \_NETGRAPH\_NG\_CISCO\_H\_}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00045}00045 \textcolor{preprocessor}{\#define \_NETGRAPH\_NG\_CISCO\_H\_}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00047}00047 \textcolor{comment}{/* Node type name and magic cookie */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00048}\mbox{\hyperlink{ng__cisco_8h_acb9ab5e96fa2b3deca95cbd5cf94adc7}{00048}} \textcolor{preprocessor}{\#define NG\_CISCO\_NODE\_TYPE              "{}cisco"{}}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00049}\mbox{\hyperlink{ng__cisco_8h_a340e50a672f788c298bb2eb090746acc}{00049}} \textcolor{preprocessor}{\#define NGM\_CISCO\_COOKIE                860707227}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00050}00050 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00051}00051 \textcolor{comment}{/* Hook names */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00052}\mbox{\hyperlink{ng__cisco_8h_a106c03cbb765473e5bf0bb42ae013740}{00052}} \textcolor{preprocessor}{\#define NG\_CISCO\_HOOK\_DOWNSTREAM        "{}downstream"{}}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00053}\mbox{\hyperlink{ng__cisco_8h_a6b23275a6877084a0478b684e766da46}{00053}} \textcolor{preprocessor}{\#define NG\_CISCO\_HOOK\_INET              "{}inet"{}}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00054}\mbox{\hyperlink{ng__cisco_8h_a5a1d0c98b5aa95e94e2df7d05073e651}{00054}} \textcolor{preprocessor}{\#define NG\_CISCO\_HOOK\_INET6             "{}inet6"{}}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00055}\mbox{\hyperlink{ng__cisco_8h_aa50ba57d03ba37dbde2f74f4c4f91970}{00055}} \textcolor{preprocessor}{\#define NG\_CISCO\_HOOK\_APPLETALK         "{}atalk"{}}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00056}\mbox{\hyperlink{ng__cisco_8h_ab6e269352e21ef961bd51ba3123c3083}{00056}} \textcolor{preprocessor}{\#define NG\_CISCO\_HOOK\_IPX               "{}ipx"{}}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00057}\mbox{\hyperlink{ng__cisco_8h_a36d1ed7313c3fb08218d83eccba26f92}{00057}} \textcolor{preprocessor}{\#define NG\_CISCO\_HOOK\_DEBUG             "{}debug"{}}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00058}00058 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00059}00059 \textcolor{comment}{/* Netgraph commands */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00060}00060 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00061}\mbox{\hyperlink{ng__cisco_8h_a96a58e29e8dbf2b5bdeb775cba46556ea810f4cc4c798f161dab1ec2c65720959}{00061}}         \mbox{\hyperlink{ng__cisco_8h_a96a58e29e8dbf2b5bdeb775cba46556ea810f4cc4c798f161dab1ec2c65720959}{NGM\_CISCO\_SET\_IPADDR}} = 1,   \textcolor{comment}{/* requires a struct ng\_cisco\_ipaddr */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00062}\mbox{\hyperlink{ng__cisco_8h_a96a58e29e8dbf2b5bdeb775cba46556ea31fcd493a3d914b833cc117dc998385b}{00062}}         \mbox{\hyperlink{ng__cisco_8h_a96a58e29e8dbf2b5bdeb775cba46556ea31fcd493a3d914b833cc117dc998385b}{NGM\_CISCO\_GET\_IPADDR}},               \textcolor{comment}{/* returns a struct ng\_cisco\_ipaddr */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00063}\mbox{\hyperlink{ng__cisco_8h_a96a58e29e8dbf2b5bdeb775cba46556ea966c49cf793365f30a0e947de2c7c1a0}{00063}}         \mbox{\hyperlink{ng__cisco_8h_a96a58e29e8dbf2b5bdeb775cba46556ea966c49cf793365f30a0e947de2c7c1a0}{NGM\_CISCO\_GET\_STATUS}},               \textcolor{comment}{/* returns a struct ng\_cisco\_stat */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00064}00064 \};}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00065}00065 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00066}\mbox{\hyperlink{structng__cisco__ipaddr}{00066}} \textcolor{keyword}{struct }\mbox{\hyperlink{structng__cisco__ipaddr}{ng\_cisco\_ipaddr}} \{}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00067}\mbox{\hyperlink{structng__cisco__ipaddr_acc5a97512b2f8958b2395e49d110d825}{00067}}         \textcolor{keyword}{struct }in\_addr  \mbox{\hyperlink{structng__cisco__ipaddr_acc5a97512b2f8958b2395e49d110d825}{ipaddr}};           \textcolor{comment}{/* IP address */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00068}\mbox{\hyperlink{structng__cisco__ipaddr_ad1fe09759ec854e72914f8a48a3b4f32}{00068}}         \textcolor{keyword}{struct }in\_addr  \mbox{\hyperlink{structng__cisco__ipaddr_ad1fe09759ec854e72914f8a48a3b4f32}{netmask}}; \textcolor{comment}{/* Netmask */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00069}00069 \};}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00070}00070 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00071}00071 \textcolor{comment}{/* Keep this in sync with the above structure definition */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00072}\mbox{\hyperlink{ng__cisco_8h_a64dc83f2a63f337869d68195da91d55b}{00072}} \textcolor{preprocessor}{\#define NG\_CISCO\_IPADDR\_TYPE\_INFO       \{                       \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00073}00073 \textcolor{preprocessor}{          \{ "{}ipaddr"{}},           \&ng\_parse\_ipaddr\_type   \},      \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00074}00074           \{ "{}netmask"{},          \&ng\_parse\_ipaddr\_type   \},      \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00075}00075           \{ NULL \}                                              \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00076}00076 \}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00077}00077 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00078}\mbox{\hyperlink{structng__cisco__stats}{00078}} \textcolor{keyword}{struct }\mbox{\hyperlink{structng__cisco__stats}{ng\_cisco\_stats}} \{}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00079}\mbox{\hyperlink{structng__cisco__stats_a9e541c4bf5fe8430dc3e7cbb83c08870}{00079}}         uint32\_t   \mbox{\hyperlink{structng__cisco__stats_a9e541c4bf5fe8430dc3e7cbb83c08870}{seqRetries}};                \textcolor{comment}{/* \# unack'd retries */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00080}\mbox{\hyperlink{structng__cisco__stats_ae1b12a1e26f2db46f42bb54aeeefca27}{00080}}         uint32\_t   \mbox{\hyperlink{structng__cisco__stats_ae1b12a1e26f2db46f42bb54aeeefca27}{keepAlivePeriod}};      \textcolor{comment}{/* in seconds */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00081}00081 \};}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00082}00082 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00083}00083 \textcolor{comment}{/* Keep this in sync with the above structure definition */}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00084}\mbox{\hyperlink{ng__cisco_8h_afbe60f2ec29a9c4941fb790522fb567f}{00084}} \textcolor{preprocessor}{\#define NG\_CISCO\_STATS\_TYPE\_INFO        \{                       \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00085}00085 \textcolor{preprocessor}{          \{ "{}seqRetries"{}},       \&ng\_parse\_uint32\_type   \},      \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00086}00086           \{ "{}keepAlivePeriod"{},  \&ng\_parse\_uint32\_type   \},      \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00087}00087           \{ NULL \}                                              \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00088}00088 \}}
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00089}00089 }
\DoxyCodeLine{\Hypertarget{ng__cisco_8h_source_l00090}00090 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_NETGRAPH\_NG\_CISCO\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
