ddp_var.h revision 127122
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 127122 2004-03-17 12:54:21Z 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}; 17 18#define sotoddpcb(so) ((struct ddpcb *)(so)->so_pcb) 19 20struct ddpstat { 21 long ddps_short; /* short header packets received */ 22 long ddps_long; /* long header packets received */ 23 long ddps_nosum; /* no checksum */ 24 long ddps_badsum; /* bad checksum */ 25 long ddps_tooshort; /* packet too short */ 26 long ddps_toosmall; /* not enough data */ 27 long ddps_forward; /* packets forwarded */ 28 long ddps_encap; /* packets encapsulated */ 29 long ddps_cantforward; /* packets rcvd for unreachable dest */ 30 long ddps_nosockspace; /* no space in sockbuf for packet */ 31}; 32 33#ifdef _KERNEL 34extern int ddp_cksum; 35extern struct ddpcb *ddpcb; 36extern struct pr_usrreqs ddp_usrreqs; 37#endif 38#endif /* _NETATALK_DDP_VAR_H_ */ 39