\hypertarget{ng__vjc_8h_source}{}\doxysection{ng\+\_\+vjc.\+h}
\label{ng__vjc_8h_source}\index{netgraph/ng\_vjc.h@{netgraph/ng\_vjc.h}}
\mbox{\hyperlink{ng__vjc_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00001}00001 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00002}00002 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00003}00003 \textcolor{comment}{ * ng\_vjc.h}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00004}00004 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00005}00005 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00006}00006 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00007}00007 \textcolor{comment}{ * Copyright (c) 1996-\/1999 Whistle Communications, Inc.}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00008}00008 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00009}00009 \textcolor{comment}{ * }}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00010}00010 \textcolor{comment}{ * Subject to the following obligations and disclaimer of warranty, use and}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00011}00011 \textcolor{comment}{ * redistribution of this software, in source or object code forms, with or}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00012}00012 \textcolor{comment}{ * without modifications are expressly permitted by Whistle Communications;}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00013}00013 \textcolor{comment}{ * provided, however, that:}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00014}00014 \textcolor{comment}{ * 1. Any and all reproductions of the source or object code must include the}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00015}00015 \textcolor{comment}{ *    copyright notice above and the following disclaimer of warranties; and}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00016}00016 \textcolor{comment}{ * 2. No rights are granted, in any manner or form, to use Whistle}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00017}00017 \textcolor{comment}{ *    Communications, Inc. trademarks, including the mark "{}WHISTLE}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00018}00018 \textcolor{comment}{ *    COMMUNICATIONS"{} on advertising, endorsements, or otherwise except as}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00019}00019 \textcolor{comment}{ *    such appears in the above copyright notice or in the software.}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00020}00020 \textcolor{comment}{ * }}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00021}00021 \textcolor{comment}{ * THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "{}AS IS"{}, AND}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00022}00022 \textcolor{comment}{ * TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00023}00023 \textcolor{comment}{ * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00024}00024 \textcolor{comment}{ * INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00025}00025 \textcolor{comment}{ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-\/INFRINGEMENT.}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00026}00026 \textcolor{comment}{ * WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00027}00027 \textcolor{comment}{ * REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00028}00028 \textcolor{comment}{ * SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00029}00029 \textcolor{comment}{ * IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00030}00030 \textcolor{comment}{ * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00031}00031 \textcolor{comment}{ * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00032}00032 \textcolor{comment}{ * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00033}00033 \textcolor{comment}{ * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00034}00034 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00035}00035 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00036}00036 \textcolor{comment}{ * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00037}00037 \textcolor{comment}{ * OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00038}00038 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00039}00039 \textcolor{comment}{ * Author: Archie Cobbs <archie@freebsd.org>}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00040}00040 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00041}00041 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00042}00042 \textcolor{comment}{ * \$Whistle: ng\_vjc.h,v 1.6 1999/01/25 02:40:22 archie Exp \$}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00043}00043 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00045}00045 \textcolor{preprocessor}{\#ifndef \_NETGRAPH\_NG\_VJC\_H\_}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00046}00046 \textcolor{preprocessor}{\#define \_NETGRAPH\_NG\_VJC\_H\_}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00047}00047 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00048}00048  \textcolor{comment}{/* Node type name and magic cookie */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00049}\mbox{\hyperlink{ng__vjc_8h_a72956c3d3a8624cef2e849bccbb7af31}{00049}} \textcolor{preprocessor}{\#define NG\_VJC\_NODE\_TYPE        "{}vjc"{}}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00050}\mbox{\hyperlink{ng__vjc_8h_aae68b2399b74ec45f44c568066f2c10b}{00050}} \textcolor{preprocessor}{\#define NGM\_VJC\_COOKIE          868219210}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00051}00051 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00052}00052  \textcolor{comment}{/* Hook names */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00053}\mbox{\hyperlink{ng__vjc_8h_a5427fc83cfda7fd2aab03fd97a2d2d27}{00053}} \textcolor{preprocessor}{\#define NG\_VJC\_HOOK\_IP          "{}ip"{}}            \textcolor{comment}{/* normal IP traffic */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00054}\mbox{\hyperlink{ng__vjc_8h_a17c86632400eaefebbddadb5c6413ee2}{00054}} \textcolor{preprocessor}{\#define NG\_VJC\_HOOK\_VJCOMP      "{}vjcomp"{}}        \textcolor{comment}{/* compressed TCP */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00055}\mbox{\hyperlink{ng__vjc_8h_a857544fd5ca631b10ee317b55729d50b}{00055}} \textcolor{preprocessor}{\#define NG\_VJC\_HOOK\_VJUNCOMP    "{}vjuncomp"{}}      \textcolor{comment}{/* uncompressed TCP */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00056}\mbox{\hyperlink{ng__vjc_8h_a9c6e703d2220d2692c5febf29aad0b07}{00056}} \textcolor{preprocessor}{\#define NG\_VJC\_HOOK\_VJIP        "{}vjip"{}}          \textcolor{comment}{/* uncompressed IP */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00057}00057 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00058}00058  \textcolor{comment}{/* Minimum and maximum number of compression channels */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00059}\mbox{\hyperlink{ng__vjc_8h_ae1a7b42a47f15517b6557b05ff873367}{00059}} \textcolor{preprocessor}{\#define NG\_VJC\_MIN\_CHANNELS     4}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00060}\mbox{\hyperlink{ng__vjc_8h_aadf85aa984965b841b6adfeb903cdd54}{00060}} \textcolor{preprocessor}{\#define NG\_VJC\_MAX\_CHANNELS     16}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00061}00061 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00062}00062  \textcolor{comment}{/* Configure struct */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00063}\mbox{\hyperlink{structngm__vjc__config}{00063}} \textcolor{keyword}{struct }\mbox{\hyperlink{structngm__vjc__config}{ngm\_vjc\_config}} \{}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00064}\mbox{\hyperlink{structngm__vjc__config_ad47a1553877ba55583c2b343b02f0125}{00064}}         u\_char  \mbox{\hyperlink{structngm__vjc__config_ad47a1553877ba55583c2b343b02f0125}{enableComp}};   \textcolor{comment}{/* Enable compression */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00065}\mbox{\hyperlink{structngm__vjc__config_a08d4363bab933f96445e3fbd6d460fb3}{00065}}         u\_char  \mbox{\hyperlink{structngm__vjc__config_a08d4363bab933f96445e3fbd6d460fb3}{enableDecomp}};       \textcolor{comment}{/* Enable decompression */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00066}\mbox{\hyperlink{structngm__vjc__config_a06d86b6475a7499b17598443219d7585}{00066}}         u\_char  \mbox{\hyperlink{structngm__vjc__config_a06d86b6475a7499b17598443219d7585}{maxChannel}};   \textcolor{comment}{/* Number of compression channels -\/ 1 */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00067}\mbox{\hyperlink{structngm__vjc__config_af76c3bb5131cec8e444df8122a86e458}{00067}}         u\_char  \mbox{\hyperlink{structngm__vjc__config_af76c3bb5131cec8e444df8122a86e458}{compressCID}}; \textcolor{comment}{/* OK to compress outgoing CID's */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00068}00068 \};}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00069}00069 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00070}00070 \textcolor{comment}{/* Keep this in sync with the above structure definition */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00071}\mbox{\hyperlink{ng__vjc_8h_a99adc822e1a827edbd50f8612dd6cfdb}{00071}} \textcolor{preprocessor}{\#define NG\_VJC\_CONFIG\_TYPE\_INFO \{                               \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00072}00072 \textcolor{preprocessor}{          \{ "{}enableComp"{}},       \&ng\_parse\_uint8\_type    \},      \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00073}00073           \{ "{}enableDecomp"{},     \&ng\_parse\_uint8\_type    \},      \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00074}00074           \{ "{}maxChannel"{},       \&ng\_parse\_uint8\_type    \},      \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00075}00075           \{ "{}compressCID"{},      \&ng\_parse\_uint8\_type    \},      \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00076}00076           \{ NULL \}                                              \(\backslash\)}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00077}00077 \}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00078}00078 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00079}00079  \textcolor{comment}{/* Netgraph commands */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00080}00080 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00081}\mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baa7bd0f5b035fa66a54efbe3931b6e0ee7}{00081}}         \mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baa7bd0f5b035fa66a54efbe3931b6e0ee7}{NGM\_VJC\_SET\_CONFIG}},   \textcolor{comment}{/* Supply a struct ngm\_vjc\_config */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00082}\mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baa8422d1de1ec5bf595af28f60fa4da8e9}{00082}}         \mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baa8422d1de1ec5bf595af28f60fa4da8e9}{NGM\_VJC\_GET\_CONFIG}},   \textcolor{comment}{/* Returns a struct ngm\_vjc\_config */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00083}\mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baaca265c1b7dce064d0979cc5396127023}{00083}}         \mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baaca265c1b7dce064d0979cc5396127023}{NGM\_VJC\_GET\_STATE}},     \textcolor{comment}{/* Returns current struct slcompress */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00084}\mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baa3c9d28523a8c0899ed4bd843fe81b354}{00084}}         \mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baa3c9d28523a8c0899ed4bd843fe81b354}{NGM\_VJC\_CLR\_STATS}},     \textcolor{comment}{/* Clears statistics counters */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00085}\mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baac5de2ace8be517a516e0204f95c52ac1}{00085}}         \mbox{\hyperlink{ng__vjc_8h_a550cb4231d535863c55643bbd2d3c6baac5de2ace8be517a516e0204f95c52ac1}{NGM\_VJC\_RECV\_ERROR}},   \textcolor{comment}{/* Indicate loss of incoming frame */}}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00086}00086 \};}
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00087}00087 }
\DoxyCodeLine{\Hypertarget{ng__vjc_8h_source_l00088}00088 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_NETGRAPH\_NG\_VJC\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
