\hypertarget{ng__mppc_8h_source}{}\doxysection{ng\+\_\+mppc.\+h}
\label{ng__mppc_8h_source}\index{netgraph/ng\_mppc.h@{netgraph/ng\_mppc.h}}
\mbox{\hyperlink{ng__mppc_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00001}00001 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00002}00002 \textcolor{comment}{ * ng\_mppc.h}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00003}00003 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00004}00004 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00005}00005 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00006}00006 \textcolor{comment}{ * Copyright (c) 1996-\/2000 Whistle Communications, Inc.}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00007}00007 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00008}00008 \textcolor{comment}{ * }}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00009}00009 \textcolor{comment}{ * Subject to the following obligations and disclaimer of warranty, use and}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00010}00010 \textcolor{comment}{ * redistribution of this software, in source or object code forms, with or}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00011}00011 \textcolor{comment}{ * without modifications are expressly permitted by Whistle Communications;}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00012}00012 \textcolor{comment}{ * provided, however, that:}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00013}00013 \textcolor{comment}{ * 1. Any and all reproductions of the source or object code must include the}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00014}00014 \textcolor{comment}{ *    copyright notice above and the following disclaimer of warranties; and}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00015}00015 \textcolor{comment}{ * 2. No rights are granted, in any manner or form, to use Whistle}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00016}00016 \textcolor{comment}{ *    Communications, Inc. trademarks, including the mark "{}WHISTLE}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00017}00017 \textcolor{comment}{ *    COMMUNICATIONS"{} on advertising, endorsements, or otherwise except as}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00018}00018 \textcolor{comment}{ *    such appears in the above copyright notice or in the software.}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00019}00019 \textcolor{comment}{ * }}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00020}00020 \textcolor{comment}{ * THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "{}AS IS"{}, AND}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00021}00021 \textcolor{comment}{ * TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00022}00022 \textcolor{comment}{ * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00023}00023 \textcolor{comment}{ * INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00024}00024 \textcolor{comment}{ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-\/INFRINGEMENT.}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00025}00025 \textcolor{comment}{ * WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00026}00026 \textcolor{comment}{ * REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00027}00027 \textcolor{comment}{ * SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00028}00028 \textcolor{comment}{ * IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00029}00029 \textcolor{comment}{ * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00030}00030 \textcolor{comment}{ * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00031}00031 \textcolor{comment}{ * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00032}00032 \textcolor{comment}{ * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00033}00033 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00034}00034 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00035}00035 \textcolor{comment}{ * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00036}00036 \textcolor{comment}{ * OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00037}00037 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00038}00038 \textcolor{comment}{ * Author: Archie Cobbs <archie@freebsd.org>}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00039}00039 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00040}00040 \textcolor{comment}{ * \$Whistle: ng\_mppc.h,v 1.3 2000/02/12 01:17:22 archie Exp \$}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00041}00041 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00042}00042 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00044}00044 \textcolor{preprocessor}{\#ifndef \_NETGRAPH\_NG\_MPPC\_H\_}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00045}00045 \textcolor{preprocessor}{\#define \_NETGRAPH\_NG\_MPPC\_H\_}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00047}00047 \textcolor{comment}{/* Node type name and magic cookie */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00048}\mbox{\hyperlink{ng__mppc_8h_af34f5c8c97b1c4e8a00b0bfcd5daeb43}{00048}} \textcolor{preprocessor}{\#define NG\_MPPC\_NODE\_TYPE       "{}mppc"{}}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00049}\mbox{\hyperlink{ng__mppc_8h_a2faa8083ce58ffca60efafc9a81a7c77}{00049}} \textcolor{preprocessor}{\#define NGM\_MPPC\_COOKIE         942886745}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00050}00050 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00051}00051 \textcolor{comment}{/* Hook names */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00052}\mbox{\hyperlink{ng__mppc_8h_a476eb0e91cece4030a3e59465fb2d36d}{00052}} \textcolor{preprocessor}{\#define NG\_MPPC\_HOOK\_COMP       "{}comp"{}}          \textcolor{comment}{/* compression hook */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00053}\mbox{\hyperlink{ng__mppc_8h_a3b77bb2b720d80c20766a716eda3d503}{00053}} \textcolor{preprocessor}{\#define NG\_MPPC\_HOOK\_DECOMP     "{}decomp"{}}        \textcolor{comment}{/* decompression hook */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00054}00054 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00055}00055 \textcolor{comment}{/* Length of MPPE key */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00056}\mbox{\hyperlink{ng__mppc_8h_aa8786c200eefab76c97e7a2fa4211977}{00056}} \textcolor{preprocessor}{\#define MPPE\_KEY\_LEN            16}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00057}00057 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00058}00058 \textcolor{comment}{/* Max expansion due to MPPC header and compression algorithm */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00059}\mbox{\hyperlink{ng__mppc_8h_a1131952e369ac5691ceee05a9453dbe7}{00059}} \textcolor{preprocessor}{\#define MPPC\_MAX\_BLOWUP(n)      ((n) * 9 / 8 + 26)}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00060}00060 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00061}00061 \textcolor{comment}{/* MPPC/MPPE PPP negotiation bits */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00062}\mbox{\hyperlink{ng__mppc_8h_a523e19df1f91f1e3d2d7d3866b68ccbb}{00062}} \textcolor{preprocessor}{\#define MPPC\_BIT                0x00000001      }\textcolor{comment}{/* mppc compression bits */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00063}\mbox{\hyperlink{ng__mppc_8h_a8d4a8729fca31440424afd5240bdad56}{00063}} \textcolor{preprocessor}{\#define MPPE\_40                 0x00000020      }\textcolor{comment}{/* use 40 bit key */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00064}\mbox{\hyperlink{ng__mppc_8h_ab5568e25369bfedd06e836408b7283e7}{00064}} \textcolor{preprocessor}{\#define MPPE\_56                 0x00000080      }\textcolor{comment}{/* use 56 bit key */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00065}\mbox{\hyperlink{ng__mppc_8h_a09ad9de24ad0f1447d7a1b6a41356062}{00065}} \textcolor{preprocessor}{\#define MPPE\_128                0x00000040      }\textcolor{comment}{/* use 128 bit key */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00066}\mbox{\hyperlink{ng__mppc_8h_a018f78f97c1069d5b53b668f8bc019f2}{00066}} \textcolor{preprocessor}{\#define MPPE\_BITS               0x000000e0      }\textcolor{comment}{/* mppe encryption bits */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00067}\mbox{\hyperlink{ng__mppc_8h_ae0a65e21e69a20b0ff8a6a8f6ca70dff}{00067}} \textcolor{preprocessor}{\#define MPPE\_STATELESS          0x01000000      }\textcolor{comment}{/* use stateless mode */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00068}\mbox{\hyperlink{ng__mppc_8h_a8a769974012abe554ebaa4d62ef94c8f}{00068}} \textcolor{preprocessor}{\#define MPPC\_VALID\_BITS         0x010000e1      }\textcolor{comment}{/* possibly valid bits */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00069}00069 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00070}00070 \textcolor{comment}{/* Config struct (per-\/direction) */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00071}\mbox{\hyperlink{structng__mppc__config}{00071}} \textcolor{keyword}{struct }\mbox{\hyperlink{structng__mppc__config}{ng\_mppc\_config}} \{}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00072}\mbox{\hyperlink{structng__mppc__config_afd3bb994791cad0d58c1a42889ca69b2}{00072}}         u\_char          \mbox{\hyperlink{structng__mppc__config_afd3bb994791cad0d58c1a42889ca69b2}{enable}};                   \textcolor{comment}{/* enable */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00073}\mbox{\hyperlink{structng__mppc__config_aafa00ead81c511a515fb749373261bc3}{00073}}         u\_int32\_t       \mbox{\hyperlink{structng__mppc__config_aafa00ead81c511a515fb749373261bc3}{bits}};                       \textcolor{comment}{/* config bits */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00074}\mbox{\hyperlink{structng__mppc__config_a4a04ff25883786316f5513b438db2d8d}{00074}}         u\_char          \mbox{\hyperlink{structng__mppc__config_a4a04ff25883786316f5513b438db2d8d}{startkey}}[\mbox{\hyperlink{ng__mppc_8h_aa8786c200eefab76c97e7a2fa4211977}{MPPE\_KEY\_LEN}}];     \textcolor{comment}{/* start key */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00075}00075 \};}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00076}00076 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00077}00077 \textcolor{comment}{/* Netgraph commands */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00078}00078 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00079}\mbox{\hyperlink{ng__mppc_8h_af715e26dfffd1f8de1c18449e2770cffa3899d33de05ddbbe17d4425f4106281a}{00079}}         \mbox{\hyperlink{ng__mppc_8h_af715e26dfffd1f8de1c18449e2770cffa3899d33de05ddbbe17d4425f4106281a}{NGM\_MPPC\_CONFIG\_COMP}} = 1,}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00080}\mbox{\hyperlink{ng__mppc_8h_af715e26dfffd1f8de1c18449e2770cffaf2ef89764727d97763a26c161dd50447}{00080}}         \mbox{\hyperlink{ng__mppc_8h_af715e26dfffd1f8de1c18449e2770cffaf2ef89764727d97763a26c161dd50447}{NGM\_MPPC\_CONFIG\_DECOMP}},}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00081}\mbox{\hyperlink{ng__mppc_8h_af715e26dfffd1f8de1c18449e2770cffaa540000ea360f6c7eba2121fee0f086e}{00081}}         \mbox{\hyperlink{ng__mppc_8h_af715e26dfffd1f8de1c18449e2770cffaa540000ea360f6c7eba2121fee0f086e}{NGM\_MPPC\_RESETREQ}},                     \textcolor{comment}{/* sent either way! */}}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00082}00082 \};}
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00083}00083 }
\DoxyCodeLine{\Hypertarget{ng__mppc_8h_source_l00084}00084 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_NETGRAPH\_NG\_MPPC\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
