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/netccitt/dll.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: dll.h,v 1.6 2005/02/26 22:45:10 perry Exp $    */
    2 
    3 /*
    4  * Copyright (c) 1992, 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  *      @(#)dll.h       8.1 (Berkeley) 6/10/93
   32  */
   33 
   34 /*
   35  * Copyright (c) 1990, 1991, 1992
   36  *              Dirk Husemann, Computer Science Department IV,
   37  *              University of Erlangen-Nuremberg, Germany.
   38  *
   39  * Redistribution and use in source and binary forms, with or without
   40  * modification, are permitted provided that the following conditions
   41  * are met:
   42  * 1. Redistributions of source code must retain the above copyright
   43  *    notice, this list of conditions and the following disclaimer.
   44  * 2. Redistributions in binary form must reproduce the above copyright
   45  *    notice, this list of conditions and the following disclaimer in the
   46  *    documentation and/or other materials provided with the distribution.
   47  * 3. All advertising materials mentioning features or use of this software
   48  *    must display the following acknowledgement:
   49  *      This product includes software developed by the University of
   50  *      California, Berkeley and its contributors.
   51  * 4. Neither the name of the University nor the names of its contributors
   52  *    may be used to endorse or promote products derived from this software
   53  *    without specific prior written permission.
   54  *
   55  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   56  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   57  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   58  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   59  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   60  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   61  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   62  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   63  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   64  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   65  * SUCH DAMAGE.
   66  *
   67  *      @(#)dll.h       8.1 (Berkeley) 6/10/93
   68  */
   69 
   70 /*
   71  * We define the additional PRC_* codes in here
   72  */
   73 #ifdef _KERNEL
   74 #ifndef PRC_IFUP
   75 #define PRC_IFUP                   3
   76 #endif
   77 #define PRC_CONNECT_INDICATION     8
   78 #define PRC_CONNECT_REQUEST        9
   79 #define PRC_DISCONNECT_REQUEST     10
   80 #define PRC_DISCONNECT_INDICATION  11
   81 #define PRC_RESET_REQUEST          12
   82 #endif
   83 
   84 /*
   85  * Data link layer configuration --- basically a copy of the relevant parts
   86  * of x25config, implemented to become a little bit more network
   87  * layer independent. (Probably only used for casting et al.)
   88  */
   89 struct dllconfig {
   90        u_short dllcfg_unused0:4,
   91                dllcfg_unused1:4,
   92                dllcfg_trace:1,     /* link level tracing flag */
   93                dllcfg_window:7;    /* link level window size */
   94        u_short dllcfg_xchxid:1,    /* exchange XID (not yet) */
   95                dllcfg_unused2:7;   /* here be dragons */
   96 };
   97 
   98 struct dll_ctlinfo {
   99         union {
  100                 struct {
  101                         struct  dllconfig *dctli_up_cfg;
  102                         u_char  dctli_up_lsap;
  103                 } CTLI_UP;
  104                 struct {
  105                         caddr_t dctli_down_pcb;
  106                         struct rtentry *dctli_down_rt;
  107                         struct dllconfig *dctli_down_llconf;
  108                 } CTLI_DOWN;
  109         } CTLIun;
  110 };
  111 #define dlcti_cfg  CTLIun.CTLI_UP.dctli_up_cfg
  112 #define dlcti_lsap CTLIun.CTLI_UP.dctli_up_lsap
  113 #define dlcti_pcb  CTLIun.CTLI_DOWN.dctli_down_pcb
  114 #define dlcti_rt   CTLIun.CTLI_DOWN.dctli_down_rt
  115 #define dlcti_conf CTLIun.CTLI_DOWN.dctli_down_llconf

Cache object: 7f71ccf0448bb2945369f21f383a1c07


[ 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.