netatalk  4.4.0dev
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
11struct interface {
13 char i_name[IFNAMSIZ];
15 int i_time;
16 int i_group; /* for isolated appletalk domains */
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 /* is the loopback interface */
28#define IFACE_SEED 0x008 /* act as seed */
29#define IFACE_ADDR 0x010 /* has an address set */
30#define IFACE_CONFIG 0x020 /* has been configured */
31#define IFACE_NOROUTER 0x040 /* no router on interface */
32#define IFACE_LOOP 0x080 /* has a loopback route */
33#define IFACE_RSEED 0x100 /* almost the same as seed. RSEED
34 says that we should try to
35 do routing. */
36#define IFACE_DONTROUTE 0x200 /* don't route this interface */
37#define IFACE_ISROUTER 0x400 /* act as a router. */
38#define IFACE_ERROR 0x2000 /* sendto returned an error */
40#define UNSTABLE 2
41#define STABLE 0
42#define STABLEANYWAY -2
43
44#define IFBASE 2 /* base number of interfaces */
45
46#ifdef __linux__
47#define LOOPIFACE "lo"
48#else /* !linux */
49#define LOOPIFACE "lo0"
50#endif /* __linux__ */
51
52extern struct interface *interfaces;
53extern struct interface *ciface;
54struct interface *newiface(const char *);
55
56#endif /* ATALKD_INTERFACE_H */
struct interface * ciface
Definition etc/atalkd/main.c:81
struct interface * interfaces
Definition etc/atalkd/main.c:81
struct interface * newiface(const char *)
Definition config.c:821
Definition atserv.h:8
Definition gate.h:6
Definition interface.h:11
struct sockaddr_at i_addr
Definition interface.h:17
struct atport * i_ports
Definition interface.h:22
struct interface * i_next
Definition interface.h:12
struct gate * i_gate
Definition interface.h:21
struct sockaddr_at i_caddr
Definition interface.h:18
struct rtmptab * i_rt
Definition interface.h:20
struct ziptab * i_czt
Definition interface.h:19
int i_group
Definition interface.h:16
int i_flags
Definition interface.h:14
char i_name[IFNAMSIZ]
Definition interface.h:13
int i_time
Definition interface.h:15
Definition etc/atalkd/rtmp.h:30
Definition at.h:88
Definition etc/atalkd/zip.h:11