~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to etc/atalkd/interface.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: interface.h,v 1.3 2001/07/31 19:50:14 srittau Exp $
 
3
 * Copyright (c) 1990,1992 Regents of The University of Michigan.
 
4
 * All Rights Reserved. See COPYRIGHT.
 
5
 */
 
6
 
 
7
#ifndef ATALKD_INTERFACE_H
 
8
#define ATALKD_INTERFACE_H 1
 
9
 
 
10
#include <sys/cdefs.h>
 
11
 
 
12
struct interface {
 
13
    struct interface    *i_next;
 
14
    char                i_name[ IFNAMSIZ ];
 
15
    int                 i_flags;
 
16
    int                 i_time;
 
17
    int                 i_group; /* for isolated appletalk domains */
 
18
    struct sockaddr_at  i_addr;
 
19
    struct sockaddr_at  i_caddr;
 
20
    struct ziptab       *i_czt;
 
21
    struct rtmptab      *i_rt;
 
22
    struct gate         *i_gate;
 
23
    struct atport       *i_ports;
 
24
};
 
25
 
 
26
#define IFACE_PHASE1    0x001
 
27
#define IFACE_PHASE2    0x002
 
28
#define IFACE_LOOPBACK  0x004           /* is the loopback interface */
 
29
#define IFACE_SEED      0x008           /* act as seed */
 
30
#define IFACE_ADDR      0x010           /* has an address set */
 
31
#define IFACE_CONFIG    0x020           /* has been configured */
 
32
#define IFACE_NOROUTER  0x040           /* no router on interface */
 
33
#define IFACE_LOOP      0x080           /* has a loopback route */
 
34
#define IFACE_RSEED     0x100           /* almost the same as seed. RSEED
 
35
                                           says that we should try to 
 
36
                                           do routing. */
 
37
#define IFACE_DONTROUTE 0x200           /* don't route this interface */
 
38
#define IFACE_ISROUTER  0x400           /* act as a router. */
 
39
 
 
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
 
 
52
extern struct interface *interfaces;
 
53
extern struct interface *ciface;
 
54
struct interface        *newiface __P((const char *));
 
55
 
 
56
#endif /* ATALKD_INTERFACE_H */