File: ddp_var.h

package info (click to toggle)
netatalk 2.0.3-4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 9,004 kB
  • ctags: 6,109
  • sloc: ansic: 67,633; sh: 8,424; perl: 1,187; makefile: 1,001
file content (43 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
 * $Id: ddp_var.h,v 1.2 2001/06/29 14:14:47 rufustfirefly Exp $
 *
 * Copyright (c) 1990,1994 Regents of The University of Michigan.
 * All Rights Reserved.  See COPYRIGHT.
 */

#ifndef _NETATALK_DDP_VAR_H
#define _NETATALK_DDP_VAR_H 1

#include <netatalk/endian.h>

struct ddpcb {
    struct sockaddr_at	ddp_fsat, ddp_lsat;
    struct route	ddp_route;
    struct socket	*ddp_socket;
    struct ddpcb	*ddp_prev, *ddp_next;
    struct ddpcb	*ddp_pprev, *ddp_pnext;
};

#define sotoddpcb(so)	((struct ddpcb *)(so)->so_pcb)

struct ddpstat {
    u_int32_t	ddps_short;		/* short header packets received */
    u_int32_t	ddps_long;		/* long header packets received */
    u_int32_t	ddps_nosum;		/* no checksum */
    u_int32_t	ddps_badsum;		/* bad checksum */
    u_int32_t	ddps_tooshort;		/* packet too short */
    u_int32_t	ddps_toosmall;		/* not enough data */
    u_int32_t	ddps_forward;		/* packets forwarded */
    u_int32_t	ddps_encap;		/* packets encapsulated */
    u_int32_t	ddps_cantforward;	/* packets rcvd for unreachable dest */
    u_int32_t	ddps_nosockspace;	/* no space in sockbuf for packet */
};

#ifdef KERNEL
struct ddpcb		*ddp_ports[ ATPORT_LAST ];
struct ddpcb		*ddpcb;
struct ddpstat		ddpstat;
struct ddpcb		*ddp_search();
#endif /* KERNEL */

#endif /* netatalk/ddp_var.h */