Home | History | Annotate | Line # | Download | only in netatalk
ddp_var.h revision 1.1
      1 /*	$NetBSD: ddp_var.h,v 1.1 1997/04/02 21:31:11 christos 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 (at) umich.edu
     27  */
     28 
     29 #ifndef _NETATALK_DDP_VAR_H_
     30 #define _NETATALK_DDP_VAR_H_ 1
     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 struct ddpstat {
     43 	long ddps_short;	/* short header packets received */
     44 	long ddps_long;		/* long header packets received */
     45 	long ddps_nosum;	/* no checksum */
     46 	long ddps_badsum;	/* bad checksum */
     47 	long ddps_tooshort;	/* packet too short */
     48 	long ddps_toosmall;	/* not enough data */
     49 	long ddps_forward;	/* packets forwarded */
     50 	long ddps_encap;	/* packets encapsulated */
     51 	long ddps_cantforward;	/* packets rcvd for unreachable dest */
     52 	long ddps_nosockspace;	/* no space in sockbuf for packet */
     53 };
     54 
     55 #ifdef _KERNEL
     56 extern struct ddpcb *ddp_ports[];
     57 extern struct ddpcb *ddpcb;
     58 struct ddpstat  ddpstat;
     59 #endif
     60 
     61 #endif /* _NETATALK_DDP_VAR_H_ */
     62