netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
ddp_var.h
Go to the documentation of this file.
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
8
9 struct ddpcb {
10 struct sockaddr_at ddp_fsat, ddp_lsat;
11 struct route ddp_route;
12 struct socket *ddp_socket;
13 struct ddpcb *ddp_prev, *ddp_next;
14 struct ddpcb *ddp_pprev, *ddp_pnext;
15};
16
17#define sotoddpcb(so) ((struct ddpcb *)(so)->so_pcb)
18
19 struct ddpstat {
20 uint32_t ddps_short;
21 uint32_t ddps_long;
22 uint32_t ddps_nosum;
23 uint32_t ddps_badsum;
24 uint32_t ddps_tooshort;
25 uint32_t ddps_toosmall;
26 uint32_t ddps_forward;
27 uint32_t ddps_encap;
28 uint32_t ddps_cantforward;
29 uint32_t ddps_nosockspace;
30};
31
32#ifdef KERNEL
33 struct ddpcb *ddp_ports[ATPORT_LAST];
34 struct ddpcb *ddpcb;
35 struct ddpstat ddpstat;
36 struct ddpcb *ddp_search();
37#endif /* KERNEL */
38
39#endif /* netatalk/ddp_var.h */
ATPORT_LAST
#define ATPORT_LAST
Definition at.h:63
ddp_search
struct ddpcb * ddp_search(struct sockaddr_at *from, struct sockaddr_at *to, struct at_ifaddr *aa)
Definition ddp_usrreq.c:503
route
int route(int message, struct sockaddr *dst, struct sockaddr *gate, int flags)
Definition route.c:23
ddpcb
Definition ddp_var.h:9
ddpcb::ddp_next
struct ddpcb * ddp_next
Definition ddp_var.h:13
ddpcb::ddp_socket
struct socket * ddp_socket
Definition ddp_var.h:12
ddpcb::ddp_lsat
struct sockaddr_at ddp_fsat ddp_lsat
Definition ddp_var.h:10
ddpcb::ddp_route
struct route ddp_route
Definition ddp_var.h:11
ddpcb::ddp_prev
struct ddpcb * ddp_prev
Definition ddp_var.h:13
ddpcb::ddp_pnext
struct ddpcb * ddp_pnext
Definition ddp_var.h:14
ddpcb::ddp_pprev
struct ddpcb * ddp_pprev
Definition ddp_var.h:14
ddpstat
Definition ddp_var.h:19
ddpstat::ddps_tooshort
uint32_t ddps_tooshort
Definition ddp_var.h:24
ddpstat::ddps_short
uint32_t ddps_short
Definition ddp_var.h:20
ddpstat::ddps_badsum
uint32_t ddps_badsum
Definition ddp_var.h:23
ddpstat::ddps_forward
uint32_t ddps_forward
Definition ddp_var.h:26
ddpstat::ddps_long
uint32_t ddps_long
Definition ddp_var.h:21
ddpstat::ddps_nosum
uint32_t ddps_nosum
Definition ddp_var.h:22
ddpstat::ddps_cantforward
uint32_t ddps_cantforward
Definition ddp_var.h:28
ddpstat::ddps_nosockspace
uint32_t ddps_nosockspace
Definition ddp_var.h:29
ddpstat::ddps_encap
uint32_t ddps_encap
Definition ddp_var.h:27
ddpstat::ddps_toosmall
uint32_t ddps_toosmall
Definition ddp_var.h:25
sockaddr_at
Definition at.h:88