1139827Simp/*- 2165974Srwatson * Copyright (c) 1990, 1994 Regents of The University of Michigan. 3139827Simp * All Rights Reserved. 455205Speter * 5139827Simp * Permission to use, copy, modify, and distribute this software and 6139827Simp * its documentation for any purpose and without fee is hereby granted, 7139827Simp * provided that the above copyright notice appears in all copies and 8139827Simp * that both that copyright notice and this permission notice appear 9139827Simp * in supporting documentation, and that the name of The University 10139827Simp * of Michigan not be used in advertising or publicity pertaining to 11139827Simp * distribution of the software without specific, written prior 12139827Simp * permission. This software is supplied as is without expressed or 13139827Simp * implied warranties of any kind. 14139827Simp * 15139827Simp * This product includes software developed by the University of 16139827Simp * California, Berkeley and its contributors. 17139827Simp * 18139827Simp * Research Systems Unix Group 19139827Simp * The University of Michigan 20139827Simp * c/o Wesley Craig 21139827Simp * 535 W. William Street 22139827Simp * Ann Arbor, Michigan 23139827Simp * +1-313-764-2278 24139827Simp * netatalk@umich.edu 25139827Simp * 2655205Speter * $FreeBSD$ 2715885Sjulian */ 2815885Sjulian 2915885Sjulian#ifndef _NETATALK_DDP_VAR_H_ 30165974Srwatson#define _NETATALK_DDP_VAR_H_ 31165974Srwatson 3215885Sjulianstruct ddpcb { 33165974Srwatson struct sockaddr_at ddp_fsat, ddp_lsat; 34165974Srwatson struct route ddp_route; 35165974Srwatson struct socket *ddp_socket; 36165974Srwatson struct ddpcb *ddp_prev, *ddp_next; 37165974Srwatson struct ddpcb *ddp_pprev, *ddp_pnext; 38165974Srwatson struct mtx ddp_mtx; 3915885Sjulian}; 4015885Sjulian 41165974Srwatson#define sotoddpcb(so) ((struct ddpcb *)(so)->so_pcb) 4215885Sjulian 4315885Sjulianstruct ddpstat { 44165974Srwatson long ddps_short; /* short header packets received */ 45165974Srwatson long ddps_long; /* long header packets received */ 46165974Srwatson long ddps_nosum; /* no checksum */ 47165974Srwatson long ddps_badsum; /* bad checksum */ 48165974Srwatson long ddps_tooshort; /* packet too short */ 49165974Srwatson long ddps_toosmall; /* not enough data */ 50165974Srwatson long ddps_forward; /* packets forwarded */ 51165974Srwatson long ddps_encap; /* packets encapsulated */ 52165974Srwatson long ddps_cantforward; /* packets rcvd for unreachable dest */ 53165974Srwatson long ddps_nosockspace; /* no space in sockbuf for packet */ 5415885Sjulian}; 5515885Sjulian 5655205Speter#ifdef _KERNEL 57165974Srwatsonextern int ddp_cksum; 58127293Srwatsonextern struct ddpcb *ddpcb_list; 59165974Srwatsonextern struct pr_usrreqs ddp_usrreqs; 60132043Srwatsonextern struct mtx ddp_list_mtx; 6115885Sjulian#endif 62165974Srwatson 6315885Sjulian#endif /* _NETATALK_DDP_VAR_H_ */ 64