\hypertarget{ng__ccatm__cust_8h_source}{}\doxysection{ng\+\_\+ccatm\+\_\+cust.\+h}
\label{ng__ccatm__cust_8h_source}\index{netgraph/atm/ccatm/ng\_ccatm\_cust.h@{netgraph/atm/ccatm/ng\_ccatm\_cust.h}}
\mbox{\hyperlink{ng__ccatm__cust_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/FreeBSD}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2003-\/2004}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00005}00005 \textcolor{comment}{ *      Hartmut Brandt}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00006}00006 \textcolor{comment}{ *      All rights reserved.}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00007}00007 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00008}00008 \textcolor{comment}{ * Author: Hartmut Brandt <harti@freebsd.org>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00009}00009 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00010}00010 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00011}00011 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00012}00012 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00013}00013 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00014}00014 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00015}00015 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00016}00016 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00017}00017 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00018}00018 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00019}00019 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00020}00020 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00021}00021 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00022}00022 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00023}00023 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00024}00024 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00025}00025 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00026}00026 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00027}00027 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00028}00028 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00029}00029 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00030}00030 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00031}00031 \textcolor{comment}{ * Customisation of call control source to the NG environment.}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00032}00032 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00033}00033 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00034}00034 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00035}00035 }
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00036}00036 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00037}00037 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00038}00038 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00039}00039 \textcolor{preprocessor}{\#include <sys/malloc.h>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00040}00040 \textcolor{preprocessor}{\#include <sys/queue.h>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00041}00041 \textcolor{preprocessor}{\#include <sys/lock.h>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00042}00042 \textcolor{preprocessor}{\#include <sys/mutex.h>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00043}00043 \textcolor{preprocessor}{\#include <sys/mbuf.h>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00044}00044 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{ng__message_8h}{netgraph/ng\_message.h}}>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00045}00045 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{netgraph_8h}{netgraph/netgraph.h}}>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00046}00046 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{ngatmbase_8h}{netgraph/atm/ngatmbase.h}}>}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00047}00047 }
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00048}\mbox{\hyperlink{ng__ccatm__cust_8h_aaf4bad253c8ba1b66735e8a0af40102c}{00048}} \textcolor{preprocessor}{\#define CCASSERT(E, M) KASSERT(E, M)}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00049}00049 }
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00050}\mbox{\hyperlink{ng__ccatm__cust_8h_ab871bfef65204a3de4369dffe222b022}{00050}} \mbox{\hyperlink{ng__ccatm__cust_8h_ab871bfef65204a3de4369dffe222b022}{MALLOC\_DECLARE}}(M\_NG\_CCATM);}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00051}00051 }
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00052}\mbox{\hyperlink{ng__ccatm__cust_8h_a38a4265a5fa1665ff986ba7be50598fb}{00052}} \textcolor{preprocessor}{\#define CCMALLOC(S)     (malloc((S), M\_NG\_CCATM, M\_NOWAIT))}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00053}\mbox{\hyperlink{ng__ccatm__cust_8h_ad996ab73ed9a6cce24172e0f020e8962}{00053}} \textcolor{preprocessor}{\#define CCZALLOC(S)     (malloc((S), M\_NG\_CCATM, M\_NOWAIT | M\_ZERO))}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00054}\mbox{\hyperlink{ng__ccatm__cust_8h_aa39a1626f2fb2b487e7149644ddfd635}{00054}} \textcolor{preprocessor}{\#define CCFREE(P)       do \{ free((P), M\_NG\_CCATM); \} while (0)}}
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00055}00055 }
\DoxyCodeLine{\Hypertarget{ng__ccatm__cust_8h_source_l00056}\mbox{\hyperlink{ng__ccatm__cust_8h_a7e0029b38120c399ac5c7edf92f7f3b1}{00056}} \textcolor{preprocessor}{\#define CCGETERRNO()    (ENOMEM)}}

\end{DoxyCode}
