ddp_var.h revision 29184
1/* 2 * Copyright (c) 1990,1994 Regents of The University of Michigan. 3 * All Rights Reserved. See COPYRIGHT. 4 */ 5 6#ifndef _NETATALK_DDP_VAR_H_ 7#define _NETATALK_DDP_VAR_H_ 1 8struct ddpcb { 9 struct sockaddr_at ddp_fsat, ddp_lsat; 10 struct route ddp_route; 11 struct socket *ddp_socket; 12 struct ddpcb *ddp_prev, *ddp_next; 13 struct ddpcb *ddp_pprev, *ddp_pnext; 14}; 15 16#define sotoddpcb(so) ((struct ddpcb *)(so)->so_pcb) 17 18struct ddpstat { 19 long ddps_short; /* short header packets received */ 20 long ddps_long; /* long header packets received */ 21 long ddps_nosum; /* no checksum */ 22 long ddps_badsum; /* bad checksum */ 23 long ddps_tooshort; /* packet too short */ 24 long ddps_toosmall; /* not enough data */ 25 long ddps_forward; /* packets forwarded */ 26 long ddps_encap; /* packets encapsulated */ 27 long ddps_cantforward; /* packets rcvd for unreachable dest */ 28 long ddps_nosockspace; /* no space in sockbuf for packet */ 29}; 30 31#ifdef KERNEL 32extern struct ddpcb *ddp_ports[ ]; 33extern struct ddpcb *ddpcb; 34#endif 35#endif /* _NETATALK_DDP_VAR_H_ */ 36