netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
at_var.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
3 *
4 * All Rights Reserved. See COPYRIGHT.
5 */
6
7#ifndef _ATVAR_H
8#define _ATVAR_H 1
9
14 struct at_ifaddr {
15 struct ifaddr aa_ifa;
16# define aa_ifp aa_ifa.ifa_ifp
17#ifdef BSD4_4
18 struct sockaddr_at aa_addr;
19 struct sockaddr_at aa_broadaddr;
20 struct sockaddr_at aa_netmask;
21#else /* BSD4_4 */
22# define aa_addr aa_ifa.ifa_addr
23# define aa_broadaddr aa_ifa.ifa_broadaddr
24# define aa_dstaddr aa_ifa.ifa_dstaddr
25#endif /* BSD4_4 */
26 int aa_flags;
27 unsigned short aa_firstnet, aa_lastnet;
28 int aa_probcnt;
29 struct at_ifaddr *aa_next;
30};
31
32#ifdef BSD4_4
33 struct at_aliasreq {
34 char ifra_name[IFNAMSIZ];
35 struct sockaddr_at ifra_addr;
36 struct sockaddr_at ifra_broadaddr;
37#define ifra_dstaddr ifra_broadaddr
38 struct sockaddr_at ifra_mask;
39};
40#endif /* BSD4_4 */
41
42#define AA_SAT(aa) \
43 ((struct sockaddr_at *)&((struct at_ifaddr *)(aa))->aa_addr)
44#define satosat(sa) ((struct sockaddr_at *)(sa))
45
46#define AFA_ROUTE 0x0001
47#define AFA_PROBING 0x0002
48#define AFA_PHASE2 0x0004
49
50#ifdef KERNEL
51 struct at_ifaddr *at_ifaddr;
52 struct ifqueue atintrq1, atintrq2;
53 int atdebug;
54#endif /* KERNEL */
55
56#endif /* _ATVAR_H */
aa_broadaddr
#define aa_broadaddr
Definition at_var.h:23
aa_addr
#define aa_addr
Definition at_var.h:22
at_ifaddr
Definition at_var.h:14
at_ifaddr::aa_next
struct at_ifaddr * aa_next
Definition at_var.h:29
at_ifaddr::aa_lastnet
unsigned short aa_lastnet
Definition at_var.h:27
at_ifaddr::aa_flags
int aa_flags
Definition at_var.h:26
at_ifaddr::aa_probcnt
int aa_probcnt
Definition at_var.h:28
at_ifaddr::aa_firstnet
unsigned short aa_firstnet
Definition at_var.h:27
at_ifaddr::aa_ifa
struct ifaddr aa_ifa
Definition at_var.h:15
sockaddr_at
Definition at.h:88