ddp_var.h revision 132043
1/* 2 * Copyright (c) 1990,1994 Regents of The University of Michigan. 3 * All Rights Reserved. See COPYRIGHT. 4 * 5 * $FreeBSD: head/sys/netatalk/ddp_var.h 132043 2004-07-12 18:39:59Z rwatson $ 6 */ 7 8#ifndef _NETATALK_DDP_VAR_H_ 9#define _NETATALK_DDP_VAR_H_ 1 10struct ddpcb { 11 struct sockaddr_at ddp_fsat, ddp_lsat; 12 struct route ddp_route; 13 struct socket *ddp_socket; 14 struct ddpcb *ddp_prev, *ddp_next; 15 struct ddpcb *ddp_pprev, *ddp_pnext; 16 struct mtx ddp_mtx; 17}; 18 19#define sotoddpcb(so) ((struct ddpcb *)(so)->so_pcb) 20 21struct ddpstat { 22 long ddps_short; /* short header packets received */ 23 long ddps_long; /* long header packets received */ 24 long ddps_nosum; /* no checksum */ 25 long ddps_badsum; /* bad checksum */ 26 long ddps_tooshort; /* packet too short */ 27 long ddps_toosmall; /* not enough data */ 28 long ddps_forward; /* packets forwarded */ 29 long ddps_encap; /* packets encapsulated */ 30 long ddps_cantforward; /* packets rcvd for unreachable dest */ 31 long ddps_nosockspace; /* no space in sockbuf for packet */ 32}; 33 34#ifdef _KERNEL 35extern int ddp_cksum; 36extern struct ddpcb *ddpcb_list; 37extern struct pr_usrreqs ddp_usrreqs; 38extern struct mtx ddp_list_mtx; 39#endif 40#endif /* _NETATALK_DDP_VAR_H_ */ 41