Fix a bug when '-f -H' is used and the target already exists. cpdup was
[dragonfly.git] / sys / netproto / atalk / ddp_var.h
1 /*
2  * Copyright (c) 1990,1994 Regents of The University of Michigan.
3  * All Rights Reserved.  See COPYRIGHT.
4  *
5  * $FreeBSD: src/sys/netatalk/ddp_var.h,v 1.4 1999/12/29 04:45:58 peter Exp $
6  * $DragonFly: src/sys/netproto/atalk/ddp_var.h,v 1.2 2003/06/17 04:28:48 dillon Exp $
7  */
8
9 #ifndef _NETATALK_DDP_VAR_H_
10 #define _NETATALK_DDP_VAR_H_ 1
11 struct ddpcb {
12     struct sockaddr_at  ddp_fsat, ddp_lsat;
13     struct route        ddp_route;
14     struct socket       *ddp_socket;
15     struct ddpcb        *ddp_prev, *ddp_next;
16     struct ddpcb        *ddp_pprev, *ddp_pnext;
17 };
18
19 #define sotoddpcb(so)   ((struct ddpcb *)(so)->so_pcb)
20
21 struct 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
35 extern int      ddp_cksum;
36 extern struct ddpcb             *ddp_ports[ ];
37 extern struct ddpcb             *ddpcb;
38 extern struct pr_usrreqs        ddp_usrreqs;
39 #endif
40 #endif /* _NETATALK_DDP_VAR_H_ */