netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
interface.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1990,1992 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
4 */
5
6#ifndef ATALKD_INTERFACE_H
7#define ATALKD_INTERFACE_H 1
8
9#include <sys/types.h>
10
11 struct interface {
12 struct interface *i_next;
13 char i_name[IFNAMSIZ];
14 int i_flags;
15 int i_time;
16 int i_group;
17 struct sockaddr_at i_addr;
18 struct sockaddr_at i_caddr;
19 struct ziptab *i_czt;
20 struct rtmptab *i_rt;
21 struct gate *i_gate;
22 struct atport *i_ports;
23};
24
25#define IFACE_PHASE1 0x001
26#define IFACE_PHASE2 0x002
27#define IFACE_LOOPBACK 0x004
28#define IFACE_SEED 0x008
29#define IFACE_ADDR 0x010
30#define IFACE_CONFIG 0x020
31#define IFACE_NOROUTER 0x040
32#define IFACE_LOOP 0x080
33#define IFACE_RSEED 0x100
36#define IFACE_DONTROUTE 0x200
37#define IFACE_ISROUTER 0x400
38#define IFACE_ERROR 0x2000
39
40#define UNSTABLE 2
41#define STABLE 0
42#define STABLEANYWAY -2
43
44#define IFBASE 2
45
46#ifdef __linux__
47#define LOOPIFACE "lo"
48#else /* !linux */
49#define LOOPIFACE "lo0"
50#endif /* __linux__ */
51
52 extern struct interface *interfaces;
53 extern struct interface *ciface;
54 struct interface *newiface(const char *);
55
56#endif /* ATALKD_INTERFACE_H */
ciface
struct interface * ciface
Definition etc/atalkd/main.c:81
interfaces
struct interface * interfaces
Definition etc/atalkd/main.c:81
newiface
struct interface * newiface(const char *)
Definition config.c:821
atport
Definition atserv.h:8
gate
Definition gate.h:6
interface
Definition interface.h:11
interface::i_addr
struct sockaddr_at i_addr
Definition interface.h:17
interface::i_ports
struct atport * i_ports
Definition interface.h:22
interface::i_next
struct interface * i_next
Definition interface.h:12
interface::i_gate
struct gate * i_gate
Definition interface.h:21
interface::i_caddr
struct sockaddr_at i_caddr
Definition interface.h:18
interface::i_rt
struct rtmptab * i_rt
Definition interface.h:20
interface::i_czt
struct ziptab * i_czt
Definition interface.h:19
interface::i_group
int i_group
Definition interface.h:16
interface::i_flags
int i_flags
Definition interface.h:14
interface::i_name
char i_name[IFNAMSIZ]
Definition interface.h:13
interface::i_time
int i_time
Definition interface.h:15
rtmptab
Definition etc/atalkd/rtmp.h:30
sockaddr_at
Definition at.h:88
ziptab
Definition etc/atalkd/zip.h:11