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/netatalk/ddp_var.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 /*-
    2  * Copyright (c) 1990,1994 Regents of The University of Michigan.
    3  * All Rights Reserved.
    4  *
    5  * Permission to use, copy, modify, and distribute this software and
    6  * its documentation for any purpose and without fee is hereby granted,
    7  * provided that the above copyright notice appears in all copies and
    8  * that both that copyright notice and this permission notice appear
    9  * in supporting documentation, and that the name of The University
   10  * of Michigan not be used in advertising or publicity pertaining to
   11  * distribution of the software without specific, written prior
   12  * permission. This software is supplied as is without expressed or
   13  * implied warranties of any kind.
   14  *
   15  * This product includes software developed by the University of
   16  * California, Berkeley and its contributors.
   17  *
   18  *      Research Systems Unix Group
   19  *      The University of Michigan
   20  *      c/o Wesley Craig
   21  *      535 W. William Street
   22  *      Ann Arbor, Michigan
   23  *      +1-313-764-2278
   24  *      netatalk@umich.edu
   25  *
   26  * $FreeBSD$
   27  */
   28 #ifndef _NETATALK_DDP_VAR_H_
   29 #define _NETATALK_DDP_VAR_H_ 1
   30 struct ddpcb {
   31     struct sockaddr_at  ddp_fsat, ddp_lsat;
   32     struct route        ddp_route;
   33     struct socket       *ddp_socket;
   34     struct ddpcb        *ddp_prev, *ddp_next;
   35     struct ddpcb        *ddp_pprev, *ddp_pnext;
   36     struct mtx           ddp_mtx;
   37 };
   38 
   39 #define sotoddpcb(so)   ((struct ddpcb *)(so)->so_pcb)
   40 
   41 struct ddpstat {
   42     long        ddps_short;             /* short header packets received */
   43     long        ddps_long;              /* long header packets received */
   44     long        ddps_nosum;             /* no checksum */
   45     long        ddps_badsum;            /* bad checksum */
   46     long        ddps_tooshort;          /* packet too short */
   47     long        ddps_toosmall;          /* not enough data */
   48     long        ddps_forward;           /* packets forwarded */
   49     long        ddps_encap;             /* packets encapsulated */
   50     long        ddps_cantforward;       /* packets rcvd for unreachable dest */
   51     long        ddps_nosockspace;       /* no space in sockbuf for packet */
   52 };
   53 
   54 #ifdef _KERNEL
   55 extern int      ddp_cksum;
   56 extern struct ddpcb             *ddpcb_list;
   57 extern struct pr_usrreqs        ddp_usrreqs;
   58 extern struct mtx                ddp_list_mtx;
   59 #endif
   60 #endif /* _NETATALK_DDP_VAR_H_ */

Cache object: 8ff96edcc0ac3d7dd943531be1993f64


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