The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/netiso/argo_debug.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: argo_debug.h,v 1.13 2004/04/20 02:13:26 matt Exp $     */
    2 
    3 /*-
    4  * Copyright (c) 1991, 1993
    5  *      The Regents of the University of California.  All rights reserved.
    6  *
    7  * Redistribution and use in source and binary forms, with or without
    8  * modification, are permitted provided that the following conditions
    9  * are met:
   10  * 1. Redistributions of source code must retain the above copyright
   11  *    notice, this list of conditions and the following disclaimer.
   12  * 2. Redistributions in binary form must reproduce the above copyright
   13  *    notice, this list of conditions and the following disclaimer in the
   14  *    documentation and/or other materials provided with the distribution.
   15  * 3. Neither the name of the University nor the names of its contributors
   16  *    may be used to endorse or promote products derived from this software
   17  *    without specific prior written permission.
   18  *
   19  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   20  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   22  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   23  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   24  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   25  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   26  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   27  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   28  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   29  * SUCH DAMAGE.
   30  *
   31  *      @(#)argo_debug.h        8.1 (Berkeley) 6/10/93
   32  */
   33 
   34 /*****************************************************************
   35                                 Copyright IBM Corporation 1987
   36 
   37                       All Rights Reserved
   38 
   39 Permission to use, copy, modify, and distribute this software and its
   40 documentation for any purpose and without fee is hereby granted,
   41 provided that the above copyright notice appear in all copies and that
   42 both that copyright notice and this permission notice appear in
   43 supporting documentation, and that the name of IBM not be
   44 used in advertising or publicity pertaining to distribution of the
   45 software without specific, written prior permission.
   46 
   47 IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
   48 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
   49 IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
   50 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
   51 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
   52 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
   53 SOFTWARE.
   54 
   55 ******************************************************************/
   56 
   57 /*
   58  * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
   59  */
   60 
   61 #ifndef _NETISO_ARGO_DEBUG_H_
   62 #define _NETISO_ARGO_DEBUG_H_
   63 void Dump_buf (caddr_t, int);
   64 #define dump_buf(a, b) Dump_buf((caddr_t)(a), (int)(b))
   65 
   66 /***********************************************
   67  * DEBUG ON:
   68  **********************************************/
   69 #ifndef ARGO_DEBUG
   70 #define ARGO_DEBUG
   71 #endif                          /* ARGO_DEBUG */
   72 
   73 
   74 #ifdef ARGO_DEBUG
   75 /*
   76     #ifndef TPPT
   77     #define TPPT
   78     #endif
   79 
   80     #ifndef TP_PERF_MEAS
   81     #define TP_PERF_MEAS
   82     #endif
   83 */
   84 
   85 extern  unsigned char   argo_debug[128];
   86 
   87 #endif                          /* ARGO_DEBUG */
   88 
   89 /***********************************************
   90  * ASSERT
   91  **********************************************/
   92 #ifdef ARGO_DEBUG
   93 
   94 #ifndef lint
   95 #define ASSERT(phrase) \
   96 if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
   97 #else                           /* lint */
   98 #define ASSERT(phrase)          /* phrase */
   99 #endif                          /* lint */
  100 
  101 #else                           /* ARGO_DEBUG */
  102 
  103 #define ASSERT(phrase)          /* phrase */
  104 
  105 #endif                          /* ARGO_DEBUG */
  106 
  107 
  108 /***********************************************
  109  * CLNP DEBUG OPTIONS
  110  **********************************************/
  111 #define D_INPUT                 '\1'
  112 /* clnp input */
  113 #define D_OUTPUT                '\2'
  114 /* clnp output */
  115 #define D_ROUTE                 '\3'
  116 /* clnp routing */
  117 #define D_CTLINPUT              '\4'
  118 /* clnp control input */
  119 #define D_CTLOUTPUT             '\5'
  120 /* clnp control output */
  121 #define D_OPTIONS               '\6'
  122 /* clnp options */
  123 #define D_IOCTL                 '\7'
  124 /* iso ioctls */
  125 #define D_ETHER                 '\1'
  126 /* clnp over ethernet */
  127 #define D_TOKEN                 '\11'
  128 /* clnp over token ring */
  129 #define D_ADCOM                 '\12'
  130 /* clnp over the adcom */
  131 #define D_ISO                   '\13'
  132 /* iso address family */
  133 #define D_FORWARD               '\14'
  134 /* clnp forwarding */
  135 #define D_DUMPOUT               '\15'
  136 /* dump clnp outgoing packets */
  137 #define D_DUMPIN                '\16'
  138 /* dump clnp input packets */
  139 #define D_DISCARD               '\17'
  140 /* debug clnp packet discard/er function */
  141 #define D_FRAG                  '\2'
  142 /* clnp fragmentation */
  143 #define D_REASS                 '\21'
  144 /* clnp reassembly */
  145 
  146 /***********************************************
  147  * ESIS DEBUG OPTIONS
  148  **********************************************/
  149 #define D_ESISOUTPUT    '\3'
  150 #define D_ESISINPUT             '\31'
  151 #define D_SNPA                  '\32'
  152 
  153 /***********************************************
  154  * ISIS DEBUG OPTIONS
  155  **********************************************/
  156 #define D_ISISOUTPUT    '\4'
  157 #define D_ISISINPUT             '\41'
  158 
  159 /***********************************************
  160  * EON DEBUG OPTION
  161  **********************************************/
  162 #define D_EON                   '\57'
  163 
  164 /***********************************************
  165  * CONS DEBUG OPTIONS
  166  **********************************************/
  167 
  168 #define D_ECNWORK               '\6'
  169 #define D_ECNOUT                '\61'
  170 #define D_ECNFIN                '\62'
  171 #define D_ECNDWN                '\63'
  172 #define D_ECNUTIL               '\64'
  173 
  174 #define D_INCOMING              '\7'
  175 #define D_CDATA                 '\71'
  176 #define D_CFIND                 '\72'
  177 #define D_CDUMP_REQ             '\73'
  178 #define D_CADDR                 '\74'
  179 #define D_CCONS                 '\75'
  180 #define D_CCONN                 '\76'
  181 
  182 
  183 /***********************************************
  184  * TP DEBUG OPTIONS
  185  **********************************************/
  186 
  187 #define D_SETPARAMS             '\137'
  188 #define D_RTT                   '\140'
  189 
  190 #define D_ACKRECV               '\141'
  191 #define D_ACKSEND               '\142'
  192 #define D_CONN                  '\143'
  193 #define D_CREDIT                '\144'
  194 #define D_DATA                  '\145'
  195 #define D_DRIVER                '\146'
  196 
  197 #define D_EMIT                  '\147'
  198 #define D_ERROR_EMIT    '\150'
  199 #define D_TPINPUT               '\151'
  200 #define D_INDICATION    '\152'
  201 #define D_CHKSUM                '\153'
  202 
  203 #define D_RENEG                 '\154'
  204 #define D_PERF_MEAS     '\155'
  205 #define D_MBUF_MEAS     '\156'
  206 #define D_RTC                   '\157'
  207 #define D_SB                    '\160'
  208 
  209 #define D_DISASTER_CHECK '\161'
  210 #define D_REQUEST               '\162'
  211 #define D_STASH                 '\163'
  212 #define D_NEWSOCK               '\164'
  213 #define D_TIMER                 '\165'
  214 
  215 #define D_TPIOCTL               '\166'
  216 #define D_SIZE_CHECK    '\167'
  217 #define D_2ER                   '\170'
  218 #define D_DISASTER_CHECK_W '\171'
  219 
  220 #define D_XPD                   '\172'
  221 #define D_SYSCALL               '\173'
  222 #define D_DROP                  '\174'
  223 #define D_ZDREF                 '\175'
  224 #define D_TPISO                 '\176'
  225 #define D_QUENCH                '\177'
  226 
  227 /***********************************************
  228  * New mbuf types for debugging w/ netstat -m
  229  * This messes up 4.4 malloc for now. need bigger
  230  * mbtypes array for now.
  231  **********************************************/
  232 #ifdef notdef
  233 
  234 #define         TPMT_DATA       0x21
  235 #define         TPMT_TPHDR      0x22
  236 #define         TPMT_IPHDR      0x32
  237 #define         TPMT_SONAME     0x28
  238 #define         TPMT_EOT        0x40
  239 #define         TPMT_XPD        0x44
  240 
  241 #else                           /* ARGO_DEBUG */
  242 
  243 #define         TPMT_DATA       MT_DATA
  244 #define         TPMT_RCVRTC     MT_DATA
  245 #define         TPMT_SNDRTC     MT_DATA
  246 #define         TPMT_IPHDR      MT_HEADER
  247 #define         TPMT_TPHDR      MT_HEADER
  248 #define         TPMT_SONAME     MT_SONAME
  249 /* MT_EOT and MT_XPD are defined in tp_param.h */
  250 #define         TPMT_XPD        MT_OOBDATA
  251 
  252 #endif                          /* ARGO_DEBUG */
  253 
  254 #endif                          /* _NETISO_ARGO_DEBUG_H_ */

Cache object: 5a3db83657ac567b0c5361a6ad7f693a


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.