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

Cache object: ec9678546fa682cdc35026c94ca2b009


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